Real server-side rate_limits — the same numbers /usage shows — answers what you actually want: am I ok, and how hard can I push? Pure bash + jq. No node, no daemons, no estimates.
The pacing math counts awake hours, so the trend doesn't fall "behind" every night while you sleep. And the colors stay gray until something needs you: only a meter that has actually warmed up gets to pull your eye.
Needs jq and Claude Code v2.1+.
Easiest — you already have an AI open. Paste this into Claude Code:
Install the status line from github.com/Gui-Gou/claude-statusline-burnrate: download
https://raw.githubusercontent.com/Gui-Gou/claude-statusline-burnrate/main/statusline.sh
to ~/.claude/statusline.sh, chmod +x it, then set statusLine to
{"type":"command","command":"~/.claude/statusline.sh"} in ~/.claude/settings.json
without touching my other settings.
Using the Antigravity CLI too? Add "and the same statusLine in ~/.gemini/antigravity-cli/settings.json" to the prompt (see below).
By hand — two commands:
curl -fsSL https://raw.githubusercontent.com/Gui-Gou/claude-statusline-burnrate/main/statusline.sh -o ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.shThen add to ~/.claude/settings.json:
{
"statusLine": { "type": "command", "command": "~/.claude/statusline.sh" }
}Open a new session. That's it.
git clone https://github.com/Gui-Gou/claude-statusline-burnrate && cd claude-statusline-burnrate
./demo.sh # the four states below, fake data
./demo.sh --live # animated tour: meters sweep, models cycle
./demo.sh --classic # the one-line v1v1 is still here as statusline-classic.sh: same math, one row, emoji labels and an animated cat whose mood follows the worst meter.
curl -fsSL https://raw.githubusercontent.com/Gui-Gou/claude-statusline-burnrate/main/statusline-classic.sh -o ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.shUpgrading from v1: re-running the install gives you the card. The card is about 65 columns wide, so on a narrow terminal the classic line fits better.
Herdr already shows your plan usage, git branch and agent status. statusline-herdr.sh keeps only what Herdr can't show for each pane: the model and effort, this chat's context, the lines this session added and removed, and the folder Claude works in right now.
Herdr shows the folder a pane started in, but Claude moves with cd. So the folder is plain while Claude stays inside the launch folder, amber once it leaves it, and red when it is working in a different git repo, where edits may land in the wrong place.
curl -fsSL https://raw.githubusercontent.com/Gui-Gou/claude-statusline-burnrate/main/statusline-herdr.sh -o ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.shInside a Herdr terminal it also writes one small JSON per session to ~/.claude/.cache/herdr-usage/, so a Herdr panel can show the plan usage. Try it with ./demo.sh --herdr.
Both scripts also work as the status line of Google's Antigravity CLI. Needs jq, python3 and agy.
Already installed for Claude Code? Skip the download and just add the setting below. Otherwise:
mkdir -p ~/.claude
curl -fsSL https://raw.githubusercontent.com/Gui-Gou/claude-statusline-burnrate/main/statusline.sh -o ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.shThen add to ~/.gemini/antigravity-cli/settings.json:
{
"statusLine": { "type": "command", "command": "~/.claude/statusline.sh" }
}agy's payload carries no rate_limits, so the script falls back to agy -p "/usage": parsed with python3, refreshed in the background every 3 min, and cached in ~/.claude/.cache/agy-quota.cache. Gemini models use the Gemini quota, Claude/GPT models the other one. The effort comes from the model name (Gemini 3.8 Flash (High)), and Gemini Flash, Gemini Pro and GPT get their own colors (plus a mascot in the classic line: ⚡ ✨ 🪐).
In Claude Code, rate_limits are present, so the fallback never runs.
| Variable | Default | |
|---|---|---|
SL_DAY_START |
2 |
Hour your day flips (2 = 2am) |
SL_SLEEP_HOURS |
6 |
Hours after that spent asleep — zero-weight in the pacing math |
SL_STATUS |
1 |
0 stops the background check of status.claude.com (a 🔥 appears only during an incident) |
SL_TASKS |
0 |
1 counts open / in-progress / blocked items in project-management/TASKS.md in place of the cost |
SL_AGY_BIN |
agy on PATH, else ~/.local/bin/agy |
Path to the agy binary |
SL_HERDR_FEED |
auto |
Herdr edition only: auto writes the usage feed inside Herdr, 1 always, 0 never |
SL_HERDR_DIR |
1 |
Herdr edition only: 0 hides the current-folder segment |
SL_AGY_TTL |
180 |
Seconds between background agy /usage refreshes |
Colors, thresholds and layout are short, commented blocks of bash. Make it yours.
A ⭐ helps the next dev find it before a rate-limit panic.
MIT



