Skip to main content

CodeBurn

See where your AI coding spend goes, by tool, model, project and task

Code / DevToolsFreeOpen source

CodeBurn is a free, local tool that tracks token usage and cost from AI coding tools such as Claude Code, Cursor, Codex and Gemini, broken down by model, project and task. Run it with npx codeburn.

Key specs
11,776 GitHub stars source
as of 2026-11-12

What we know

MCP serverYessource, checked 2026-11-26
Open sourceYesfrom our original listing, not yet re-checked
PricingFreefrom our original listing, not yet re-checked

Overview

CodeBurn breaks down what you spend on AI coding tools. Your bill shows a monthly total; CodeBurn shows cost by tool, model, project, git branch and task (coding, debugging, planning), worked out from the session files your tools already save. It runs locally with no account, in the terminal, a desktop app, a browser view or the macOS menu bar.

Key capabilities

  • Spend breakdown: by tool, model, project, branch and task.
  • Session drill-down: click through to individual sessions and turns.
  • Compare periods: check whether a model or workflow change actually saved money.
  • Optimize: find wasted tokens and apply reversible fixes.
  • Plans and quotas: track usage against subscriptions such as Claude Max.
  • Guard: opt-in spending caps for Claude Code.

Tradeoffs

  • Only sees tools that write local session files it understands.
  • Prices are estimates from token counts, not your invoice.
  • Optimize changes your config files; review before applying (backups are kept).

Ideal for

  • Developers paying for several AI coding tools
  • Teams tracking AI spend per project
  • Heavy Claude Code users on a plan

Not ideal for

  • Organization-wide billing reports
  • Tools that don't store sessions locally

Getting started

  1. Run npx codeburn (Node.js 22.15+). There's no account; it reads the session files your AI tools already write.
  2. Use the arrow keys to change the period and p to switch tools. Run codeburn web for the same view in a browser.
  3. Run codeburn optimize to see what's wasting tokens; add --apply to review and apply fixes, and codeburn act undo --last to roll back.
  4. Set your plan with codeburn plan set claude-max and check what's left with codeburn quota.

Technical notes

  • Run: npx codeburn; install with npm install -g codeburn or brew install codeburn
  • Requires: Node.js 22.15+
  • License: MIT
  • Source: getagentseal/codeburn
  • GitHub stars: 11,776 (as of 2026-11-12)

FAQ

How does CodeBurn know what I spent?

AI coding tools such as Claude Code, Codex and Cursor write session files with every token and model call. CodeBurn reads those local files and prices each token. There's no account or sign-up.

Can it reduce my costs?

`codeburn optimize` lists things that cost tokens without earning them, such as files re-read every turn or MCP servers you never call, with the estimated saving. It can apply fixes and undo them.

Can it stop runaway sessions?

`codeburn guard install` adds opt-in Claude Code hooks that warn a session at $5 and stop it at $15, and catch tool calls stuck in a loop.

Alternatives

None listed.

Is your tool an alternative to CodeBurn? Sponsor this spot for 30 days, marked Sponsored.

Integrations

None listed.

Built on

None listed.

For the team behind CodeBurn

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe CodeBurn), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-11-12 · updated 2026-11-12