statusline renders a non-blocking status line for coding agent CLIs (Claude Code and Antigravity CLI) with local ccusage tracking, configurable layouts, and optional external cost providers.
my-project main »1 +2 !1 ?3
Opus 5.5 (1M) high | Ctx: 42% (420k/1000k) | Block: $4.50 (2h5m left, $1.75/h) | Today: $8.25 | 14:35
- Multi-agent support: auto-detects Claude Code (
claude) and Antigravity CLI (agy/antigravity) from stdin JSON (or override with--agent <id>), normalizing payloads and isolating per-harnessccusagecaches. - Zero configuration: personal subscriptions work without a config file, using
ccusagefor daily usage and (for Claude Code) active 5-hour block tracking. - Non-blocking caching:
ccusageand external cost providers refresh in detached background processes behindflock --nonblocklocks while stale cached values are served. - Lazy execution:
git,ccusage, and cost providers run only when active segments need them. Harnesses without block support and non-subscription Claude environments (API keys, custom base URLs, Bedrock, Vertex, or Foundry) automatically hide theblocksegment. - Configurable layout: arrange built-in segments across any number of rows, add model aliases, or plug in HTTP or command cost providers.
- Customizable themes: choose from built-in presets (
catppuccin-mocha,catppuccin-latte,ansi,monochrome), override individual semantic color slots, and disable ANSI output viaNO_COLOR.
nix profile install github:hakulab/statuslineOr run directly without installing:
nix run github:hakulab/statusline -- --helpAdd the flake input (inputs.statusline.url = "github:hakulab/statusline";), import inputs.statusline.homeManagerModules.default, and enable the module:
programs.statusline.enable = true;Outside Nix, clone the repository and run src/statusline.nu directly with Nushell:
git clone https://github.com/hakulab/statusline ~/.local/share/statusline
nu --no-config-file ~/.local/share/statusline/src/statusline.nu --helpRuntime requirements: nu (Nushell), bash, curl, flock, git, and optionally ccusage for block and daily usage tracking.
Point statusLine.command in ~/.claude/settings.json to statusline:
{
"statusLine": {
"type": "command",
"command": "statusline"
}
}Point statusLine.command in ~/.gemini/antigravity-cli/settings.json to statusline (auto-detected from stdin) or statusline --agent agy:
{
"statusLine": {
"type": "command",
"command": "statusline",
"enabled": true
}
}Personal subscriptions work without a configuration file. See docs/configuration.md to customize rows, separators, themes, model aliases, Home Manager programs.statusline.settings, or external HTTP and command cost providers.
nix develop -c run-hooks
nix flake checkCopyright (c) 2026 Hakula. Licensed under the MIT License.