Skip to main content

Lightweight status bar monitor for Claude AI token usage

Project description

Claude Status Bar

Lightweight Claude Code status bar monitor — see your rate limits, context window, and promo status at a glance.

Claude Code Status Bar

What it shows

[███████░░░] 5h 68% | [█░░░░░░░░░] 7d 5% | ⏰0h21m | max5 🔥x2[03:00~21:00] | Opus 4.6(13.4k/1.0M)
Segment Meaning
5h 68% 5-hour rate limit usage (official Anthropic data)
7d 5% 7-day rate limit usage (official Anthropic data)
⏰0h21m Time until 5h window resets
max5 Your plan tier
🔥x2[03:00~21:00] 2x promo active, showing local time window
Opus 4.6(13.4k/1.0M) Model + context window usage (used/total)

Colors: green (<30%) | yellow (30-70%) | red (>70%)

Install

One-line install (recommended)

curl -fsSL "https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/web-install.sh?v=$(date +%s)" | bash

This installs the package, configures Claude Code statusLine, and sets up aliases. Restart Claude Code to see it.

Package managers

pip install claude-statusbar     # pip
uv tool install claude-statusbar # uv
pipx install claude-statusbar    # pipx

Then add to ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "cs"
  }
}

Usage

cs                  # show status bar (shortest alias)
cs --json-output    # machine-readable JSON
cs --plan max5      # set your plan (pro / max5 / max20)
cs --no-color       # disable ANSI colors
cs --hide-pet       # hide the ASCII pet
cs --warning-threshold 40 --critical-threshold 85
cs --no-auto-update # disable auto-update checks

--plan is kept for legacy compatibility and now shows a deprecation notice; plan tier is auto-detected from current Claude usage headers.

Plan tiers

Set once, saved automatically:

cs --plan pro     # Pro $20/mo
cs --plan max5    # Max $100/mo
cs --plan max20   # Max $200/mo

Environment variables

Variable Effect
CLAUDE_STATUSBAR_NO_UPDATE=1 Disable automatic update checks
CLAUDE_STATUSBAR_HIDE_PET=1 Hide the status bar pet
CLAUDE_STATUSBAR_WARNING_THRESHOLD=40 Switch from green to yellow at 40%
CLAUDE_STATUSBAR_CRITICAL_THRESHOLD=85 Switch from yellow to red at 85%
CLAUDE_PLAN=max5 Set plan tier
NO_COLOR=1 Disable ANSI colors

2x Promo Time Window

During Anthropic's 2x usage promotion, the status bar shows the bonus window in your local timezone:

Time Status
Weekday off-peak 🔥x2[03:00~21:00] (example in JST)
Weekday peak 1x[21:00~03:00]
Weekend 🔥x2[all day]
Promo expired (hidden)

Peak hours: 8AM-2PM ET (weekdays only). Weekends are always 2x.

Data source

All rate limit data comes directly from Anthropic's official API headers via Claude Code's statusLine stdin injection (requires Claude Code >= v2.1.80). No estimation or guessing.

Upgrading

Auto-updates once per day. To upgrade manually:

pip install --upgrade claude-statusbar

To disable auto-updates: export CLAUDE_STATUSBAR_NO_UPDATE=1

License

MIT

Star History

Star History Chart

Project details


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-2.5.2.tar.gz (23.7 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-2.5.2-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for claude_statusbar-2.5.2.tar.gz
Algorithm Hash digest
SHA256 c10073ffd90f60ee74dec0f08cf5a50cbbf8b0160b53c11979032b1d8ef5bf1c
MD5 5b6f5a007cc98d57e5b423b0d0f2d6e0
BLAKE2b-256 f8bf9be981b0930ce3cb250b110dd119385dc032e8c5a970c797918b49ef55b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_statusbar-2.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f51781afc73aa332f55383059d1a3c69917d3d9502fb67295903490042f38c0
MD5 bc3272e54dc6bd528afebb39f436e656
BLAKE2b-256 4c982c0b19bb3bbe648171239d0947ef53a8be623d59d54b74270ca41b5abc40

See more details on using hashes here.

Supported by

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