leeguooooo/claude-code-usage-bar

Lightweight Claude Code statusLine: 5h/7d rate-limit usage, reset countdowns, model + context window, prompt-cache age — one line, 3 styles × 9 themes, daemon fast-mode

What it solves

Claude Code gives you almost no visibility into your rate-limit usage. Without leaving the terminal, you'd have no idea how much of your 5-hour or 7-day quota you've used or when it resets. This status bar puts those numbers on a quiet line at the bottom of your terminal, alongside context-window and prompt-cache countdowns.

How it works

The tool is called cs (short for Claude Statusbar). It reads the official 5h/7d rate-limit data that Claude Code enforces—no local guesswork—and displays it in a configurable status line. A native cache reader plus a background daemon keep it fast (under 1% CPU at one refresh per second). The status line shows: usage bars with reset countdowns and end-of-window projections (→NN%), model and context-window info, and a prompt-cache countdown (e.g. ❄ 4m23s) that tells you when the next turn pays full price. Optionally, you can add session cost, relay balance, git ahead/behind, and other metrics. It also shows project-level info like git worktree marker, branch, and session duration.

Installation is a one-liner (curl or PowerShell), or via pip/uv. After install, run cs --setup to wire the statusLine hook, restart Claude Code, and the bar appears. You can switch between three looks (aurora with block bars, aurora thin line, classic) using cs theme with a live preview.

Who it’s for

This is for anyone who lives in Claude Code and wants to monitor their usage without ever leaving the terminal—developers, power users, or anyone concerned about hitting rate limits mid-workflow.

Highlights

  • Official numbers: uses the same 5h/7d rate-limit data Claude Code enforces, not a local estimate.
  • Prompt-cache countdown: shows exactly when the next turn will pay full price (❄ 4m23s).
  • Lightweight: native cache reader plus background daemon, under 1% CPU at 1 refresh/sec.
  • Customizable: three visual styles (aurora, thin, classic) with a live theme picker.
  • Opt-in extras: session cost, relay balance, git ahead/behind, and more.
  • Easy install: one-liner for macOS/Linux and Windows, or via pip/uv.

Related

  • Project
  • Dispatch
  • Project
  • Project
  • Project