ZafarAli110

Claude Code Cost Meter — Development skill for Claude Code

Development community

Live cost, tokens, context window and every subagent's cost for Claude Code: a plugin.

How to install Claude Code Cost Meter

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ZafarAli110/claude-code-cost-meter and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Cost Meter does

Live cost, tokens, context window and every subagent's cost for Claude Code: a plugin.

Alternatives in Development

  • Opik Openclaw — 🦞 Official plugin for OpenClaw that exports agent traces to Opik 725 ★
  • Leantoken — Code intelligence for agents: find the code that matters and keep your context window and tokens lean 103 ★
  • Context Pressure — Diagnose long-search, large-file, and context-window pressure in a live session 58 ★

README

Cost meter for Claude Code

See what the work is costing while Claude Code does it: the estimated cost, the tokens and how many came from the cache, how full the context window is, the model calls, and every subagent with its own time, tokens and cost.

cost meter │ ⏱ 18m 04s │ ⚙ security-reviewer
cost     ●●●●○○○○○○  $4.20/$10.00 est.
tokens   ●●●●●●●●●○  90% from cache · 3.0M sent in 41 calls
context  ●●●○○○○○○○  30% 60k of 200k window
calls                41 to the model
agents               3 run · 690k tokens, $1.74 in all
         security-reviewer      running    80k tokens  ≈$0.03
         verifier                1m 35s   400k tokens  ≈$1.10
         architect                  47s   210k tokens  ≈$0.61

Where it shows

It shows in two places:

Where When How
Above the prompt, in the chat on by default, as soon as the plugin is installed a one-line summary; it grows to the full meter when the terminal has the rows. /show-meter hide and /show-meter show turn it off and on
The panel, beside the chat only when you run /show-meter panel (or just /show-meter) the full meter, every subagent, and a Copy button

Type `/show-meter` and the menu lists every word it takes; `/show-meter panel` also prints them.

Install

At the Claude Code prompt (the same on Windows, macOS and Linux):

/plugin install cost-meter --marketplace ZafarAli110/claude-code-cost-meter

Answer `y` to add the marketplace, then pick a scope: **user** for every project, **project** to share it with everyone who works in this repository. Or from a terminal:

claude plugin install cost-meter --marketplace ZafarAli110/claude-code-cost-meter

Update

From a terminal, with no Claude session needed (the same in PowerShell):

claude plugin marketplace update claude-code-cost-meter
claude plugin update cost-meter@claude-code-cost-meter

The first line fetches the newest list from GitHub; the second in