A two-line status line for Claude Code. Shows what matters, skips what doesn't.
| Dark | Light |
|---|---|
![]() |
![]() |
English | 繁體中文
curl -fsSL https://raw.githubusercontent.com/tzengyuxio/claude-statusline/main/install.sh | bashThen restart Claude Code. Requires bash 4.0+, jq, git, and a Nerd Font.
Manual installation
1. Download the script:
curl -o ~/.claude/statusline-command.sh \
https://raw.githubusercontent.com/tzengyuxio/claude-statusline/main/statusline-command.sh
chmod +x ~/.claude/statusline-command.sh2. Add to ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline-command.sh",
"padding": 1
}
}3. Restart Claude Code.
Model │ Context Bar 28% │ $0.42 │ 5h 45% ↺ 4h27m │ 7d 12% ↺ 5d2h
Model name, context progress bar (16 segments), session cost, 5h/7d API quota with reset countdown. A red alert badge appears at 90%+ context usage.
my-project │ main +2 ~1 ?3 │ .venv (3.12) │ NORMAL
Directory, git branch + file counts, Python venv (when detected), vim mode (when enabled).
All percentages use traffic-light coloring: green (0–49%), yellow (50–79%), red (80%+).
- Useful first, pretty second — if it doesn't affect your next action, it's not on the status line
- Quiet by default — optional segments (venv, vim mode) only show up when relevant
- Glanceable — two lines, color-coded, no reading required
- Fast — ~30ms render via single
jqpass, singlegit status, and background-cached API calls
Edit statusline-command.sh:
BAR_SEGMENTS— progress bar segments (default: 16)CACHE_TTL— API quota refresh interval in seconds (default: 60)pct_color()— color thresholdsICON_*— swap with your preferred Nerd Font glyphs
The status line auto-detects your terminal background:
- macOS system appearance — reads
AppleInterfaceStyle COLORFGBG— set by some terminals (iTerm2, rxvt, etc.)- Fallback — defaults to dark
To override, set STATUSLINE_THEME before launching Claude Code:
export STATUSLINE_THEME=light # or: dark, auto (default)Inspired by claude-powerline, steipete, keremkesgin, coffeewhistle, and Freek Van der Herten.
MIT

