Skip to main content

Lightweight status bar monitor for Claude AI token usage

Project description

Claude Status Bar

🔋 Lightweight status bar for Claude AI token usage in your terminal.

Claude Code Status Bar

✨ One-Line Install

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

💡 The ?v=$(date +%s) parameter ensures you get the latest version without CDN caching issues.

If you still see old version, try with additional cache-busting:

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

This automatically:

  • ✅ Installs the package
  • ✅ Configures Claude Code status bar
  • ✅ Sets up shell aliases
  • ✅ Just restart Claude Code and you're done!

💡 After installation: Restart Claude Code and say something to see your usage!

📦 Alternative Install Methods

# PyPI
pip install claude-statusbar

# uv (fast)
uv tool install claude-statusbar

# pipx (isolated)
pipx install claude-statusbar

🚀 Usage

claude-statusbar  # or cs for short

Output: 🔋 T:48.0k/133.3k | $:59.28/90.26 | 🤖opusplan | ⏱️31m | Usage:16.5%

  • T: Token usage (current/limit)
  • $: Cost in USD (dynamic P90 limits)
  • 🤖: Current Claude model
  • ⏱️: Time until reset
  • Usage %: Cost-based percentage, color-coded (🟢 <30% | 🟡 30-70% | 🔴 >70%)

🔧 Integrations

tmux status bar:

set -g status-right '#(claude-statusbar)'

zsh prompt:

RPROMPT='$(claude-statusbar)'

🔄 Upgrading

Automatic Updates (Recommended)

The tool automatically checks for updates once per day and upgrades itself. No action needed! 🎉

When an update is available, you'll see: 🔄 Upgraded from v1.0.0 to v1.1.0

Manual Upgrade

If automatic upgrade fails, you can manually update:

# Re-run the installer (recommended - always gets latest)
curl -fsSL "https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/web-install.sh?v=$(date +%s)" | bash

# Or upgrade via package manager:
# If installed with pip
pip install --upgrade claude-statusbar

# If installed with pipx  
pipx upgrade claude-statusbar

# If installed with uv
uv tool upgrade claude-statusbar

Note: After upgrading, restart Claude Code to use the new version.

💖 Support

If you find this tool helpful, consider:

  • ⭐ Star this repo
  • 💖 Sponsor via GitHub
  • 🐛 Report issues

📄 License

MIT

⭐ Star History

Star History Chart


Built on Claude Monitor by @Maciek-roboblog

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-1.3.1.tar.gz (14.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-1.3.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for claude_statusbar-1.3.1.tar.gz
Algorithm Hash digest
SHA256 7aaa8369c34c8c517d3fd1c1abe37266913b128c6430a79b71f2614f3d914e05
MD5 3baeba4057ab9d00d9b1c37bea4f2728
BLAKE2b-256 e456cb58b99201d642d0f225bb2c2fc75c4765d9f0b000f3d909a40ecccf5fd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_statusbar-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0030089a2959b738e15b3f454d2058daf7811ee8d27b0963e8044e377c52c894
MD5 80091e29044419bd166c6680c5f096d1
BLAKE2b-256 f37c4e2e43d0b8e6ae05a4ac5666e1c3c05022a45871ca86591934cabeb21a4f

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