Claude Code Cost Meter — Development skill for Claude Code
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
Related Skills
Claude Code Hud
Two Claude Code mods above the prompt box: context-window meter, 5-hour limit, prompt clocks and session cost
Claude Code Fuel Gauge
A context meter for your Claude Code context window. Live percentage in your VS Code status bar, color-coded g
Spark Hud
✻ An animated HUD for Claude Code, with Claude's mascot: live context window, Max plan 5h/7d limits with pace
Claude Command Central
A live board of every Claude Code session on your Mac: what each one does, what needs you, context, agents, to
Purser
Session ledger for Claude Code — a native macOS app (PyObjC + WKWebView) to browse, cost, search and clean up
Agent Meter
2.3mb Windows Taskbar Widget to monitor live quotas, burn-rate, and API cost for Claude Code, Codex, Gemini CL
Related Agents
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
Dm Optimizer
Makes measured improvements to performance, token and context usage, redundant work and workflows. Use only af
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall