zaferayan

Claude Cost Meter — Development skill for Claude Code

Development community

A Claude Code mod that shows what your session has cost so far, live above the prompt.

How to install Claude Cost Meter

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

What Claude Cost Meter does

A Claude Code mod that shows what your session has cost so far, live above the prompt.

Alternatives in Development

  • Notch Pilot — A live companion for Claude Code that lives in your MacBook notch 67 ★
  • Claude Image View — See the images you paste into Claude Code: thumbnails above the prompt instead of bare [Image #1] tags 44 ★
  • Cc Mod Image View — Claude Code mod: thumbnails of pasted images above the prompt instead of bare [Image #n] tags 27 ★

README

Cost Meter

A Claude Code mod that shows what your session has cost so far, live, right above the prompt.

![Cost Meter above the prompt, showing $1.27 of a $5.00 budget](docs/screenshot.png)

  • Live total. Updates as the session spends, mid-turn too. It's the same figure /cost shows, subagents included.
  • Budget. Green under half, yellow past half, red over, with a one-time warning when you cross it.
  • /spend. Turns, average per turn, and your priciest turn.
  • VS Code. The extension has no room above the prompt, so there the meter opens as a Cost pane instead. Run /spend to bring it back if you close it.

On a Pro or Max plan the figure is what the same usage would cost on the API, not what you're billed.

Install

Requires Claude Code 2.1.287 or later.

/plugin marketplace add zaferayan/claude-cost-meter
/plugin install cost-meter@zafer-mods
/reload-plugins

Configure

Set **Budget (USD)** for Cost Meter in `/config`. The default is $5; set it to 0 to turn the budget off.

Develop

claude plugin validate ./cost-meter
claude plugin test ./cost-meter

A mod runs inside Claude Code with the same access Claude Code has. Read the source before you install it: it's one file, [`cost-meter/hooks/cost-meter.mjs`](cost-meter/hooks/cost-meter.mjs).