Lightweight status bar monitor for Claude AI token usage
pip install claude-statusbar==3.43.9 Copy PIP instructions
Your Claude Code usage, at a glance. 5h / 7d rate-limit bars, reset countdowns, model, context window, and prompt-cache freshness — inline in Claude Code's status line, or a floating HUD on the desktop app.
Claude Code tells you almost nothing about where you stand against your rate limits. claude-statusbar puts the numbers that matter on one quiet line at the bottom of your terminal — so you never switch context to a separate window to answer "how much have I got left, and when does it reset?"
Display ticks stay at one second; data collection follows its own schedule:
The native reader is included in macOS arm64 and Linux x86_64 release archives. Pip/uv installations continue to use the Python client. Existing cs render commands keep working; binary upgrades take effect on the next invocation.
Optional model-specific weekly limits can be enabled with cs config set show_per_model true. This explicitly enables read-only OAuth credential access (~/.claude/.credentials.json, or the macOS login Keychain) and background requests to Anthropic's undocumented usage endpoint. No token is logged or stored in a cache. Requests are account-scoped, cached for five minutes, and disabled by default; unsupported responses hide the segment. Relay/no-quota sessions never request these limits. The segment appears on its own line below the main usage row, using the same battery and projection.
For source builds, wrap the PyInstaller bundle before packaging:
pyinstaller packaging/cs.spec --noconfirm mv dist/cs/cs dist/cs/cs-python go build -trimpath -ldflags='-s -w' -o dist/cs/cs packaging/native/main.go python scripts/benchmark_native.py dist/cs/cs python scripts/benchmark_daemon.py dist/cs/cs Both benchmarks use temporary fixtures, not live sessions or credentials. The first checks the cache-hit CPU budget; the second exercises 16 concurrent sessions, warm-cache routing, worker count, Git deduplication and freshness. The daemon also writes aggregate timing and worker counters to ~/.cache/claude-statusbar/scheduler.json (no payloads or tokens).
One line — no Python, no pip. Downloads a prebuilt standalone binary for your platform (macOS Apple Silicon, Linux x86_64) and wires up the status line:
curl -fsSL https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/install.sh | bash Security-conscious? Download and read it first — the header lists exactly what it touches. On platforms without a prebuilt binary it falls back to pip.
Windows (PowerShell — installs uv via winget if needed; no Python or admin required):
irm https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/install.ps1 | iex On macOS this one line does everything — it wires the terminal statusLine and, if the Claude desktop app is installed, registers the floating desktop HUD to auto-start on login. The macOS binary bundles the HUD, so there's no separate pip install '[hud]' and no extra config.
Prefer pip / uv, or want the desktop HUD extra? Install the Python package:
pip install claude-statusbar # or: uv tool install / pipx install cs --setup # wires the statusLine hook + installs the skill Restart Claude Code and the bar appears at the bottom. Other paths (skill-only, plugin marketplace, Codex/AgentParty bridge) are in the install guide.
Deep dive: Is that cache 4m23s line actually accurate? — how the prompt-cache countdown is computed
The desktop app has no status line, so cs hud adds an always-on-top floating panel with the same official 5h / 7d usage (sampled by the desktop app itself, not an estimate) and your active AgentParty channels.
If you used the curl … install.sh | bash one-liner above, the HUD is already installed — the macOS binary bundles it and the installer auto-registers it when the desktop app is present. The commands below are only for a manual/pip setup:
pip install 'claude-statusbar[hud]' # adds PyObjC (macOS GUI deps) cs hud install # launchd: auto-start on login + keep-alive Collapsed pill → click to expand → drag anywhere; it hides when the desktop app isn't open. Full details in the Desktop HUD guide.
The default bar — classic style, graphite theme:
At a full refresh it can render up to three lines, each segment optional:
Every icon, color threshold, and toggle is documented in the segment reference. Nine themes and three styles are in styles & themes.
There are a few good Claude Code usage monitors. They solve overlapping but distinct problems — pick the one that matches where you want the information.
cs is intentionally one line of color and one decision per second. If you want a dashboard with charts, daily/weekly aggregates, and burn-rate prediction, run a TUI in a side pane. The two coexist nicely.
prompt-language-coach — install the plugin to track IELTS band progress. The bar then shows your writing level and trend automatically (no config; appears when ~/.claude/language-progress.json exists):
... | Opus 4.8(350k/1M) | EN:6.0↑ JA:5.0→ ↑ improved · ↓ dropped · → no change since last session.
PRs welcome. The full contributor guide — local setup, test commands, architecture map, coding conventions, release flow — is in CONTRIBUTING.md. Security issues: SECURITY.md.
git clone https://github.com/leeguooooo/claude-code-usage-bar cd claude-code-usage-bar uv sync PYTHONPATH=src uv run pytest tests/ # 900+ tests, ~3s The render path is hot (up to 60×/min at refreshInterval: 1) — tests/test_import_perf.py pins which modules can't be imported on the fast path. Read CONTRIBUTING.md before adding dependencies.
Every version's changes: CHANGELOG.md · GitHub Releases.
Static snapshot taken at v3.3.x; click for the live chart.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.




