Analisa gastos com codificação por IA, uso de tokens e cotas de planos em ferramentas como Claude Code, Cursor e Codex através da leitura de arquivos de sessão locais.
Também conhecido como getagentseal/codeburn
- Stars
- 11.798
- Ferramentas
- —
- Downloads, 30 dias
- —
- Versão mais recente
- 0.9.28
- Último commit
- 13 de nov. de 2026
- Licença
- MIT
O que é o MCP CodeBurn?
CodeBurn é um MCP server. Analisa gastos com codificação por IA, uso de tokens e cotas de planos em ferramentas como Claude Code, Cursor e Codex através da leitura de arquivos de sessão locais.
Resumo gerado a partir do README do projeto
Sobre o MCP server de CodeBurn
O CodeBurn fornece um detalhamento minucioso dos gastos com codificação por IA ao analisar arquivos de sessão locais gerados por ferramentas como Claude Code, Cursor e Codex. Em vez de ver apenas um total mensal de um provedor, os desenvolvedores podem visualizar custos categorizados por projeto, modelo, branch do git e tarefas específicas, como debugging ou planejamento. O sistema funciona localmente, lendo arquivos existentes no seu disco, o que significa que não é necessário criar uma conta ou fazer cadastro para começar a monitorar o uso.
Os usuários podem interagir com os dados por meio de uma interface de terminal, uma visualização web ou um aplicativo desktop dedicado disponível para macOS, Windows e Linux. A ferramenta inclui um recurso de otimização que identifica arquivos com alto consumo de tokens ou MCP servers não utilizados que elevam os custos. Para quem utiliza Claude Code, ele pode ser integrado como um MCP server via stdio, permitindo que um agente de IA responda perguntas sobre o uso de tokens e hábitos de gastos diretamente em uma conversa, sem realizar chamadas de rede externas.
O que você pode fazer com ele
- 1Analise gastos de codificação por tarefaPeça à IA para explicar quanto foi gasto em atividades específicas, como debugging ou planejamento.
- 2Identifique desperdício de tokensExecute uma varredura de otimização para encontrar arquivos ou configurações que estão consumindo tokens desnecessariamente.
- 3Monitore cotas de assinaturaVerifique quanto resta de um plano de IA específico para evitar que os créditos acabem no meio de uma sessão.
- 4Calcule custos de desenvolvimento de funcionalidadesDetermine o custo total de uma funcionalidade específica analisando os gastos associados a uma branch do git.
Escrito a partir do README do projeto. Cada caso de uso é verificado com uma citação dele.
Como instalar o MCP CodeBurn
Formatos verificados em 10 nov 2026Adicionar ao CursorAdicionar ao GooseInstalar o MCP CodeBurn no Claude Code
$ claude mcp add codeburn -- npx -y codeburnInstalar o MCP CodeBurn no Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"codeburn": {
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}Instalar o MCP CodeBurn no VS Code
.vscode/mcp.json
{
"servers": {
"codeburn": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}Instalar o MCP CodeBurn no VS Code CLI
$ code --add-mcp '{"name":"codeburn","type":"stdio","command":"npx","args":["-y","codeburn"]}'Instalar o MCP CodeBurn no Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"codeburn": {
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}Instalar o MCP CodeBurn no Codex
$ codex mcp add codeburn -- npx -y codeburnInstalar o MCP CodeBurn no Codex config.toml
~/.codex/config.toml
[mcp_servers.codeburn] command = "npx" args = ["-y", "codeburn"]
Instalar o MCP CodeBurn no Gemini CLI
$ gemini mcp add -s user codeburn npx -- -y codeburnInstalar o MCP CodeBurn no Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"codeburn": {
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}Verificações automatizadas
Executado em 12 de nov. de 2026Relatório completo →Passou em nossas verificações automatizadas. Isso não é uma auditoria de segurança: leia o código e dê ao servidor o acesso mais restrito de que ele precisa. Como as verificações funcionam
- Repositório de origem vinculado e acessívelPassou
- Licença de código aberto (OSI)Passou
- Commit ou release no último anoPassou
- Nome do pacote não é próximo a um pacote popularPassou
- O endpoint remoto usa HTTPSNão verificado
- Ferramentas destrutivas estão rotuladasNão verificado
- Sem instruções ocultas para o modeloPassou
- Nenhum aviso crítico no pacote ou em suas dependênciasPassou
README
Ver no GitHubThe 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.
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, and do the same for a tool call stuck in a loop or a failing command retried over and over. All the limits 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.
The desktop app runs on Windows. Install it from the Microsoft Store, which is the recommended way and keeps itself up to date, or take the direct installer. The Windows tray app shows today's cost next to the clock, the same way the macOS menu bar does, and clicking it opens the same popover. The Capacity Dock is there too, from the tray menu or the app's Plugins page. If you run your agents inside WSL, CodeBurn reads the distro's home directory as well as your Windows profile, so sessions you ran in Linux are counted without you installing anything twice.
Setup for all three platforms, including WSL, is in Menu bar and tray.
Inside your agent
In Claude Code, install the plugin. It sets up the MCP server below and adds /codeburn:cost, which summarizes today's spend:
/plugin install codeburn --marketplace getagentseal/codeburn
Or register only the MCP server:
claude mcp add codeburn -- npx -y codeburn mcp
That registers a local MCP server over stdio. Your agent can then answer "where did my tokens go this week" or "what should I change to spend less" without you leaving the conversation.
It reads the same files on disk that the CLI reads. The server answers from that local data and makes no network call of its own, and project names are pseudonymized unless the agent asks for them.
Works with 42 tools
CodeBurn detects the tools you already use. There is nothing to configure and no folder to point it at. If a tool is installed and has sessions on disk, it shows up. Each logo links to that tool's page.
Each page lists where that tool keeps its data, the format it uses, and the quirks CodeBurn works around.
Amp · Antigravity · Claude Code · Cline · Cline CLI · Codebuff · Codex · CodeWhale · Command Code · Copilot · Crush · Cursor · Cursor Agent · DeepSeek Harness · Devin · Droid · Forge · Gemini CLI · Goose · Grok Bot · Grok Build · Hermes Agent · IBM Bob · KiloCode · Kimi · Kimi Code · Kiro · LingTai TUI · Mistral Vibe · Mux · OMP · Open Design · OpenClaude · OpenClaw · OpenCode · Pi · Qwen · Quick Desktop · Warp · ZCode · Zed · Zerostack
CodeBurn also reads the Vercel AI Gateway reporting API, which is a gateway rather than a tool, so its spend is shown on its own row and left out of your totals by default.
If several of these have sessions on disk, press p in the dashboard to move between them. A path that has changed is worth an issue. Adding a tool is a single file: see src/providers/codex.ts.
Private by design
CodeBurn reads files that are already on your disk. There is no account, no API key and no proxy in front of your agent.
Your prompts, your code and your project names stay on your computer. CodeBurn does not sit between you and your agent, so if it stopped working tomorrow your tools would not notice.
Prices come from LiteLLM and refresh once a day.
Everything that does leave your machine is listed in Privacy.
Perguntas sobre o MCP CodeBurn
Como adiciono o MCP CodeBurn ao Claude Code?
Execute claude mcp add codeburn -- npx -y codeburn no seu terminal. Adicione --scope user para torná-lo disponível em todos os projetos.
Como adiciono o MCP CodeBurn ao Cursor?
Abra ~/.cursor/mcp.json e adicione o servidor em mcpServers, usando a configuração do Cursor mostrada na seção de instalação acima.
Como o CodeBurn rastreia meus gastos?
Ele lê os arquivos de sessão que ferramentas como Claude Code, Codex e Cursor gravam no seu disco, os quais contêm cada token e chamada de modelo.
Preciso criar uma conta para usar o CodeBurn?
Não, não é necessário criar uma conta ou fazer cadastro para usar a ferramenta.
O CodeBurn pode me ajudar a reduzir meus custos de IA?
Sim, o comando optimize identifica itens que consomem tokens sem agregar valor, como arquivos desnecessários ou MCP servers não utilizados, e pode aplicar correções automaticamente.
O MCP server envia meus dados para um servidor remoto?
Não, o MCP server lê arquivos locais no seu disco e não realiza chamadas de rede por conta própria.