로컬 세션 파일을 읽어 Claude Code, Cursor, Codex와 같은 도구의 AI 코딩 비용, 토큰 사용량 및 플랜 할당량을 분석합니다.
다른 이름 getagentseal/codeburn
- 스타
- 11,798
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.9.28
- 마지막 커밋
- 2026년 11월 13일
- 라이선스
- MIT
CodeBurn MCP란?
CodeBurn은(는) MCP server입니다. 로컬 세션 파일을 읽어 Claude Code, Cursor, Codex와 같은 도구의 AI 코딩 비용, 토큰 사용량 및 플랜 할당량을 분석합니다.
프로젝트 README에서 생성된 요약
CodeBurn MCP server 정보
CodeBurn은 Claude Code, Cursor, Codex와 같은 도구에서 생성된 로컬 세션 파일을 분석하여 AI 코딩 비용에 대한 상세한 내역을 제공합니다. 개발자는 제공업체에서 제공하는 월간 총액만 보는 대신, 프로젝트, 모델, git branch 및 디버깅이나 플랜과 같은 특정 작업별로 분류된 비용을 확인할 수 있습니다. 이 시스템은 디스크의 기존 파일을 읽어 로컬에서 작동하므로, 사용량 추적을 시작하기 위해 계정을 만들거나 가입할 필요가 없습니다.
사용자는 터미널 인터페이스, 웹 뷰 또는 macOS, Windows, Linux용 데스크톱 애플리케이션을 통해 데이터와 상호작용할 수 있습니다. 이 도구에는 비용을 증가시키는 토큰 과다 사용 파일이나 사용하지 않는 MCP server를 식별하는 최적화 기능이 포함되어 있습니다. Claude Code 사용자의 경우 stdio를 통해 MCP server로 통합할 수 있어, AI agent가 외부 네트워크 호출 없이 대화 내에서 토큰 사용량 및 지출 습관에 대한 질문에 직접 답변할 수 있습니다.
활용 사례
- 1작업별 코딩 지출 분석디버깅이나 플랜과 같은 특정 활동에 얼마의 비용이 사용되었는지 AI에게 물어보세요.
- 2토큰 낭비 식별최적화 스캔을 실행하여 불필요하게 토큰을 소비하는 파일이나 설정을 찾으세요.
- 3구독 할당량 모니터링세션 도중 크레딧이 소진되는 것을 방지하기 위해 특정 AI 플랜의 잔여량을 확인하세요.
- 4기능 개발 비용 계산git branch와 관련된 지출을 확인하여 특정 기능 개발에 드는 총비용을 산출하세요.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
CodeBurn MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 CodeBurn MCP 설치
$ claude mcp add codeburn -- npx -y codeburnCursor에 CodeBurn MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"codeburn": {
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}VS Code에 CodeBurn MCP 설치
.vscode/mcp.json
{
"servers": {
"codeburn": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}VS Code CLI에 CodeBurn MCP 설치
$ code --add-mcp '{"name":"codeburn","type":"stdio","command":"npx","args":["-y","codeburn"]}'Claude Desktop에 CodeBurn MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"codeburn": {
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}Codex에 CodeBurn MCP 설치
$ codex mcp add codeburn -- npx -y codeburnCodex config.toml에 CodeBurn MCP 설치
~/.codex/config.toml
[mcp_servers.codeburn] command = "npx" args = ["-y", "codeburn"]
Gemini CLI에 CodeBurn MCP 설치
$ gemini mcp add -s user codeburn npx -- -y codeburnGemini settings.json에 CodeBurn MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"codeburn": {
"command": "npx",
"args": [
"-y",
"codeburn"
]
}
}
}자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음통과
README
GitHub에서 보기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.
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.
CodeBurn MCP 질문
CodeBurn MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add codeburn -- npx -y codeburn를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
CodeBurn MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
CodeBurn은 지출을 어떻게 추적하나요?
Claude Code, Codex, Cursor와 같은 도구가 디스크에 기록하는 세션 파일을 읽습니다. 이 파일에는 모든 토큰 사용량과 모델 호출 정보가 포함되어 있습니다.
CodeBurn을 사용하려면 계정을 생성해야 하나요?
아니요, 도구 사용을 위한 계정 생성이나 가입은 필요하지 않습니다.
CodeBurn이 AI 비용을 줄이는 데 도움이 될까요?
네, optimize 명령어를 통해 불필요한 파일이나 사용하지 않는 MCP server와 같이 가치 없이 토큰만 소비하는 요소를 식별하고 자동으로 수정할 수 있습니다.
MCP server가 제 데이터를 원격 서버로 전송하나요?
아니요, MCP server는 디스크의 로컬 파일만 읽으며 자체적으로 네트워크 호출을 수행하지 않습니다.