An open API service indexing awesome lists of open source software.

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

Last synced: about 1 month ago
JSON representation

Real‑time statusline for Claude Code: token usage, remaining budget, burn rate, and depletion time

Awesome Lists containing this project

README

          

# Claude Status Bar

πŸ”‹ Lightweight status bar for Claude AI token usage in your terminal.

![Claude Code Status Bar](https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/img.png)

## ✨ One-Line Install

```bash
curl -fsSL https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/web-install.sh | 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/119 | ⏱️31m | Usage:50%`

- **T**: Token usage (current/limit)
- **$**: Cost in USD
- **⏱️**: Time until reset
- **Usage %**: Color-coded (🟒 <30% | 🟑 30-70% | πŸ”΄ >70%)

## πŸ”§ Integrations

**tmux status bar:**
```bash
set -g status-right '#(claude-statusbar)'
```

**zsh prompt:**
```bash
RPROMPT='$(claude-statusbar)'
```

## πŸ’– Support

If you find this tool helpful, consider:
- ⭐ Star this repo
- πŸ’– Sponsor via GitHub
- πŸ› Report issues

## πŸ“„ License

MIT

## ⭐ Star History

[![Star History Chart](https://api.star-history.com/svg?repos=leeguooooo/claude-code-usage-bar&type=Date)](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)*