Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Singh-APv1.0.0MITIn 1 marketplace
Always know what a session costs: live $ / context / rate-limit status line, the cost of every turn, context warnings, and an optional budget that asks before spending more.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Session budget (USD)budgetUsd
Ask before spending more each time the session passes another multiple of this amount. 0 turns the budget off.
numbermin 0default 0
Show each turn's costshowTurnCost
Append the turn's cost to the line that closes it (Baked for 1m 3s · $0.12).
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
booleandefault true
Context warningscontextWarnings
Toast when the context window passes 70%, 85% and 95%.
booleandefault true
Always know what a session costs: live spend, context and rate limits on the status line, the price of every turn, and a budget that asks before spending more.
✻ Baked for 1m 35s
$0.31 this turn
╭──────────────────────────────────────────────────────────────╮
│ > │
╰──────────────────────────────────────────────────────────────╯
💸 $4.12 · ctx 71% · 5h 38% · 7d 12%
┌ cost-meter ──────────────────┐
│ context 85% full: /compact │
│ soon │
└──────────────────────────────┘
NaN or undefined.Baked for 1m 35s), a dim line shows what that turn cost, subagents included (terminal)./compact./spend shows the session total, context, rate limits with reset times, the most expensive turn, and your last 10 turns with cost and duration. /spend budget 5 sets a budget for this session; /spend budget off clears it./plugin marketplace add Singh-AP/awesome-claude-mods
/plugin install cost-meter@awesome-claude-mods
Requires Claude Code 2.1.287 or later.
| Option | Default | What it does |
|---|---|---|
budgetUsd | 0 (off) | Ask before spending more each time the session passes another multiple of this many US dollars. |
showTurnCost | true | Append the turn's cost to the line that closes it. |
contextWarnings | true | Toast at 70% / 85% / 95% context. |
| Event / API | Why |
|---|---|
session.measure | Pushed after each turn and on rate-limit moves: the status line and the warnings. No polling. |
$.session.usage() | Free reads at turn start and end (per-turn delta), and per tool call while a budget is set |
ui.render on TurnDuration | Draws the engine's own line, then · $0.31 beside it |
tool.call, prompt.submit | The budget gate ($.ui.ask, { deny }, { drop } + $.prompt.fill) |
command.run | /spend (Claude Code's built-in /cost name is reserved) |
claude plugin test mods/cost/cost-meter # 29 tests
/cost reports it. On a subscription it's what the usage would cost at API prices, not a bill.--resume show no cost.7-day copy clicks
npx claudepluginhub singh-ap/awesome-claude-mods --plugin cost-meterBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground