# Repository Briefing: leeguooooo/claude-code-usage-bar
> Source: https://repoforai.com/repo/leeguooooo/claude-code-usage-bar (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/leeguooooo/claude-code-usage-bar
- **Official Docs / Website**: https://pypi.org/project/claude-statusbar/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (87/100 · Maintenance 35/35 · Adoption 12/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v3.54.0 (2026-12-02) — https://github.com/leeguooooo/claude-code-usage-bar/releases
- **Review Snapshot**: 2026-12-01 (Note: v3.54.0 on 2026-12-02 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: CLI, Self-Hosted
- **Momentum**: 396 ★ total (+1 24h / +2 7d) · 29 forks
- **Topics**: `ai-tools`, `claude-ai`, `developer-tools`, `monitoring`, `productivity`, `python`, `status-bar`, `token-monitoring`, `cli-tool`, `usage-tracking`, `anthropic`, `claude`
- **When to Use**: Best for: 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. Skip if: You primarily need historical cost reporting, organization-wide telemetry, or quota observability independent of Claude Code session data.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Integration: `cs --setup` wires the Claude Code `statusLine` hook and installs the skill; it does not require an MCP service.
- Quota telemetry: 5h and 7d enforcement windows, reset countdowns, and end-of-window projections shown as `→NN%`.
- Cache freshness: A prompt-cache countdown alongside model and context, with a native cache reader and daemon for the fast refresh path.
- Multi-session consistency: v3.53.2 prevents borrowed snapshots from being written back; v3.53.3 also guards first sightings using transcript age.
- Terminal layout: Three styles and nine themes, a live `cs theme` picker, and `narrow_layout stack` for narrow panes.
- Local interoperability: ccx can read fresh `rate_limits` from `~/.cache/claude-statusbar/last_stdin.json`.
```

## Quick Start / Clone
```bash
curl -fsSL https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/install.sh | bash
```
