欣淇
发布于 2026-05-19 / 0 阅读
0
0

🔥 CodeBurn:6.6k Stars 的 AI 编程 Token 消费仪表盘,一个命令看清你的钱花在哪 / CodeBurn: 6.6k Stars AI Coding Cost Dashboard — See Where Your Tokens Go with One Command

🔥 CodeBurn:6.6k Stars 的 AI 编程 Token 消费仪表盘,一个命令看清你的钱花在哪 / CodeBurn: 6.6k Stars AI Coding Cost Dashboard — See Where Your Tokens Go with One Command

项目地址:github.com/getagentseal/codeburn | ⭐ 6,696 Stars | 🛠 TypeScript | 📜 MIT License | 🏷 Claude Code / Codex / Cursor


老实说,用 Claude Code 和 Codex 写代码爽是真的爽,但月底一看账单,心里就咯噔一下——我的钱都花哪去了?

每个模型价格不一样,每次任务消耗的 token 数量天差地别,你根本不知道哪个项目、哪个任务类型在吃你的预算。CodeBurn 就是来解决这个问题的。 6.6k Stars,一个 npx 命令就能装好,不装代理不改代码,读你本地的 session 数据,把每一分 token 花在哪清清楚楚列出来。

CodeBurn tracks token usage, cost, and performance across 19 AI coding tools. It breaks down spending by task type, model, tool, project, and provider so you can see exactly where your budget goes. Everything runs locally. No wrapper, no proxy, no API keys.

一行命令装上

npm install -g codeburn

或者用 Homebrew:

brew tap getagentseal/codeburn
brew install codeburn

懒得装?直接跑:

npx codeburn

别整那些花里胡哨的,装完直接 codeburn 就能打开交互式仪表盘。Arrow 键切换 Today / 7 Days / 30 Days / Month / 6 Months 视图,按 q 退出。

最骚的操作:一眼看出浪费

你可能会想:"我就几个 Agent 轮着用,能浪费多少?"

跑一下 codeburn optimize 就知道了:

codeburn optimize              # 找浪费,给你复制即用的修复建议
codeburn optimize -p week      # 只看最近一周

这玩意儿会分析你的使用模式,告诉你哪些配置、哪些模型组合在吃你的预算,直接给出优化建议——不是"建议用便宜模型"这种废话,而是具体到"你这个任务换 claude-sonnet-4-20260514 能省 63%"这种级别。

对比模型也很直观:

codeburn compare                # 并排对比各模型
codeburn models                 # 按模型看 token + 花费
codeburn models --by-task       # 每个模型的每种任务类型拆开看
codeburn models --top 10        # 只看花钱最多的10个
codeburn models --format markdown  # 输出 Markdown 表格,方便粘贴

还能干啥

按项目、按工具、按时间范围——怎么切都行:

codeburn today                  # 今天的花费
codeburn month                  # 这个月
codeburn report -p 30days       # 滚动30天
codeburn report --from 2026-04-01 --to 2026-04-10  # 精确区间
codeburn report --format json   # JSON 格式导出
codeburn export                 # CSV 导出
codeburn status                 # 一行概览:今天 + 本月

踩过的坑都是泪——我之前一直以为我的 Codex 账单大头是写核心功能,跑了 codeburn yield 一查,好家伙,65% 的花费用在调试和重构上。这不是工具的问题,是 workflow 的问题。看到数据之后我才开始调整策略。

总结

  • 不装代理不改代码,读本地 session 文件,零侵入
  • 支持 19 个 AI 编程工具(Claude Code / Codex / Cursor / Copilot / Windsurf…)
  • codeburn optimize 直接给可执行优化建议,不是空话
  • 按模型 / 任务类型 / 项目 / 提供商维度拆分明细
  • codeburn yield 追踪"花的值" vs "打了水漂"的比例

如果你的 AI coding agent 月花费超过 $50,装一个看看,别等月底被账单吓到。


Honestly, using Claude Code and Codex to write code feels amazing — until the end-of-month bill hits and you wonder where all your money went.

Each model has different pricing. Each task consumes wildly different token amounts. You have no idea which project or task type is eating your budget. CodeBurn fixes this. 6.6k Stars, installable with one npx command. No proxy, no code changes — it reads your local session data and breaks down exactly where every token went.

Install

npm install -g codeburn
# or
npx codeburn

Key Commands

codeburn              # Interactive dashboard (default: 7 days)
codeburn optimize     # Find waste, get copy-paste fixes
codeburn compare      # Side-by-side model comparison
codeburn yield        # Track productive vs reverted spend
codeburn export       # CSV export

Bottom line: Supports 19 AI coding tools, runs fully local, zero proxy. If your AI coding spend is over $50/month, install it and see where your money's really going.


评论