Show HN: I built a one-file tool to visualize the real cost of Claude Code usage

2 pointsposted 6 hours ago
by p5v

1 Comments

p5v

6 hours ago

Hey HN,

Anthropic charges $20/month for Claude Pro, which is all fine, but we all know that this is heavily subsidized, and is not the real cost of tokens we burn through.

The well-known ccusage (https://ccusage.com/) utility can read those logs and compute what you would have paid on a pay-per-token basis. For heavy users, that number can be... surprising.

I built a single HTML file that turns that data into a shareable infographic — cost trends over time, model breakdown (Sonnet vs. Haiku vs. Opus), total token volume, and peak spend days.

Everything runs client-side. The JSON never leaves your machine.