cd /news/developer-tools/gauge-see-where-your-claude-code-sub… · home topics developer-tools article
[ARTICLE · art-84021] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Gauge – see where your Claude Code subscription goes

Joey-io released Gauge, an open-source tool that shows Claude Code subscribers where their flat monthly subscription spend goes, breaking down usage by 5-hour window, day, model, and project. The tool reads local session transcripts, dedupes API messages, and displays cost in API-list-equivalent dollars, with no telemetry or network calls. It requires Node 22.5 or newer and is available via npx.

read1 min views1 publishedAug 2, 2026
Gauge – see where your Claude Code subscription goes
Image: source

A local meter for your Claude Code plan. You pay a flat monthly price; gauge shows you where it goes — by 5-hour window, day, model, and project.

npx github:joey-io/gauge

That's the whole install. It reads the session transcripts Claude Code already writes to ~/.claude/projects

, dedupes them down to real API messages, and renders one screen:

  • your last 5 hours of spend against the biggest 5-hour window you've ever had
  • daily bars for the last 14 days
  • which models and which projects are eating the allowance

Nothing leaves your machine. No account, no telemetry, no network calls.

  • Dollars are API-list-equivalent— what this usage would cost at Anthropic's published API rates. Subscription plans don't publish their quota mechanics, so this is the only honest common currency. It is not your bill. - Claude Code writes one transcript line per streamed chunk, all carrying the same message id, and replays messages into new files when sessions resume. gauge dedupes by message id; naive line-summing over-counts badly.
  • Subagent transcripts nest several directories deep. gauge walks them — in testing they held roughly half the spend.
  • "Peak 5h window" is your observed ceiling, labeled as such. Anthropic doesn't expose the actual plan limit.

Node 22.5 or newer (uses the built-in sqlite — zero npm dependencies). A Claude Code history at ~/.claude/projects

.

gauge --days 30       # widen the by-model / by-project sections
gauge activate <key>  # register a license key (verifies offline)
GAUGE_DATA_DIR=...    # move the cache db (default ~/.cache/gauge)

The first run scans your full history (about a minute per GB of transcripts). After that it's incremental and takes a second or two.

MIT.

── more in #developer-tools 4 stories · sorted by recency
── more on @joey-io 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/gauge-see-where-your…] indexed:0 read:1min 2026-08-02 ·