Setup guide
Digg captures the AI-coding sessions you approve, strips secrets and personal data on your machine, and earns you AI Stocks for every session that enters the training corpus. This guide walks you through setup end to end.
1. Choose how to install
Digg is a terminal CLI and a background daemon. Install it yourself, or have your coding agent do it — either way you end up with the same thing.
2. Set up the terminal CLI
Requires Node 18 or newer (Node 22+ also captures Cursor's in-editor chat). Works on macOS and Linux.
- 1Install the CLIThis downloads the
diggcommand to a folder on your PATH.curl -fsSL https://digg.sh/cli.sh | bash
If it warns that the folder is not on your PATH, copy theexport PATH=…line it prints into your~/.zshrc(or~/.bashrc) and open a new terminal. - 2Run guided setupOne command signs you in, connects this machine, and starts capturing:
digg
Prefer to do it step by step? Rundigg login, thendigg connect, thendigg start. - 3Approve the sign-in in your browserDigg prints a link like
https://app.digg.sh/link?code=…and a short confirm code. Open the link (you must be signed in to Digg in that browser), check the code matches, and approve. No account yet? Create one first. - 4Confirm it is running
digg status
You should seeSigned in: yes,Connected: yes, andCapturing: yes. From here, capture runs in the background and uploads on its own, with no further commands. Secrets are stripped before anything leaves your machine. - 5Capture your past sessions (optional)To include the coding history you already have on disk, run:
digg backfill
then restart capture withdigg stopanddigg start. Already-uploaded events are skipped, so it is safe to run more than once. - 6Watch it fill upCheck anytime with
digg earningsanddigg sessions, or open your dashboard. Publish a session to Discover withdigg share <id> public.
digg service uninstall, or check it with digg service status. A bare digg start on its own survives closing the terminal but not a restart.2b. Let your coding agent set it up
You already have an agent with a terminal. Paste this into Claude Code, Codex, Cursor, or anything else that can fetch a URL and run commands:
Read https://digg.sh/start.md and set me up on Digg.
digg.sh/start.md is a setup procedure written for an agent rather than a person. It installs the CLI, prints the sign-in link for you to approve in your browser, connects the machine, and registers the background service.
For agents that support installable skills, the same instructions ship as a reusable skill in skills/digg/ so you can add it once and then just say “check my Digg status” or “pause capture for Codex”.
3. How you earn
Every session that clears the quality bar and enters the training corpus earns you AI Stocks.
Your dashboard shows what you earned today, over time, and your current position.
Digg is free. You contribute the sessions you approve; the coding you already do is the work.
Per-session rewards are capped during launch (a daily and a monthly ceiling) to keep things fair. Your dashboard shows how much of each window you have earned.
4. Privacy and redaction
Redaction happens on your machine, before anything is uploaded. Digg removes three classes of sensitive data and reports a counts-only summary per session, it never stores or shows the removed value itself:
- Secrets, API keys, tokens, and private keys, both well-known formats and bespoke credentials found next to a key name.
- Personal data, emails, public IPs, phone numbers, card numbers, and SSNs, each validated per match to avoid false positives.
- Identity in paths, your username in home paths like
/Users/<name>/…, anonymized while keeping the path shape.
When a batch reaches the server it is re-scanned as a second gate. Each session on your sessions page shows the exact counts removed and anything the server caught on re-scan. You can delete any session at any time.
5. Manage or stop capture
digg stopstop capturing nowdigg startresumedigg consent pause claude-codepause one tooldigg consent resume claude-coderesume that tool
digg service uninstallstop it resuming at logindigg logoutsign out on this machinedigg uninstallremove all local Digg state- Sessions already contributed are managed from your dashboard
6. Command reference
diggdigg logindigg logoutdigg switchdigg connectdigg startdigg stopdigg service installdigg service uninstalldigg service statusdigg statusdigg earningsdigg sessionsdigg share <id> public|privatedigg consent allow-alldigg consent pause <harness>digg consent resume <harness>digg backfilldigg uninstalldigg version7. Troubleshooting
`command not found: digg` after installing the CLI+
The install directory is not on your PATH. The installer prints the exact line to add (for example export PATH="$HOME/.local/bin:$PATH"). Add it to your ~/.zshrc or ~/.bashrc, then open a new terminal.
`dig status` printed DNS records instead of running Digg+
The command is digg, with two g's. dig is the DNS lookup tool that ships with macOS and Linux, so a single-g typo runs that instead and answers with DNS records rather than an error. Run digg status.
Nothing is capturing / no sessions appear+
Run digg status. If it is not capturing, run digg start or sign in again. New sessions show up after the server curates them, which takes a short while, so give it a few minutes after you finish coding.
The sign-in link expired+
The device link is valid for a few minutes. Just run digg login again to get a fresh link.
Capture stopped after I rebooted+
A plain digg start does not survive a restart. Run digg service install once and the daemon is registered with launchd (macOS) or systemd (Linux), so capture resumes at login.
Cursor IDE chat is not being captured+
Cursor's in-editor chat lives in a database that needs Node 22 or newer to read. Claude Code and Codex capture on any Node 18+. Upgrade Node and run digg backfill to pick it up.
FAQ
What are AI Stocks?+
Your contributions earn you AI Stocks: a stake in the AI your data helps build, allocated for every approved session that enters the training corpus. Your holdings appear on your dashboard. Eligibility, allocation, and any vesting are set out in the Terms.
What exactly gets captured?+
Your AI-coding sessions: the prompts you send, the tools the agent runs, the edits it makes, and how each task turned out. Nothing outside your coding sessions is touched: no browsing, no keystrokes in other apps, no files the agent never saw.
How is my private information protected?+
Secrets (API keys, tokens, private keys), PII (emails, IPs, phone numbers, cards), and your username in file paths are stripped on your machine, before anything leaves it. When a batch lands, the server re-scans it as a second gate. Every session shows a counts-only summary of exactly what was removed. Read the privacy policy.
Can I see and delete my sessions?+
Yes. Every captured session appears on your sessions page with its redaction summary. Delete any one and it is hard-removed, the session and all its events, from our database.
Is there a VS Code or Cursor extension?+
No longer. Digg is the terminal CLI and its capture daemon, which reads the same Claude Code, Codex, and Cursor sessions with one install path to keep secure. Install it with curl -fsSL https://digg.sh/cli.sh | bash, then run digg. Existing extension installs keep working but are no longer updated.
What is Discover?+
Sessions their owners chose to make public: a feed of real AI-coding runs you can read end to end. Sharing is opt-in and per-session; your sessions stay private unless you publish them. Browse Discover.
Still stuck? support@digg.sh