Claude Code status line

cc-costline

A status line that shows your 7-day and 30-day spend at a glance.

28 stars 2 forksStatus lines Source

Install

Install
npm i -g cc-costline && cc-costline install
From source
git clone https://github.com/Ventuss-OvO/cc-costline.git

From the README

中文 | 日本語 | Français | Español

cc-costline

Enhanced statusline for Claude Code — adds cost tracking, usage limits, and leaderboard rank to your terminal.

Install

Open a new Claude Code session and you'll see the enhanced statusline. Requires Node.js >= 22.

Updating

npm doesn't auto-update global packages. Run this whenever you want the latest version:

What you get

Colors

- Context & usage limits — green (
Pricing table

Prices per million tokens (USD):

Cache writes are billed by TTL: 5-minute at 1.25x input, 1-hour at 2x input. The
split comes from usage.cache_creation in the transcript; older transcripts
without that breakdown are billed entirely at the 5-minute rate.

Fast mode (usage.speed: "fast", Opus 5 / 4.8) is billed at 2x the standard rate.

Sonnet 5 is listed at its standard $3/$15; introductory pricing of $2/$10 runs
through 2026-08-31, so Sonnet 5 costs read slightly high until then.

Unknown models fall back by family name, defaulting to Sonnet pricing.

Development

Uninstall

Acknowledgments

- ccclub by 碎瓜 (@mazzzystar) — Claude Code leaderboard among friends

License

MIT
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
TypeScript
Last updated
24 July 2026
Topics
anthropicclaudeclaude-codeclicost-trackingstatusline

FAQ

What is cc-costline?

A status line that shows your 7-day and 30-day spend at a glance. It is a status line for Claude Code, from Ventuss-OvO/cc-costline on GitHub.

How do I install cc-costline?

Run npm i -g cc-costline && cc-costline install, then follow the setup in the README.

Is cc-costline popular?

Ventuss-OvO/cc-costline has 28 GitHub stars and 2 forks, and is included in 1 curated Claude Code list. It was last updated on 24 July 2026.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.