Search iThub

Search tools, categories and collections. Type at least two characters.

Explore all tools
↑ ↓ to explore resultsEnter to open · Esc to close
C

CodeBurn

Local tracker of AI coding token usage and cost by project and model

Visit website Save

CodeBurn reads session files from Claude Code, Codex, Cursor and other tools to show token use and cost by tool, model, project, branch and task.

Pricing
Open source
Deployment
Self-hosted
Platforms
Web, Windows, macOS, Linux
11,712stars909forks
4views
Updated

What is CodeBurn?

CodeBurn shows where your AI spend goes. The README explains that a bill gives a month total without breaking it down by project, model or task. Claude Code, Codex, Cursor and similar tools each write a session file whenever you use them, those files hold every token and model call, and CodeBurn reads them to produce the breakdown. There is no account and no sign-up.

Run npx codeburn to try it, or keep it with npm install -g codeburn or Homebrew. It needs Node.js 22.15 or later. Tables show cost by tool, model, project and task, and the interface is available in the terminal, in a browser, in a desktop app and as a macOS menu bar view. Compare periods puts two date ranges side by side to test whether a model or workflow change cost less.

The optimize command reads your sessions and config and lists what costs tokens without earning them. A guard feature is opt-in and local, and a local MCP server over stdio lets an agent query your usage data. The macOS builds are signed with a Developer ID and notarized by Apple.

Key capabilities

  • Cost breakdowns By tool, model, project, git branch and task.
  • Session drill-down From totals to sessions and turns.
  • Period comparison Two date ranges side by side.
  • Optimize command Lists config and habits that waste tokens.
  • MCP server Local usage data available to your agent.
Advertisements

Where CodeBurn fits

  • Finding expensive sessions and projects
  • Comparing model or workflow changes over time
  • Attributing cost to a feature branch
  • Spotting token waste in configuration
  • Limiting runaway sessions with the opt-in guard

Install

npm install -g codeburn

Reviews of CodeBurn

No reviews yet

Be the first to share your experience with CodeBurn.

Loading review form…

Alternatives to CodeBurn

Compare CodeBurn with these tools →