https://github.com/leeguooooo/claude-code-usage-bar
Realβtime statusline for Claude Code: token usage, remaining budget, burn rate, and depletion time
https://github.com/leeguooooo/claude-code-usage-bar
ai-tools claude-ai cli-tool developer-tools monitoring productivity python status-bar terminal-ui tmux token-monitoring usage-tracking
Last synced: 8 days ago
JSON representation
Realβtime statusline for Claude Code: token usage, remaining budget, burn rate, and depletion time
- Host: GitHub
- URL: https://github.com/leeguooooo/claude-code-usage-bar
- Owner: leeguooooo
- License: mit
- Created: 2025-08-20T01:43:23.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-11-28T07:09:47.000Z (about 2 months ago)
- Last Synced: 2026-01-05T10:32:21.698Z (17 days ago)
- Topics: ai-tools, claude-ai, cli-tool, developer-tools, monitoring, productivity, python, status-bar, terminal-ui, tmux, token-monitoring, usage-tracking
- Language: Python
- Size: 358 KB
- Stars: 132
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome-claude-code - **claude-code-usage-bar**
README
# Claude Status Bar
π Lightweight status bar for Claude AI token usage in your terminal.

## β¨ One-Line Install
```bash
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:**
```bash
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
```bash
# PyPI
pip install claude-statusbar
# uv (fast)
uv tool install claude-statusbar
# pipx (isolated)
pipx install claude-statusbar
```
## π Usage
```bash
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:**
```bash
set -g status-right '#(claude-statusbar)'
```
**zsh prompt:**
```bash
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:
```bash
# 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
[](https://star-history.com/#leeguooooo/claude-code-usage-bar&Date)
---
*Built on [Claude Monitor](https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor) by [@Maciek-roboblog](https://github.com/Maciek-roboblog)*