Custom statusline configuration for Claude Code CLI.
π§ O4.5 π ββββββββ42k β‘οΈ ββββββββ2h30m ββββββββ4d5h π° $1.23
π ~/cs/my-project πΏ mainβ2 βοΈ +15/-3
- Model indicator abbreviated (e.g., Opus 4.5 ->
O4.5, Sonnet 4.1 ->S4.1, etc.) - Context window usage bar with token count
- Rate limit bars for 5-hour and 7-day windows with pace-based coloring:
- π’ Green: sustainable pace
- π‘ Yellow: on pace to hit limit
- π΄ Red: at or over limit
- Session cost tracking
- Git branch with ahead/behind indicators
- Uncommitted changes (+added/-removed lines)
curl -fsSL https://raw.githubusercontent.com/chardigio/claude-code-statusline/main/install.sh | bashThis downloads the script to ~/.claude/statusline.sh and configures Claude Code to use it.
-
Download the script:
curl -o ~/.claude/statusline.sh https://raw.githubusercontent.com/chardigio/claude-code-statusline/main/statusline.sh chmod +x ~/.claude/statusline.sh
-
Configure Claude Code by adding to
~/.claude/settings.json:{ "statusLine": { "type": "command", "command": "~/.claude/statusline.sh", "padding": 0 } }
jqfor JSON parsinggitfor repository status- macOS
securitycommand for OAuth token access (for rate limit display)
MIT