Skip to main content
ClaudeWave
ES, Spanish
getagentseal / Tools

codeburn

Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Codex, Gemini and more), by model, project, and task. npx codeburn

  • 11.6k estrellas
  • 890 forks
  • 38 issues abiertos
  • Lenguaje: TypeScript
  • Licencia: MIT
  • actualizado

Instalación

Terminal
git clone https://github.com/getagentseal/codeburn
  1. Clone the repository.
  2. Follow the README for installation and usage instructions.

Nota editorial

CodeBurn is a TypeScript command-line tool that tracks token usage, cost, and performance across 25 AI coding tools, including Claude Code, Claude Desktop, Codex, Cursor, and Cline. It presents this data through an interactive terminal UI dashboard with views broken down by task type, model, project, and provider, and also includes a macOS menu bar widget. The tool reads session data directly from disk using no proxy, wrapper, or API keys, and prices each call through the LiteLLM library. Beyond basic reporting, it offers several analytical subcommands: `optimize` surfaces wasteful spending patterns with suggested fixes, `compare` runs side-by-side model cost comparisons, and `yield` distinguishes spending on productive work from reverted or abandoned sessions. Developers managing AI coding budgets across multiple tools will find the per-session cost breakdowns and the rolling date-range exports particularly useful for auditing where token spend actually lands.

README

Resumen de Tools

README completo en GitHub

See where your AI spend goes.

If CodeBurn shows you something your bill never did, star the repo so other developers find it, and consider sponsoring to keep 42 integrations honest.

npx codeburn

To keep it: npm install -g codeburn or brew install codeburn. Needs Node.js 22.13+.

The macOS builds are signed with a Developer ID and notarized by Apple.

The problem

Your bill gives you a month total. It does not break that down by project, by model or by task, and it does not show which part of it was wasted.

Claude Code, Codex, Cursor and the rest each write a session file every time you use them, and those files hold every token and every model call. CodeBurn reads those files and produces the breakdown.

Desktop app, macOS menu bar, Capacity Dock and the Claude glance card, one engine behind all of them.

Sixty seconds

npx codeburn

There is no account and no sign-up. CodeBurn looks in the folders your tools already write to, prices every token, and prints what you spent.

Under the total are the tables: cost by tool, by model, by project and by task. Task means what the agent was doing, such as coding, debugging or planning, worked out from the session itself.

Arrow keys move the period, from today out to your whole history. Press p to switch between tools. Press q to quit.

See it

The desktop app is the same data with room to move around in. It opens on today: what you have spent, what the month is on pace to cost, and the last thirty days day by day.

One click from the clock, the menu bar popover shows the short version of that page. The Capacity Dock adds a ring per provider at the screen edge. Hover a ring and a glance card tells you what is running right now and which limits are filling up.

All four read the same files on your disk, so they show the same numbers, allowing for when each one last refreshed.

The same numbers are in your browser with codeburn web, and in the terminal with codeburn.

Understand it

Every number in the app is clickable. Click today's total and you land on Sessions, one row per session with its project, its model, its tokens and its cost. Click a row and you get the turns inside it, so you can see which part of the work was expensive.

On the Spend page the same money is cut four ways, by project, by git branch, by model and by task. The branch view adds up every session you ran while you were on that branch, so you get the cost of a feature.

Compare periods puts two date ranges side by side and shows the difference. Use it after you change something, a model or a workflow or a prompt, to find out whether the change actually cost less.

The Pull requests page matches spend against the pull requests your sessions recorded, so you can see which spend shipped (Yield).

Fix it

codeburn optimize

Optimize reads your sessions and your config, then lists what costs tokens without earning them. A file the agent re-reads on every turn. An MCP server you installed months ago and never call. A CLAUDE.md that grew long enough to ride along in every single request.

Each finding comes with a grade, the fix, and what that fix should save you over the period it scanned.

CodeBurn can make the config changes for you, and take them back:

codeburn optimize --apply   # review and apply
codeburn act undo --last    # put it back

Files are backed up before they are changed, and you see the change before anything is applied. A few days later, codeburn act report checks what each fix promised against what your sessions actually did, including the fixes that changed nothing.

Stay ahead

codeburn plan set claude-max   # the plan you pay for
codeburn quota                 # how much of it is left
codeburn guard install         # spending caps for Claude Code

Tell CodeBurn which subscription you pay for and it stops showing only what you spent. It shows how much of the plan you have used, and whether the month is on pace to run past it.

codeburn quota reads the live limits out of the tools you are already signed in to. That is where the five-hour and weekly windows come from. Check it before a long run.

Guard is opt-in and local. codeburn guard install adds Claude Code hooks that warn a session once it passes $5 and stop it at $15. Both numbers are yours to change, codeburn guard status shows where the hooks live, and codeburn guard uninstall takes them out again.

Always in view

Today's spend sits in the macOS menu bar, beside the clock. Click it and the popover opens on the same figures as the app, with today, the period switcher, the trend and the per-model breakdown.

The Capacity Dock docks a thin rail to any edge of your screen, with one ring per provider showing how much of that plan is left. It shows what is left before you start a run, not after.

Turn either on from the desktop app's Plugins page in one click, or from the command line:

codeburn menubar

On Linux the same view lives in the top panel, as a GNOME Shell extension.

Topics
ai-codingclaude-codeclicodexcost-trackingcursor-idedeveloper-toolsmenubarobservabilityterminal-uitoken-usageweb-dashboard
Preguntas frecuentes

Lo que la gente pregunta sobre codeburn

¿Qué es getagentseal/codeburn?

getagentseal/codeburn es tools para el ecosistema de Claude AI. Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Codex, Gemini and more), by model, project, and task. npx codeburn Tiene 11.6k estrellas en GitHub y su última actualización registrada es del 2026-10-21.

¿Cómo se instala codeburn?

Puedes instalar codeburn clonando el repositorio (https://github.com/getagentseal/codeburn) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar getagentseal/codeburn?

Nuestro agente de seguridad ha analizado getagentseal/codeburn y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene getagentseal/codeburn?

getagentseal/codeburn es mantenido por getagentseal. La última actividad registrada en GitHub es del 2026-10-21, con 38 issues abiertos.

¿Hay alternativas a codeburn?

Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.

¿Mantienes este repo? Muestra su Trust Score en tu README

La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.

ClaudeWave Trust Score for getagentseal/codeburn
Markdown (README)
[![ClaudeWave Trust Score for getagentseal/codeburn](https://claudewave.com/api/badge/getagentseal-codeburn)](https://claudewave.com/en/repo/getagentseal-codeburn)
HTML
<a href="https://claudewave.com/en/repo/getagentseal-codeburn"><img src="https://claudewave.com/api/badge/getagentseal-codeburn" alt="ClaudeWave Trust Score for getagentseal/codeburn" width="320" height="64"></a>

Qué significa la insignia y cómo se calcula la puntuación

Web del proyecto
https://codeburn.app/