Live rate-limit visibility in your Claude Code status bar.
Fork of the original work by @kanoliban (original gist)
Full detail β model, plan tier, folder, branch, context, session, weekly, and cost.
[Opus 4.6 Β· Max] π my-project β main β Ctx: π’ 12% β Session: 66% β Weekly: 68% β $4.82
~50% shorter β icon-based labels, no cost, no plan tier. Ideal if you use Companions/Buddies or have a narrow terminal.
Opus β π my-project β main β π’ 12% β β³ 66% β π
68%
Normal usage:
[Opus 4.6 Β· Max] π app β main β Ctx: π’ 8% β Session: 85% β Weekly: 72% β $3.21
Context warning (>60%):
[Opus 4.6 Β· Max] π app β feat/auth β Ctx: π‘ 65% β Session: 45% (8:00PM) β Weekly: 68% β $12.34
Context critical (>80%), session and weekly running low:
[Opus 4.6 Β· Max] π app β main β Ctx: π΄ 87% β Session: 30% (7:45PM) β Weekly: 25% (Mon 2pm) β $18.99
Normal usage:
Opus β π app β main β π’ 8% β β³ 85% β π
72%
Context warning (>60%):
Opus β π app β feat/auth β π‘ 65% β β³ 45% (8:00PM) β π
68%
Context critical (>80%), everything hot:
Opus β π app β main β π΄ 87% β β³ 30% (7:45PM) β π
25% (Mon 2pm)
| Icon | Meaning |
|---|---|
| π’ | Context 0β60% β plenty of room |
| π‘ | Context 61β80% β wrap up soon |
| π΄ | Context 81β100% β approaching limit |
| β³ | Session usage (resets every ~5 hours) |
| π | Weekly usage (resets every 7 days) |
| π | Current working directory |
β branch |
Git branch (pipe-separated) |
Reset times appear in parentheses when usage hits 50%+.
curl -fsSL https://raw.githubusercontent.com/amantidesigns/claude-code-statusline/main/install.sh | bashThe installer will:
- Check/install dependencies (
jq, optionallycodexbar) - Ask you to choose Standard or Minimal layout
- Download the script and configure Claude Code
- Verify everything works
- macOS (uses
stat -f %mfor cache timing) jqfor JSON parsingcodexbar(optional, for rate limit data)
brew install jq
brew install steipete/tap/codexbar # optional but recommendedStandard:
curl -fsSL https://raw.githubusercontent.com/amantidesigns/claude-code-statusline/main/statusline.sh -o ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.shMinimal:
curl -fsSL https://raw.githubusercontent.com/amantidesigns/claude-code-statusline/main/statusline-minimal.sh -o ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.shAdd to ~/.claude/settings.local.json:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0
}
}Exit and start a new session. The status bar appears at the bottom of your terminal.
| Segment | Example | Source |
|---|---|---|
| Model + Plan | [Opus 4.6 Β· Max] |
stdin + CodexBar |
| Folder | π my-project |
stdin |
| Git Branch | β main |
git |
| Context % | Ctx: π’ 12% |
stdin |
| Session % | Session: 66% |
CodexBar |
| Weekly % | Weekly: 68% |
CodexBar |
| Cost | $4.82 |
stdin |
| Segment | Example | Source |
|---|---|---|
| Model | Opus |
stdin |
| Folder | π my-project |
stdin |
| Git Branch | β main |
git |
| Context % | π’ 12% |
stdin |
| Session % | β³ 66% |
CodexBar |
| Weekly % | π
68% |
CodexBar |
| Signal | What it means | What to do |
|---|---|---|
| π‘ 60β80% context | Getting full | Finish current task |
| π΄ 80%+ context | Near limit | Wrap up, start a new session |
| β³ or Session < 50% | Session draining | Note reset time, pace usage |
| π or Weekly < 50% | Weekly draining | Prioritize critical tasks |
Already installed one and want to switch? Just re-download:
# Switch to minimal
curl -fsSL https://raw.githubusercontent.com/amantidesigns/claude-code-statusline/main/statusline-minimal.sh -o ~/.claude/statusline.sh
# Switch to standard
curl -fsSL https://raw.githubusercontent.com/amantidesigns/claude-code-statusline/main/statusline.sh -o ~/.claude/statusline.shNo settings changes needed β both scripts use the same path.
Status bar doesn't appear
- Verify script exists:
ls -la ~/.claude/statusline.sh - Verify settings JSON:
cat ~/.claude/settings.local.json | jq . - Restart Claude Code
No session/weekly data
- Install CodexBar:
brew install steipete/tap/codexbar - Run once to authenticate:
codexbar --provider claude
No git branch showing
- Make sure you're inside a git repository
echo '{"model":{"display_name":"Opus 4.6"},"cost":{"total_cost_usd":1.23},"context_window":{"context_window_size":200000,"current_usage":{"input_tokens":10000,"cache_creation_input_tokens":5000,"cache_read_input_tokens":5000}},"workspace":{"current_dir":"~/my-project"}}' | ~/.claude/statusline.sh- Original implementation: @kanoliban β original gist
- CodexBar: @steipete β CodexBar
- Enhanced docs, minimal layout, and installer: @amantidesigns
This project maintains the same license as the original work.