Settings

Theme

Show HN: cc-costline – See your Claude Code spend right in the statusline

github.com

2 points by ventuss_ovo 25 days ago · 0 comments · 1 min read

Reader

I've been using Claude Code as my daily driver and had no easy way to track spending over time. The built-in statusline shows session stats, but nothing about historical cost or how close I am to hitting usage limits.

cc-costline replaces Claude Code's statusline with one that shows rolling cost totals, usage limit warnings, and optionally your rank on the ccclub leaderboard — all in a single line:

``` 14.6k ~ $2.42 / 40% by Opus 4.6 | 5h: 45% / 7d: 8% | 30d: $866 ```

What each segment means:

- `14.6k ~ $2.42 / 40% by Opus 4.6` — session tokens, cost, context window usage, model - `5h: 45% / 7d: 8%` — Claude's 5-hour and 7-day usage limits (color-coded: green → orange → red) - `30d: $866` — rolling 30-day total (configurable to 7d or both)

Setup is one command:

``` npm i -g cc-costline && cc-costline install ```

No comments yet.

Keyboard Shortcuts

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