ローカルのセッションファイルを読み取ることで、Claude Code、Cursor、CodexなどのツールにおけるAIコーディング費用、トークン使用量、およびプランのクォータを分析します。
別名 getagentseal/codeburn
- スター
- 11,798
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.9.28
- 最終コミット
- 2026年11月13日
- ライセンス
- MIT
CodeBurn MCPとは
CodeBurnはMCPサーバーです。 ローカルのセッションファイルを読み取ることで、Claude Code、Cursor、CodexなどのツールにおけるAIコーディング費用、トークン使用量、およびプランのクォータを分析します。.
プロジェクトのREADMEから生成された概要
CodeBurn MCP server について
CodeBurnは、Claude Code、Cursor、Codexなどのツールによって生成されたローカルのセッションファイルを分析することで、AIコーディング費用の詳細な内訳を提供します。プロバイダーから提示される月間の合計金額を見るだけでなく、プロジェクト、モデル、git branch、およびデバッグやプランニングといった特定のタスクごとにコストを確認できます。このシステムはディスク上の既存ファイルを読み取ってローカルで動作するため、使用状況の追跡を開始するためにアカウント作成やサインアップを行う必要はありません。
ユーザーは、ターミナルインターフェース、Webビュー、またはmacOS、Windows、Linuxで利用可能な専用のデスクトップアプリケーションを通じてデータを確認できます。このツールには、コストを増大させているトークン消費の激しいファイルや、使用されていないMCP serverを特定する最適化機能が含まれています。Claude Codeを使用している場合は、stdio経由でMCP serverとして統合でき、AIエージェントが外部へのネットワーク通信を行うことなく、会話の中でトークン使用量や支出習慣に関する質問に直接答えることが可能になります。
できること
- 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を開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
CodeBurnはどのように支出を追跡するのですか?
Claude Code、Codex、Cursorなどのツールがディスクに書き込むセッションファイルを読み取ります。これらのファイルには、すべてのトークンとモデル呼び出しの情報が含まれています。
CodeBurnを使用するためにアカウントを作成する必要がありますか?
いいえ、ツールの使用にアカウント作成やサインアップは必要ありません。
CodeBurnはAIコストの削減に役立ちますか?
はい、optimizeコマンドを使用すると、不要なファイルや使用されていないMCP serverなど、価値を提供せずにトークンを消費している要素を特定し、自動的に修正を適用できます。
MCP serverはデータをリモートサーバーに送信しますか?
いいえ、MCP serverはディスク上のローカルファイルを読み取るだけで、独自のネットワーク通信は行いません。