claude-statusline-builder

A rich, configurable status line for Claude Code — model + context window (with burn rate) + rate limits + monthly and today/hourly Anthropic/OpenAI cost + git working-tree state + GitHub Actions CI status + weather + service health (Anthropic / GitHub / OpenAI / Cloudflare) + Anthropic news headlines, with a one-key minimal/detail toggle.
All external HTTP fetches are TTL-cached and run in the background, so the foreground render stays fast on every Claude turn.
jfk@laptop:claude-statusline-builder-plugin (main ●2 ↑1 🟢ci)
🟢gh 🟢cf 🟢oai 🟢Claude Opus 4.6 (1M context) ctx:234.0k/1.0M(23% +12.4k/turn)
💰 ant:$12.34/M oai:$3.21/M today:$1.45 $0.12/h 5h:41% → 14:00 PST 7d:17% → Fri 14:00 PST
🕐 2026-04-09 (Thu) 14:05 PST
☀️ +18°C (↓9/↑17°C) 💧19% 💨↑15km/h 💦0.0mm 🧭1017hPa 🌗 🌅05:18 🌇18:07
Tomorrow ⛅ 10/19°C ☔0% Day-after 🌧 14/20°C ☔100%
────────────────────────────────────────────────────────────
📰[1/5] Anthropic expands partnership with Google and Broadcom
🔗https://www.anthropic.com/news/google-broadcom-partnership-compute
Every field above collapses cleanly when its data isn't available — a clean repo hides the ●/±/↑/↓ segments, no CI config hides 🟢ci, no admin keys hide the whole 💰 prefix, etc. Nothing ever renders as a placeholder.
60-second quickstart
/plugin marketplace add JFK/claude-statusline-builder-plugin
/plugin install claude-statusline-builder
/claude-statusline-builder:install
/claude-statusline-builder:preview
That's it. The statusline will appear on the next Claude Code turn. To toggle between minimal and detail rendering at any time:
/claude-statusline-builder:toggle
For guided setup (timezone, weather, providers, cost tracking), spawn the builder agent — Claude Code will offer it automatically when its description matches, or you can ask: "use the statusline-builder agent to configure my statusline".
Commands
| Command | What it does |
|---|
/claude-statusline-builder:install | Copies the script to ~/.claude/statusline-command.sh, backs up any existing one, wires it into ~/.claude/settings.json, stamps a commented config template, and prompts once for a weather location (IP auto-detect is wrong on WSL2/VPN/cloud-shell). Pass force to skip the prompt. |
/claude-statusline-builder:toggle | Flips between minimal (identity + branch + model) and detail (full multi-line) rendering. Pass minimal, detail, status, or no argument to flip |
/claude-statusline-builder:preview | Renders the statusline once with a synthetic JSON fixture so you can verify it without waiting for a Claude turn. Pass minimal or detail for a one-shot mode override |
/claude-statusline-builder:doctor | 13-point diagnosis: deps, settings.json wiring, cache freshness, env vars, HTTPS reachability, weather-location sanity, fixture render, date portability. Pass fix for one-line remediation hints |
/claude-statusline-builder:config | show (default) prints all effective values with origin (user vs default). init stamps a fresh config template. <KEY_NAME> prints one value |
/claude-statusline-builder:uninstall | Restores the previous ~/.claude/settings.json from backup, deletes the installed script and the mode flag. Pass purge to also remove your config and /tmp cache files |
The builder agent
Subagent: claude-statusline-builder:statusline-builder
An interactive 4–8 question wizard that walks you through your locale, weather, language, service health providers, cost tracking, and rendering preferences, then writes ~/.claude/statusline-config.sh for you and verifies by rendering the fixture. Use this when you want guided setup instead of editing the bash config by hand.
The agent never asks you to type admin API keys into chat — those must be set in ~/.profile (or anywhere bash will source them) before running the wizard.
Configuration
Your overrides live in ~/.claude/statusline-config.sh (sourced by the script on every render). The plugin's scripts/statusline-config.sample.sh is the canonical template — /install and /config init stamp it out for you.
All overridable variables