Back to browse
GitHub Repository

Enhanced statusline for Claude Code — see your 7d/30d spend at a glance

24 starsTypeScript

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

by ventuss_ovo·Feb 17, 2026·2 points·0 comments

AI Analysis

●●SolidNiche GemSolve My Problem
The Take

It does one thing and does it cleanly: inject a compact statusline that shows tokens → dollar estimate, context usage coloring, 5h/7d limit progress, and a rolling period total (with optional ccclub rank). The zero-config behavior — silently omitting integrations you don't have, auto-reading OAuth from the macOS keychain, and writing safe hooks into ~/.claude/settings.json — is smart and pragmatic. This is narrowly useful (only Claude Code users), but the UX decisions (color thresholds, single-line density, cache strategy) show real attention to terminal workflows.

Target Audience

Claude Code users, prompt engineers, AI/ML developers, and devs who want to track Anthropic usage/costs

Post Description

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

Similar Projects

Developer Tools●●Solid

ccclub – See which of your friends is burning the most on Claude Code

Pulls data straight from ~/.claude/projects and only uploads aggregated metrics (tokens, cost, calls) via a 6-letter invite code flow — nice and surgical. The one-command npx init + join UX and a show-data privacy audit button make adoption trivial, but it’s strictly useful only to groups already using Claude Code and requires trust that aggregated uploads are enough for your threat model.

Niche GemSlick
mazzystar
204mo ago
Developer Tools●●Solid

Ledger – Claude Code Token Spend Analyzer

Local SQLite ledger captures runaway Claude Code sessions before the bill shocks you.

Solve My ProblemCozy
tsv650
301mo ago