Your AI coding habit, itemized
A terminal dashboard that reads local session files from 25 AI tools and tells you exactly how much you spent.

What it does
CodeBurn is a local TUI that scrapes session data from AI coding assistants—Claude Code, Cursor, Codex, Copilot, and 21 others—and turns it into a live cost dashboard. No API keys, no proxy, no wrapper. It reads the files already on your disk, prices tokens via LiteLLM, and shows spending by day, model, task type, and provider.
The interesting bit
The real work is forensic accounting across a zoo of formats: SQLite for Cursor, JSONL for Gemini, .chat files for Kiro, Warp’s own warp.sqlite, and so on. The README documents exact paths and quirks per provider, including honest notes like “Cursor’s Auto mode hides the actual model, so we guess Sonnet.” That transparency is rarer than it should be.
Key highlights
- Supports 25 providers with auto-detection; press
pto toggle if you use multiple tools - Runs entirely offline after install; no cloud dependency or account needed
codeburn optimizeflags waste and suggests copy-paste fixescodeburn yieldtracks productive spend vs. reverted or abandoned sessions- Exports to CSV, JSON, or markdown tables; dashboard auto-refreshes every 30s
- Optional macOS menubar widget for ambient guilt
Caveats
- Several providers require token or model estimation, not exact counts (Kiro, Copilot transcripts, Cursor Auto mode)
- First Cursor scan on a large database can take up to a minute
- Node 20+ required;
better-sqlite3installs automatically for Cursor/OpenCode support
Verdict
Worth it if you bill clients by the hour—or just wince at opaque monthly API invoices. Skip if you only dabble with one free tool and don’t care where the tokens went.