
Burnmeter
io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026
本機 Claude Code token 分析:效率佔比與各模型支出明細。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Local Claude Code token analytics: efficiency shares and per-model spend breakdown.
概覽
Burnmeter 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Burnmeter,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
burnmeter
burnmeter analyses Claude Code token spend from the session logs already on your machine. It reads the JSONL session files, adds up the token counts in every usage record, and reports two views: how the total splits across output, input, cache-creation, and cache-read (the efficiency view), and the full totals with a per-model split (the breakdown view). One binary serves a command-line interface and a stdio MCP server.
Everything is local. There is no network access, no API key, and no
account. The log directory is taken from CONTEXTBURN_LOG_DIR when
set and defaults to ~/.claude/projects; every *.jsonl file
under it is read recursively.
Install
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI
arguments to use it as a CLI instead. Note the container reads logs
from inside the container, so mount your log directory and point
CONTEXTBURN_LOG_DIR at the mount if you use it for real logs.
CLI
Both reports print JSON. --log-dir wins over CONTEXTBURN_LOG_DIR,
which wins over the ~/.claude/projects default. Exit codes: 0 on
success, 1 when a report fails, 2 for usage errors.
A breakdown contains logDir, filesScanned, entriesWithUsage,
malformedLines, totals (the four token counts plus
total_tokens), and byModel (the same counts per model, with an
entry count, sorted by total tokens descending). An efficiency
report contains the same scan fields and totals, plus shares:
each category as a percentage of total tokens, rounded to two
decimal places.
How entries are counted: a log line that is not valid JSON (or not
a JSON object) is skipped and counted in malformedLines. An entry
counts when it carries a usage object, either at the top level or
under its message; the four counts input_tokens,
output_tokens, cache_creation_input_tokens, and
cache_read_input_tokens are summed, with a missing or non-numeric
field counting as 0. The model is message.model, falling back to a
top-level model, falling back to unknown. Entries without a
usage object are ignored.
When the directory is missing or no usage entries are found, the
report is not an error and no numbers are invented: totals and
shares are zero, and the report carries a note field saying no
usage entries were found and where it looked.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
To read logs from a non-default directory, add CONTEXTBURN_LOG_DIR
to the client's env for this server.
Tools
Both tools are parameterless, as documented in the original tool's public spec.
Development
License
MIT — see LICENSE.
來源:README.md,提交 94b47df
工具
0版本歷史
1- v0.1.0最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分