DevTrends开发者趋势
主题色

ventuss-ovo /

cc-costline

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 limit…

DT软件开发DTAgent 能力扩展DTAgent 可观测性DT命令行工具DTLinuxDTmacOSDT终端DTClaude Code

关于

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 ```

收录记录

  1. Show HN

    2026年2月17日 · 1 次收录

  2. HelloGitHub·用户投稿

    2026年2月18日 · 1 次收录

  3. 阮一峰周刊·用户投稿

    2026年2月18日 · 1 次收录

讨论这个产品