Skip to main content

Lightweight status bar monitor for Claude AI token usage

Project description

Claude Status Bar

Lightweight Claude Code status bar monitor for the built-in statusLine hook.

It shows your current Claude.ai rate-limit usage, reset timers, context window usage, and an optional ASCII pet in a compact single-line format.

What it shows

5h[███38%░░░░]⏰2h14m | 7d[███87%███░]⏰3d05h | Opus 4.6(90.0k/1.0M) | ᓚᘏᗢ Giga:working!
Segment Meaning
5h[███38%░░░░] 5-hour rate-limit usage
⏰2h14m Time until the 5-hour window resets
7d[███87%███░] 7-day rate-limit usage
⏰3d05h Time until the 7-day window resets
Opus 4.6(90.0k/1.0M) Model name plus current context usage
ᓚᘏᗢ Giga:working! Optional status-bar pet

Colors default to green / yellow / red at 30% and 70%, and can be customized.

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 --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 still exists for older scripts, but it is deprecated and no longer changes the status line output.

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%
NO_COLOR=1 Disable ANSI colors

CLAUDE_PLAN is still accepted for legacy compatibility, but it no longer changes the rendered status line.

JSON output

Use --json-output if you want a machine-readable payload instead of the formatted status line:

cs --json-output

Data source

Rate-limit data comes directly from Anthropic's official API headers exposed to Claude Code status-line commands through stdin.

Context-window usage comes from the same stdin payload that Claude Code sends to custom statusLine commands.

Requires Claude Code v2.1.80+.

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.3.tar.gz (24.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-2.5.3-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_statusbar-2.5.3.tar.gz
  • Upload date:
  • Size: 24.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-2.5.3.tar.gz
Algorithm Hash digest
SHA256 e9c40582ecbd57feed9890876cd580c6e8993642c293a8c2347dd45760e0533f
MD5 64b6dd6577940544c2c918fdb77880d6
BLAKE2b-256 cda257a0ec57997085e525788f9e38f5138729c40b84e68fa14dfc97c220ed69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_statusbar-2.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 358d05346269a5379c08fd18efc5cddac2458485b7206566eb2b9c9eebdd288a
MD5 0b656be1a6c087420d277e0ffc9d85f2
BLAKE2b-256 aa5147551bd21d1f331e695d7cfd6331c6e4347627ffb525d6880a595021cbfc

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