CodeBurn

Your AI Bill,
Itemized

Supported tools, 36 and counting

Claude
Claude
Codex
Codex
Cursor
Cursor
Copilot
Copilot
Gemini
Gemini
Goose
Goose
OpenCode
OpenCode
Kilo Code
Kilo Code
Roo Code
Roo Code
Cursor Agent
Cursor Agent
Kiro
Kiro
Qwen
Qwen
Antigravity
Antigravity
Crush
Crush
Droid
Droid
Pi
Pi
OpenClaw
OpenClaw
OMP
OMP
Claude
Claude
Codex
Codex
Cursor
Cursor
Copilot
Copilot
Gemini
Gemini
Goose
Goose
OpenCode
OpenCode
Kilo Code
Kilo Code
Roo Code
Roo Code
Cursor Agent
Cursor Agent
Kiro
Kiro
Qwen
Qwen
Antigravity
Antigravity
Crush
Crush
Droid
Droid
Pi
Pi
OpenClaw
OpenClaw
OMP
OMP

Starred by developers at

  • Microsoft
  • Amazon Web Services
  • Google
  • Apple
  • IBM
  • Oracle
  • Salesforce
  • Adobe
  • Samsung
  • Siemens
  • ByteDance
  • Mastercard
See all stargazers

The menu bar app

One glance up.
One click down.

The CodeBurn menu bar item showing today's spend, with its popover open below it: per-agent totals, month-to-date spend with a projected month total, and spend split by activity

You used to find out at the end of the month. Now the number sits next to your clock all day, above every window, and one click opens the whole bill.

  • Always on

    The day's spend sits next to your clock. No dashboard to open, no tab to find.

  • Limits before they bite

    Plan usage metered live for every agent, with time remaining on each window.

  • Every agent, one ledger

    Per agent totals from today to lifetime, local or combined across your machines.

  • Where it went

    Spend split by activity: coding, debugging, feature work, with turns and 1-shot rates.

Native Swift. Reads local session files only. Nothing leaves your Mac. On Linux, the same number lives in your GNOME top bar.

The desktop app

Follow the money.
Model to project.

The CodeBurn desktop app Overview: last 7 days spend, an efficiency grade, month to date against a projected month total, and daily spend

The bill stops being one number and becomes a map: which model, which project, which session, and whether the work it paid for survived.

  • Model to project, traced

    Cost flow shows which model spent into which repo, for any range you pick.

  • Graded, not guessed

    An efficiency score built from one-shot rate, cache hits, and retry tax.

  • Month to date, and where it lands

    A projected month total, with your pace measured against last month.

  • Sessions and pull requests

    Spend attributed to the branches and PRs the work actually produced.

Free and open source. macOS, Windows, and Linux.

The terminal

One command.
Nothing installed.

The CodeBurn terminal dashboard: today's cost, calls and cache hit rate, with breakdowns by day, project, activity, model, core tools, shell commands, skills and agents

Run npx codeburn and the whole picture opens where you already are. No install, no account, no config.

  • Today to lifetime

    Switch the whole view between today, a week, a month, six months, or everything you have ever run.

  • Every breakdown on one screen

    Project, model, activity, core tools, shell commands, skills and agents, all at once.

  • Cache hit and 1-shot, per row

    Cache hit rate, turns, and one-shot percentage sit next to every cost, not in a separate report.

  • MCP servers and subagents

    Uses and cost for the MCP servers, skills, and delegated agents your runs pulled in.

Also on Homebrew. The same totals the menu bar and the app read.

The community has spoken

From GitHub to Hacker News, developers are talking about CodeBurn.

Om Patel@om_patel5

THIS TOOL SHOWS YOU EXACTLY WHERE YOUR CLAUDE CODE TOKENS ARE GOING. This guy was spending $200+ a day on Claude Code with zero visibility into what was eating the tokens. So he built a terminal dashboard that reads your session transcripts and classifies every single turn.

This is actually pretty useful. Most people have no idea how much they're spending on AI tools until it adds up, so having it visible in the menubar makes a lot of sense. Really solid idea though, especially being open source.

@mahdibeeeon Reddit

Wait this is so sick! Definitely adding this when I get home

@Travi2000on Reddit

big thanks! needed this so badly.

@iammridu10on Reddit

Thank you - very interesting. I will try it out.

@NorthdockToolson Reddit

Beautiful

@ghoztzon Reddit

We definitely need to install this before our Polymarket scripts bankrupt us on API calls

@ludooncharton X

CodeBurn Is The Latest Usage Tracker Blowing up On Github. 435 likes, 16K+ views.

@Chase-H-AIon YouTube

You may want to bookmark this!! Do you know the true dollar cost of every Claude Code session?

@Nikkhil Guptaon LinkedIn

Thanks for the quick turnaround and for getting the invariants right. The reconciliation guarantee is what makes this safe to consume.

@eugene-eee-hongkyuon GitHub
Om Patel@om_patel5

THIS TOOL SHOWS YOU EXACTLY WHERE YOUR CLAUDE CODE TOKENS ARE GOING. This guy was spending $200+ a day on Claude Code with zero visibility into what was eating the tokens. So he built a terminal dashboard that reads your session transcripts and classifies every single turn.

This is actually pretty useful. Most people have no idea how much they're spending on AI tools until it adds up, so having it visible in the menubar makes a lot of sense. Really solid idea though, especially being open source.

@mahdibeeeon Reddit

Wait this is so sick! Definitely adding this when I get home

@Travi2000on Reddit

big thanks! needed this so badly.

@iammridu10on Reddit

Thank you - very interesting. I will try it out.

@NorthdockToolson Reddit

Beautiful

@ghoztzon Reddit

We definitely need to install this before our Polymarket scripts bankrupt us on API calls

@ludooncharton X

CodeBurn Is The Latest Usage Tracker Blowing up On Github. 435 likes, 16K+ views.

@Chase-H-AIon YouTube

You may want to bookmark this!! Do you know the true dollar cost of every Claude Code session?

@Nikkhil Guptaon LinkedIn

Thanks for the quick turnaround and for getting the invariants right. The reconciliation guarantee is what makes this safe to consume.

@eugene-eee-hongkyuon GitHub
Geek@geekbb

A handy little tool I discovered, specifically designed to keep tabs on the token bills for Claude Code and Codex. When you usually use AI to write code, where the tokens are spent, which model burns through money the fastest.

Very nice. Feels like one of those tools that becomes obvious the moment you see your spend broken down this clearly. Looks like the project has great velocity now.

@Swimming_Ad1570on Reddit

I'd love something like this Claude Desktop. Looks great.

@Character_Pie_5368on Reddit

Been using this a lot since I discovered it a few weeks ago. Thanks for building and sharing!

@Bitter-Law3957on Reddit

Looks like it may be useful, thank you

@swiftmerchanton Reddit

Looks cool! Is it able to track stats for models that I use through a non-opencode subscription? Like if I use gpt-5.3-codex through a chatgpt subscription in opencode, will I be able to see some usage stats for it?

@FunkyMonk92on Reddit

This is a game changer for anyone trying to scale their agentic workflows without going broke. Visualizing where the tokens actually go makes it much easier to optimize your development budget.

@inflectivAIon X

CodeBurn, an open-source dashboard built by the AgentSeal team that answers the one question every developer using Claude Code or Cursor is frustrated about: where the hell did all my tokens go?

@100xengineerson Instagram

ah nice, you are doing some amazing work. Just to let you know — Visa has forked CodeBurn internally and suggested employees try it.

@Nihal Jainon LinkedIn

Thanks for shipping this so quickly. Two choices are nicer than what I proposed. NSStatusItem.variableLength is a cleaner answer, and Int((cost * rate).rounded()) rounds correctly where my version would silently truncate.

@calvindotsgon GitHub
Geek@geekbb

A handy little tool I discovered, specifically designed to keep tabs on the token bills for Claude Code and Codex. When you usually use AI to write code, where the tokens are spent, which model burns through money the fastest.

Very nice. Feels like one of those tools that becomes obvious the moment you see your spend broken down this clearly. Looks like the project has great velocity now.

@Swimming_Ad1570on Reddit

I'd love something like this Claude Desktop. Looks great.

@Character_Pie_5368on Reddit

Been using this a lot since I discovered it a few weeks ago. Thanks for building and sharing!

@Bitter-Law3957on Reddit

Looks like it may be useful, thank you

@swiftmerchanton Reddit

Looks cool! Is it able to track stats for models that I use through a non-opencode subscription? Like if I use gpt-5.3-codex through a chatgpt subscription in opencode, will I be able to see some usage stats for it?

@FunkyMonk92on Reddit

This is a game changer for anyone trying to scale their agentic workflows without going broke. Visualizing where the tokens actually go makes it much easier to optimize your development budget.

@inflectivAIon X

CodeBurn, an open-source dashboard built by the AgentSeal team that answers the one question every developer using Claude Code or Cursor is frustrated about: where the hell did all my tokens go?

@100xengineerson Instagram

ah nice, you are doing some amazing work. Just to let you know — Visa has forked CodeBurn internally and suggested employees try it.

@Nihal Jainon LinkedIn

Thanks for shipping this so quickly. Two choices are nicer than what I proposed. NSStatusItem.variableLength is a cleaner answer, and Int((cost * rate).rounded()) rounds correctly where my version would silently truncate.

@calvindotsgon GitHub
0xMarioNawfal@RoundtableSpace

Someone was spending $200+ a day on Claude Code with no idea where the tokens were going. So they built a terminal dashboard that classifies every session turn into 13 categories. More than half the money was going to conversation, not code. One line install: npx codeburn.

Great to see someone actually evaluating, sharing data and insights over the hundreds of "this sucks" posts with zero context. Thanks!

@Bitter-Law3957on Reddit

Thanks for the context. Quality post.

@phil_thrasheron Reddit

That is cool. Will try it out soon.

@gastro_psychicon Reddit

Interesting! I like it!

@latentObserver_99on Reddit

wait this is actually useful. was literally wondering yesterday why my claude bill was so high when i wasn't coding that much. gonna try this today

@dino11on X

Visibility is key.

@chriswinfieldon X

Very useful

@Neil Barlowon LinkedIn

Great tool. Installed via npx, zero friction, immediately useful on a 15-project setup running 170+ sessions/month across Opus and Sonnet. Starred.

@sterngoldon GitHub

Confirmed working! Before fix: 0 Gemini sessions detected. After fix: 54 sessions captured, full breakdown intact. Thanks for the fast turnaround on the fix!

@ozymandiashhon GitHub
0xMarioNawfal@RoundtableSpace

Someone was spending $200+ a day on Claude Code with no idea where the tokens were going. So they built a terminal dashboard that classifies every session turn into 13 categories. More than half the money was going to conversation, not code. One line install: npx codeburn.

Great to see someone actually evaluating, sharing data and insights over the hundreds of "this sucks" posts with zero context. Thanks!

@Bitter-Law3957on Reddit

Thanks for the context. Quality post.

@phil_thrasheron Reddit

That is cool. Will try it out soon.

@gastro_psychicon Reddit

Interesting! I like it!

@latentObserver_99on Reddit

wait this is actually useful. was literally wondering yesterday why my claude bill was so high when i wasn't coding that much. gonna try this today

@dino11on X

Visibility is key.

@chriswinfieldon X

Very useful

@Neil Barlowon LinkedIn

Great tool. Installed via npx, zero friction, immediately useful on a 15-project setup running 170+ sessions/month across Opus and Sonnet. Starred.

@sterngoldon GitHub

Confirmed working! Before fix: 0 Gemini sessions detected. After fix: 54 sessions captured, full breakdown intact. Thanks for the fast turnaround on the fix!

@ozymandiashhon GitHub

Genuinely thank you so much for this. I was able to find where my claude has been opening thousands of terminal sessions and eating up my tokens without me even sending a single message. Super duper helpful

@MrMelon997on Reddit

Immediate install and use. It's brilliant, thank you OP!

@Hekidayoon Reddit

I need this in my life

@don_krugeron Reddit

Nice design! Good job!

@AlternativeScientiston Reddit

Thanks for making this, will try this out with my team!

@atehranion Reddit

Codex, Claude Code, Cursor... quietly hiding the real cost of your usage. That's why CodeBurn exists. It tracks tokens, cost, and performance across 18+ AI coding tools, so you can compare models, optimize usage, and see where your budget leaks.

@dhruvtwt_on X

beautiful

@brianchewon X

Install codeburn, then run codeburn optimize. That command scans your coding agent sessions for specific waste. Repeated file reads, low read-to-edit ratios, uncapped bash output, unused MCP servers. And returns token-level savings estimates per fix.

@André Lindenbergon LinkedIn

Four out of six in a single release cycle is genuinely impressive. Per-project drill-down and cost-per-session are exactly what I needed most. Great project.

@sterngoldon GitHub

And thanks for the quick fixes!!

@rdoumaon GitHub

Genuinely thank you so much for this. I was able to find where my claude has been opening thousands of terminal sessions and eating up my tokens without me even sending a single message. Super duper helpful

@MrMelon997on Reddit

Immediate install and use. It's brilliant, thank you OP!

@Hekidayoon Reddit

I need this in my life

@don_krugeron Reddit

Nice design! Good job!

@AlternativeScientiston Reddit

Thanks for making this, will try this out with my team!

@atehranion Reddit

Codex, Claude Code, Cursor... quietly hiding the real cost of your usage. That's why CodeBurn exists. It tracks tokens, cost, and performance across 18+ AI coding tools, so you can compare models, optimize usage, and see where your budget leaks.

@dhruvtwt_on X

beautiful

@brianchewon X

Install codeburn, then run codeburn optimize. That command scans your coding agent sessions for specific waste. Repeated file reads, low read-to-edit ratios, uncapped bash output, unused MCP servers. And returns token-level savings estimates per fix.

@André Lindenbergon LinkedIn

Four out of six in a single release cycle is genuinely impressive. Per-project drill-down and cost-per-session are exactly what I needed most. Great project.

@sterngoldon GitHub

And thanks for the quick fixes!!

@rdoumaon GitHub

Frequently asked questions

What is CodeBurn?

CodeBurn is a free, open-source, local-first tool that tracks AI coding token usage and cost across 36 tools and agents, including Claude Code, Cursor, Codex, Gemini and Grok, broken down by model, project, and task. It ships as a desktop app for macOS, Windows and Linux, a macOS menu bar app, a CLI, a local web dashboard, and a GNOME extension.

How do I track my Claude Code, Cursor, or Codex cost?

Run npx codeburn and CodeBurn reads the session data already on your machine. See the dedicated guides for Claude Code cost, Cursor usage, and Codex cost.

Does CodeBurn only find waste, or fix it?

Both. codeburn optimize grades your setup A to F and flags duplicate reads, context bloat, and ghost agents. It can then apply the fixes for you, with an undo for each one. See Optimize.

Is CodeBurn a ccusage alternative?

Yes. CodeBurn covers 36 tools (not just Claude Code), adds a desktop app, a menu bar app and a web dashboard, and prices cache reads and writes correctly. See CodeBurn vs ccusage.

Is it free, and does my data leave my machine?

CodeBurn is 100% free and open source, and fully local. It reads session files on disk and never uploads anything, no account, no API keys. The desktop app has optional, anonymous telemetry you opt into at first launch, and you can read exactly what it collects.

Which AI coding tools does CodeBurn support?

CodeBurn auto-detects 36 AI coding tools. See the full list of supported tools.

Find out what you actually spent