codeburn
Cost and token observability dashboard for AI coding assistants
TLDR
SYNOPSIS
codeburn [command] [options]
DESCRIPTION
codeburn is a local analytics tool that reads the session files your AI coding assistant already writes to disk — Claude Code, Codex, Cursor, OpenCode, Pi, and GitHub Copilot — and turns them into cost, token, and activity breakdowns. Nothing is uploaded: pricing is taken from LiteLLM, exchange rates from Frankfurter, and all analysis happens against the files in ~/.claude/, ~/.cursor/, and friends.Beyond raw numbers, codeburn optimize inspects your agent configuration for eleven common waste patterns (over-permissive hooks, unused MCP servers, duplicated system prompts, etc.) and prints copy-paste-ready fixes. The menubar subcommand installs a small native app on macOS that keeps the current day's spend visible at all times.
PARAMETERS
--provider NAME
Filter by provider: claude, codex, cursor, opencode, pi, copilot.--project NAME
Include a project by substring match (repeatable).--exclude NAME
Exclude a project (repeatable).--format TYPE
Output format for non-interactive commands: table or json.--from YYYY-MM-DD
Start date for a custom window.--to YYYY-MM-DD
End date for a custom window.--refresh SECONDS
Auto-refresh interval in the dashboard (default 30, use 0 to disable).-p PERIOD
Period for report/optimize: today, week, 30days, all.
CONFIGURATION
- Currency — stored globally and used for every output, e.g. codeburn currency GBP, codeburn currency --reset.- Provider detection — automatic from on-disk session directories; override with --provider where needed.
COMMANDS
(default)
Launch the interactive TUI dashboard (last 7 days).today
Show today's token/cost/activity metrics.month
Show the current month's metrics.report
Detailed text report; accepts -p for period selection.status
One-line summary combining today and this month.export
Export data as CSV or JSON across one or more periods.optimize
Scan sessions for 11 known waste patterns and print fix suggestions.compare
Side-by-side performance/cost comparison across models.currency [CODE]
Set, show, or reset the display currency (ISO 4217).menubar
Install the native macOS menubar companion app.
DASHBOARD KEYS
1–5
Switch between Today / 7 Days / 30 Days / Month / All Time.c
Open the model comparison view.p
Cycle through providers.o
Jump to the optimize findings.b
Back out of compare/optimize.q
Quit.
CAVEATS
Requires Node.js 20+ and that you have actually used one of the supported tools locally, because the dashboard parses on-disk session data only. Cost figures depend on the LiteLLM pricing catalogue and may lag newly released models.
HISTORY
codeburn was created by AgentSeal and released under the MIT license, inspired by the earlier ccusage tool. Pricing data is sourced from LiteLLM; exchange rates from Frankfurter.
