leeguooooo/claude-code-usage-bar
Local Claude Code statusLine for live quota, reset times, and cache freshness
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Claude Status Bar is a local Claude Code extension, not a model backend or MCP server. The cs CLI wires the statusLine hook and installs a skill through cs --setup. The checkout contains .claude-plugin/, commands/, and skills/ alongside src/ and tests/. The claude-statusbar package targets Python 3.9+ and uses setuptools>=61.0 and wheel for builds, not as evidence of runtime dependencies.
The renderer combines Claude Code session data with shared quota snapshots. A session can borrow an account snapshot for display when its payload omits rate_limits, but that fallback is not a new measurement. Fast mode adds a native cache reader and background daemon to the refresh path. The last_stdin.json cache also serves as a local integration point: ccx reads its rate_limits while the data is fresh.
Key Capabilities & Differentiators
The usage line displays Claude Code's enforced 5-hour and 7-day rate limits, reset countdowns, and end-of-window projections marked →NN%. The current rate-limit values come from Claude Code; the projections are estimates. The line also shows the active model, context window and prompt-cache countdown, with optional session cost or relay balance. Relay, Bedrock and Vertex have a no-quota layout rather than assuming the standard limits are available.
A separate project line shows the Git worktree marker, project and branch, session line additions and deletions, elapsed time and version. Three styles and nine themes cover block-bar Aurora, thin-line Aurora and Classic. cs theme previews themes interactively, cs preview shows the styles with live values, and cs config set narrow_layout stack stacks quota bars in narrow panes.
Trade-offs & Limitations
Choose cs for immediate quota decisions inside Claude Code, not historical spend analysis. ccusage and Claude Code Usage Monitor are better fits for charts and weekly cost breakdowns and can coexist in a side pane. Local rendering keeps the interface close to the active session; the trade-off is dependence on rate_limits being available and fresh. When those fields are absent, a shared snapshot can keep the bar useful, but it cannot substitute for a current reading.
The daemon adds a background process and shared state in exchange for a faster refresh path. CPU use is reported at well under 1% at one refresh per second, not as a sizing guarantee for every host. For a managed rollout, review the installer, local cache and automatic update behavior. MIT permits commercial deployment and redistribution subject to retaining the copyright and permission notices.
Hardware & Deployment Guide
Deployment is local to the Claude Code workstation. Prebuilt binaries cover macOS on Apple Silicon and Linux x86_64 without a Python prerequisite. Other platforms can use the Python package: install claude-statusbar via pip, uv or pipx, run cs --setup, and restart Claude Code. Windows also has a no-admin PowerShell installer. cs self-upgrades on a six-hour cadence; cs upgrade triggers a manual update. This installs a local display, not an offline Claude inference stack.
v3.53.1 disabled the exit-IP probe, removing its lookups to ipify and ipapi.is; cs doctor reports it disabled. v3.53.2 stopped sessions from writing borrowed quota snapshots back as fresh readings. In v3.53.3, if a newly seen session's transcript was last written more than ten minutes ago, its quota reading is display-only. This prevents long-idle sessions from raising shared usage after their records expire or the daemon restarts.
cs --setup wires the Claude Code statusLine hook and installs the skill; it does not require an MCP service.→NN%.cs theme picker, and narrow_layout stack for narrow panes.rate_limits from ~/.cache/claude-statusbar/last_stdin.json.Claude Code users who want quota, reset and prompt-cache signals in the active terminal, especially when switching between sessions or working in narrow panes.
You primarily need historical cost reporting, organization-wide telemetry, or quota observability independent of Claude Code session data.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/install.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-code-usage-bar ★ | 396 | +2 | Python | MIT | Local Claude Code statusLine for live quota, reset times, and cache freshness |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| rtk | 88.7k | +684 | Rust | Apache-2.0 | A local Rust CLI wrapper that trims command output before coding agents read it. |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/leeguooooo/claude-code-usage-bar.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-code-usage-bar
How does `cs` integrate with Claude Code, and does it need an MCP server?
cs --setup after installing the package to wire Claude Code's statusLine hook and install the skill, then restart Claude Code. The integration consumes session data such as rate_limits; the daemon is a local fast path for refreshes, not an MCP server or a model endpoint.What hardware does it need, and what should I expect from fast mode?
Can a company deploy and redistribute it internally?
When should I choose `cs` over `ccusage` or Claude Code Usage Monitor?
cs for current quota utilization and reset times inside Claude Code. Use ccusage or Claude Code Usage Monitor when charts and weekly cost breakdowns matter more. They can run in a side pane alongside cs, so live quota awareness and historical reporting need not come from the same tool.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy