ClaudeMods
☰
EN
● — online · Views — times
SponsorsSubmit a project
GitHub repositories · by anthonyhungnguyen

cost-pane

A Claude Code mod that tracks token and USD spend per session and per day, kept across sessions.

anthonyhungnguyen@anthonyhungnguyen

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

Translated

About this mod

cost-pane adds a status line showing session and daily USD spend plus a 7-day sparkline, and a /cost-pane pane with token counts, cache hit rate and per-day bars for the last 7 days. USD is taken from /cost per turn since the mod loads; each session writes a s:<session-id>:<day> key to the plugin store, daily totals sum every session, and keys older than 30 days are pruned. Days use Vietnam time (UTC+7), configured in dayOf in hooks/register.tsx. Install by adding the folder to ~/.claude/mods/cost-pane.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add anthonyhungnguyen/claude-code-mods
claude plugin install cost-pane
Original text / 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.

Get a badge

Is this your project? Add this badge to your README or website. It links back to this page.

Featured on ClaudeMods
Size
Theme
Markdown
HTML

Other works with the same name

Similar projects