ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 anthonyhungnguyen

cost-pane

一個跨工作階段持續記錄每個工作階段與每日權杖、美元支出的 Claude Code mod。

anthonyhungnguyen@anthonyhungnguyen

anthonyhungnguyen/claude-code-mods/tree/main/cost-pane

已翻譯

關於這個 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 /cost reports, 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 dayOf in hooks/register.tsx.

其他同名作品

更多類似作品