language-coach
An always-on language coach for AI editors — improve any target language while you work in Codex, Claude Code, or Cursor.
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.
> /plugin marketplace add leeguooooo/claude-code-usage-bar> /plugin install claude-statusbar@claude-statusbar
What's inside
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.
English · 简体中文 · Install · Documentation

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?"
→NN%), not a local guess.Opus 4.8 · 350k/1M).cache 4m23s) so you know when the next turn pays full price.statusLine in the terminal, or an always-on-top floating HUD for the Claude desktop app (macOS).pip package. Auto-updates.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 4m23sline actually accurate? — how the prompt-cache countdown is computed
cs hudThe 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:
| 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 | 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.
| 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 |
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.
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.
show_cache_age widget (#9)Static snapshot taken at v3.3.x; click for the live chart.
.claude-plugin/
marketplace.json
plugin.json
.github/
FUNDING.yml
ISSUE_TEMPLATE/
bug_report.md
config.yml
feature_request.md
PULL_REQUEST_TEMPLATE.md
workflows/
ci.yml
release-binaries.yml
.gitignore
AGENTS.md
CHANGELOG.md
CODE_OF_CONDUCT.md
commands/
statusbar-doctor.md
statusbar-preview.md
statusbar-reset.md
statusbar-style.md
statusbar-theme.md
statusbar.md
CONTRIBUTING.md
demo/
DEMO_WALKTHROUGH.md
record_demo.sh
docs/
agentparty.md
anthropic-marketplace-submission.md
cache-countdown.md
configuration.md
daemon.md
desktop-hud.md
hn-prepared-answers.md
images/
capsule-dracula.svg
capsule-graphite.svg
capsule-linen.svg
capsule-mono.svg
capsule-nord.svg
capsule-sakura.svg
capsule-twilight.svg
classic-dracula.svg
classic-graphite.svg
classic-linen.svg
classic-mono.svg
classic-nord.svg
classic-sakura.svg
classic-twilight.svg
hairline-dracula.svg
hairline-graphite.svg
hairline-linen.svg
hairline-mono.svg
hairline-nord.svg
hairline-sakura.svg
hairline-twilight.svg
hero.gif
hero.svg
star-history-dark.svg
star-history.svg
install.md
launch-kit.md
no-quota-mode.md
README.md
segments.md
styles-and-themes.md
superpowers/
plans/
2026-03-25-rate-limit-redesign.md
2026-05-07-per-segment-color-management.md
2026-05-21-project-branch-segment.md
2026-06-02-rate-limit-forecast.md
2026-06-02-rate-limit-projection-model.md
specs/
2026-03-25-rate-limit-focused-redesign.md
2026-05-07-per-segment-color-management-design.md
2026-05-21-project-branch-segment-design.md
2026-06-02-rate-limit-forecast-design.md
2026-06-02-rate-limit-projection-learning-design.md
2026-07-02-burn-regime-detection-design.html
troubleshooting.md
upstream-fr-statusline-focused-agent.md
img.png
install.sh
LICENSE
packaging/
cs.spec
pyi_entry.py
promotion/
PROMOTION_PLAN.md
awesome_lists.md
IMAGE_GUIDE.md
LAUNCH_CHECKLIST.md
product_hunt.md
reddit_post.md
reddit_safe_post.md
reddit_strategy_fix.md
twitter_thread.md
publish.sh
pyproject.toml
README.md
README.zh-CN.md
scripts/
build-hero-gif.sh
hero.tape
render_screenshots.py
sync_commands.py
SECURITY.md
skills/
claude-statusbar/
SKILL.md
src/
claude_statusbar/
__init__.py
_balance_refresh.py
_display.py
_git_refresh.py
_ip_risk_refresh.py
activity.py
balance_cache.py
cache.py
cli.py
commands/
statusbar-doctor.md
statusbar-preview.md
statusbar-reset.md
statusbar-style.md
statusbar-theme.md
statusbar.md
config.py
core.py
daemon.py
doctor.py
fp_risk.py
git_cache.py
hud_data.py
hud.py
identity.py
ip_risk.py
ip_score.py
party.py
predict.py
preview.py
progress.py
render_thin.py
service.py
setup.py
skills/
claude-statusbar/
SKILL.md
styles.py
themes.py
updater.py
tests/
__init__.py
conftest.py
test_account_switch.py
test_activity_colors.py
test_activity_helpers.py
test_activity_render.py
test_activity_scan.py
test_balance_cache.py
test_balance_refresh.py
test_balance_render.py
test_bar_shimmer.py
test_cache_age.py
test_cache_severity.py
test_cache_ttl_detect.py
test_cache.py
test_check_for_updates.py
test_cli.py
test_color_overrides.py
test_config_activity.py
test_config_forecast.py
test_config_project_branch.py
test_config_projection.py
test_config_show_keys.py
test_config.py
test_core_activity_guard.py
test_core_ctx_pct.py
test_core_forecast_guard.py
test_core_projection.py
test_core_width.py
test_ctx_env_override.py
test_daemon_freshness.py
test_daemon_git_refresh.py
test_daemon_leak_guard.py
test_daemon.py
test_display_width.py
test_doctor.py
test_forecast_render.py
test_fp_risk.py
test_git_ahead_behind.py
test_git_cache.py
test_git_refresh.py
test_identity.py
test_import_perf.py
test_ip_risk.py
test_ip_score.py
test_mode_line.py
test_no_quota_integration.py
test_no_quota_mode.py
test_no_quota_render.py
test_nocolor_and_ts_guards.py
test_parse_stdin_workspace.py
test_party.py
test_pct_clamp.py
test_per_segment_colors.py
test_predict.py
test_preview.py
test_progress.py
test_project_branch_render.py
test_projection_coloring.py
test_projection.py
test_quota_stale.py
test_rebaseline_idle_replay.py
test_regime_detection.py
test_render_thin_stdin.py
test_service.py
test_setup_shell_path.py
test_setup_windows_exe.py
test_setup.py
test_show_cwd.py
test_styles.py
test_threshold_resolution.py
test_updater.py
test_version_sync.py
tools/
backtest.py
uninstall.sh
web-install.shAn always-on language coach for AI editors — improve any target language while you work in Codex, Claude Code, or Cursor.
Generate images with your ChatGPT subscription — no OPENAI_API_KEY. A tiny zero-dependency Python CLI (and AI-agent skill): one file, stdlib only.
FAQ
claude-statusbar is a Claude Code plugin with 2 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes claude-statusbar, claude-statusbar. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.