Settings

Theme

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

cc.preslav.me

2 points by p5v 2 months ago · 1 comment

Reader

p5vOP 2 months 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection