Claude Code status line
claude-statusline
A two-line status line with a context bar, usage tracking, git status and Nerd Font icons.
Install
git clone https://github.com/tzengyuxio/claude-statusline.gitFrom the README
Claude Code Status Line A two-line status line for Claude Code. Shows what matters, skips what doesn't. English | 繁體中文 Installation Then restart Claude Code. Requires bash 4.0+, jq, git, and a Nerd Font. Manual installation 1. Download the script: 2. Add to ~/.claude/settings.json: 3. Restart Claude Code. What You See Line 1 — AI Status & Usage 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. Line 2 — Workspace 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%+). Design Philosophy - 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 jq pass, single git status, and background-cached API calls Customization Edit statusline-command.sh: - BAR_SEGMENTS — progress bar segments (default: 16) - CACHE_TTL — API quota refresh interval in seconds (default: 60) - pct_color() — color thresholds - ICON_* — swap with your preferred Nerd Font glyphs Dark / Light Mode The status line auto-detects your terminal background: 1. macOS system appearance — reads AppleInterfaceStyle 2. COLORFGBG — set by some terminals (iTerm2, rxvt, etc.) 3. Fallback — defaults to dark To override, set STATUSLINE_THEME before launching Claude Code: Credits Inspired by claude-powerline, steipete, keremkesgin, coffeewhistle, and Freek Van der Herten. License MIT
How status lines work
- A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
- Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
- Or run /statusline inside Claude Code and describe what you want.
Details
- Repository
- tzengyuxio/claude-statusline
- Type
- Status lines
- Language
- Shell
- License
- MIT
- Last updated
- 24 March 2026
FAQ
What is claude-statusline?
A two-line status line with a context bar, usage tracking, git status and Nerd Font icons. It is a status line for Claude Code, from tzengyuxio/claude-statusline on GitHub.
How do I install claude-statusline?
Clone tzengyuxio/claude-statusline from GitHub and follow the setup steps in its README.
Is claude-statusline popular?
tzengyuxio/claude-statusline has 31 GitHub stars and 3 forks. It was last updated on 24 March 2026.
More status lines
Claude Code Statusline
56loadbalance-sudachi-kun/claude-code-statusline
Claude Code statusline with rate limit display
CC Aicodemirror Statusline Plus
44Bozhu12/cc-aicodemirror-statusline-plus
Claude Code 状态栏增强插件 - 显示 aicodemirror.com 积分余额
claude-statusline-powerline
35spences10/claude-statusline-powerline
A powerline-style status line with git integration, session tracking and cost monitoring.
claude-limitline
25tylergraydev/claude-limitline
A status line focused on real-time usage limits and weekly tracking.
claude-code-status-bar
22briansmith80/claude-code-status-bar
A pure Bash status bar with usage-limit pacing markers, context, git state, live activity, cost and eight colour themes.
claude-code-mascot-statusline
31TeXmeijin/claude-code-mascot-statusline
A tiny pixel pet in the status line that reacts to thinking, low context and successful tool calls.
Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.