tokstats

Your AI coding record: merged PRs verified on GitHub, and your Claude Code usage from all hosts and accounts.

Start

pipx install tokstats
tokstats collect          # copy this computer's transcripts into ~/.tokstats
tokstats hook install     # copy each session when it ends
tokstats link             # link this computer to your page on tokstats.dev
tokstats publish          # make your page public

tokstats link uses the GitHub CLI (gh) to prove your GitHub account. Your page is private until you run tokstats publish.

What goes to the server

One row for each host and day: token counts per model, active 5-minute slots, counts of sessions, prompts, commits and lines, languages, and the URLs of your PRs. Never prompts, code, file paths or project names. tokstats upload --dry-run shows the exact rows.

What the page shows

Merged PRs count only when tokstats.dev itself checks them on GitHub and you are the author. All other numbers are self-reported, and the page says so.

PRs in private repositories

tokstats.dev can read PRs in public repositories. For PRs in private repositories, the owner of the account or organization installs the tokstats.dev GitHub App. The App can only read pull requests. The server reads only the state, the author and the merge date of the PRs that you upload, and your page shows counts, not repository names.