anthonyhungnguyen/claude-code-mods/tree/main/cost-pane
cost-pane
セッションごとと日ごとのトークン使用量・米ドル支出を記録し、セッションをまたいで保持する Claude Code mod です。
この 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

