Skip to main content

Claude Status Bar

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.

PyPI Downloads Python CI License: MIT GitHub stars

English · 简体中文 · Install · Documentation

claude-statusbar live demo

[!IMPORTANT] macOS standalone users should upgrade to v3.32.5 now. Older onefile releases could leave a new ~11 MB PyInstaller _MEI* runtime directory on every one-second refresh that was killed during startup. Re-running the installer switches to an onedir bundle and safely removes inactive leftovers: curl -fsSL https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/install.sh | bash

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?"

Features

  • Official 5h / 7d usage — the same rate-limit numbers Claude Code enforces, with reset countdowns and end-of-window projections (→NN%), not a local guess.
  • Model & context window — current model and how full the context is (Opus 4.8 · 350k/1M).
  • Prompt-cache countdown — see how long your cache stays warm (cache 4m23s) so you know when the next turn pays full price.
  • Cost & balance — optional per-session cost, or live relay/API balance in no-quota setups.
  • Two surfaces — inline statusLine in the terminal, or an always-on-top floating HUD for the Claude desktop app (macOS).
  • 3 styles × 9 themes — switch the whole look with one command: battery-bar, capsule, or hairline.
  • Fast by design — an optional daemon renders in well under 1% CPU even at a 1-second refresh.
  • More when you want it — git branch & diff stats, session activity, AgentParty/Codex presence, IELTS writing-coach progress — each opt-in.
  • Zero-dependency install — a single prebuilt binary (no Python needed) or a pip package. Auto-updates.

Install

Claude Code (terminal)

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.

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

Claude desktop app (macOS) — cs hud

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 HUD pill expanded HUD panel

Collapsed pill → click to expand → drag anywhere; it hides when the desktop app isn't open. Full details in the Desktop HUD guide.

What it shows

The default bar — classic style, graphite theme:

default status bar

At a full refresh it can render up to three lines, each segment optional:

Line Segments
Usage 5h / 7d rate-limit bars, reset countdowns, end-of-window projections (→NN%), model & context window, prompt-cache countdown, optional session cost or relay balance
Project git worktree marker (⑂ name (3) / ⑂ trunk (3) with the repo's worktree total, its own hue, leads the line), project name, git branch, session +/− lines, duration, version
Mode session effort / thinking / fast / style

Every icon, color threshold, and toggle is documented in the segment reference. Nine themes and three styles are in styles & themes.

Documentation

Guide What's inside
Install Binary, PyPI, one-shot installer, skill-only, plugin, Codex bridge
What it shows Full per-segment reference table
Styles & themes 3 styles × 9 themes, previews, slash commands
Configuration Config file, all show_* keys, env vars, JSON output, CLI cheatsheet
Desktop HUD (cs hud) macOS floating panel for the Claude desktop app
Fast mode (daemon) Sub-1% CPU daemon, launchd / systemd auto-start
No-quota mode Relay / Bedrock / Vertex layout, context battery, balance
AgentParty / Codex bridge Local workspace-presence line
Cache countdown Data source + how cache 4m23s is computed
Troubleshooting cs doctor, common problems, upgrading

Comparison

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.

Tool Lives in Optimized for
claude-statusbar (cs) Claude Code's statusLine (one line at the bottom) Glanceable while you work; zero context-switching
ccusage Standalone TUI in a separate terminal window Long-form usage analytics, cost breakdowns over weeks
Claude Code Usage Monitor Standalone TUI with predictive burn-rate Real-time burn-rate forecast for paid plans

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.

Integrations

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.

Contributing

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.

Acknowledgments

  • @marcwimmer — original show_cache_age widget (#9)
  • claude-monitor — token-usage analysis library used as the optional fast-path data source
Contributors

Star history

Star history

Static snapshot taken at v3.3.x; click for the live chart.


MIT © leeguooooo · Built for people who live in Claude Code.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_statusbar-3.40.1.tar.gz (306.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_statusbar-3.40.1-py3-none-any.whl (192.1 kB view details)

Uploaded Python 3

File details

Details for the file claude_statusbar-3.40.1.tar.gz.

File metadata

  • Download URL: claude_statusbar-3.40.1.tar.gz
  • Upload date:
  • Size: 306.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for claude_statusbar-3.40.1.tar.gz
Algorithm Hash digest
SHA256 c58d4dd2f03fbeb0341566f12ce7093b3157ce6b616df5ae51154896b07f0300
MD5 3c35b7c55292bf0c349bbe0045a09aae
BLAKE2b-256 eca3b56675dd176913812eb752437cf0322c97e30b042e089b48d69a5817ae48

See more details on using hashes here.

File details

Details for the file claude_statusbar-3.40.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_statusbar-3.40.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab3cc922e98ea42793f1fddbcdb6ba8924bb5cf2f71d72bcc1aab4be496494c2
MD5 7cfe5d12c1f3b4f0292664cba3f6acf2
BLAKE2b-256 06fda787b64ca6f75f87d71c82e8e37064406f892c6ee192f815e3c07a891c45

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.40.1 This release

2 files

3.40.0

2 files

3.39.0

2 files

3.38.0

2 files

3.37.1

2 files

3.37.0

2 files

3.36.0

2 files

3.35.4

2 files

3.35.3

2 files

3.35.2

2 files

3.35.1

2 files

3.35.0

2 files

3.34.0

2 files

3.33.1

2 files

3.33.0

2 files

3.32.5

2 files

3.32.4

2 files

3.32.3

2 files

3.32.2

2 files

3.32.1

2 files

3.32.0

2 files

3.31.0

2 files

3.30.0

2 files

3.29.12

2 files

3.29.11

2 files

3.29.10

2 files

3.29.9

2 files

3.29.8

2 files

3.29.7

2 files

3.29.6

2 files

3.29.5

2 files

3.29.3

2 files

3.29.2

2 files

3.29.1

2 files

3.29.0

2 files

3.28.2

2 files

3.28.1

2 files

3.28.0

2 files

3.27.0

2 files

3.26.0

2 files

3.25.2

2 files

3.25.1

2 files

3.25.0

2 files

3.24.0

2 files

3.23.0

2 files

3.22.2

2 files

3.22.1

2 files

3.22.0

2 files

3.21.1

2 files

3.21.0

2 files

3.20.1

2 files

3.20.0

2 files

3.19.1

2 files

3.19.0

2 files

3.18.0

2 files

3.17.0

2 files

3.16.0

2 files

3.15.1

2 files

3.15.0

2 files

3.14.1

2 files

3.14.0

2 files

3.13.7

2 files

3.13.6

2 files

3.13.5

2 files

3.13.4

2 files

3.13.3

2 files

3.13.2

2 files

3.13.1

2 files

3.13.0

2 files

3.12.1

2 files

3.12.0

2 files

3.11.2

2 files

3.11.1

2 files

3.11.0

2 files

3.10.0

2 files

3.9.1

2 files

3.9.0

2 files

3.8.1

2 files

3.8.0

2 files

3.7.0

2 files

3.6.0

2 files

3.5.1

2 files

3.5.0

2 files

3.4.1

2 files

3.4.0

2 files

3.3.4

2 files

3.3.3

2 files

3.3.2

2 files

3.3.1

2 files

3.3.0

2 files

3.2.3

2 files

3.2.2

2 files

3.2.1

2 files

3.1.4

2 files

3.1.3

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.9.9

2 files

2.9.8

2 files

2.9.7

2 files

2.9.6

2 files

2.9.5

2 files

2.9.4

2 files

2.9.3

2 files

2.9.2

2 files

2.9.1

2 files

2.9.0

2 files

2.8.14

2 files

2.8.13

2 files

2.8.12

2 files

2.8.11

2 files

2.8.10

2 files

2.8.9

2 files

2.8.8

2 files

2.8.7

2 files

2.8.6

2 files

2.8.5

2 files

2.8.4

2 files

2.8.3

2 files

2.8.2

2 files

2.8.1

2 files

2.8.0

2 files

2.5.3

2 files

2.5.2

2 files

2.5.1

2 files

2.5.0

2 files

2.4.4

2 files

2.4.3

2 files

2.4.2

2 files

2.4.1

2 files

2.4.0

2 files

2.3.1

2 files

2.3.0

2 files

2.2.4

2 files

2.2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page