anthonyhungnguyen/claude-code-mods/tree/main/cost-pane
anthonyhungnguyen@anthonyhungnguyen
关于这个 mod
cost-pane 添加一个状态行,显示工作階段和每日美元支出,并显示 7 天 sparkline;还提供 /cost-pane 面板,列出令牌数量、缓存命中率,以及最近 7 天按日排列的柱状图。mod 加载后,美元金额取自每轮的 /cost;每个工作階段都会向外掛存储写入一个 s:<session-id>:<day> 键,每日总额会汇总所有工作階段,超过 30 天的键会被清理。日期使用越南时间(UTC+7),在 hooks/register.tsx 的 dayOf 中配置。将文件夹加入 ~/.claude/mods/cost-pane 即可安装。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add anthonyhungnguyen/claude-code-mods claude plugin install cost-pane
原文 / README
cost-pane
A Claude Code mod that tracks token and USD spend per session and per day, kept across sessions.
💸 $1.23 session · $5.67 today · 7d ▁▃▂▅▇▄█ $12.34
The status line shows the line above. /cost-pane opens a pane with token counts, cache hit rate and one bar per day for the last 7 days.
Install
See the repo README; the folder to add is ~/.claude/mods/cost-pane.
How it counts
- USD is what
/costreports, counted per turn from the moment the mod loads. - Each session writes its own
s:<session-id>:<day>key to the plugin store (~/.claude/plugins/store/cost-pane_inline-*.json). Daily totals sum every session; keys older than 30 days are pruned. - Days are Vietnam time (UTC+7), set in
dayOfinhooks/register.tsx.
其他同名作品
- cost-panebaselane-sh · ★ 0

