TokensBurned turns the token usage of your AI coding tools into a live SVG card for your GitHub profile. The client reads usage metadata from harnesses such as Claude Code and Codex, reduces it locally to aggregate counters, and uploads only those aggregates. Prompts, responses, and source code never leave your machine.
Features
- Live profile card. Display usage totals, a seven-day trend, an activity heatmap, tool breakdowns, and optional streak, cache, and rank badges. Embed one image link in your profile.
- Local reduction. Usage records are processed on your device. Only aggregate counts and attribution metadata are uploaded.
- Strict privacy boundary. Prompts, responses, source code, repository names, transcript paths, and API keys are never retained in usage statistics or uploaded. See Privacy and security.
- Private by default. Connecting an account and uploading aggregates does not create a public card. Publishing is a separate, explicit command.
- Accurate attribution. Harness, provider, and model are recorded as separate identities. A Claude Code session that talks to a different provider is labeled as such.
- Honest compatibility. Native hooks, plugin workflows, and the standalone CLI are labeled separately so you know how each harness is measured.
Supported harnesses
This table describes the current source. For an installed release, consult the README at its release tag.
| Harness | Install surface | Token source | Support level |
|---|
| Claude Code | Plugin marketplace | Lifecycle hooks and approved local history | Native |
| Codex | Plugin marketplace | Plugin hooks and approved local history | Native |
| Cline CLI / SDK / classic IDE | Cline plugin and standalone CLI | afterModel, SDK messages and classic task metrics | Format-scoped per-call capture and backfill |
| OpenCode | Standalone CLI | v1/v2 SQLite and legacy message JSON | Finalized request usage; history backfill |
| Gemini CLI | Gemini extension and standalone CLI | Recorded JSON/JSONL usage | Background collection and backfill |
| Pi / Oh My Pi | Standalone CLI | Session JSONL usage | Background collection and backfill |
| GitHub Copilot CLI | Setup plugin and live extension | Official assistant.usage events | Live per-call capture; no transcript backfill |
| Cursor, Aider, others | Standalone CLI | Integrator-supplied observed usage | No automatic capture |
TokensBurned uses reported token counts, not estimates based on prompt length or cost. Support depends on the tool version and available usage records. Details for each source are in Local collection contracts.
Quick start
Background collection requires Node.js 20 or newer and the standalone CLI:
npm install -g tokensburned