claude-statusline renders a non-blocking status line for Claude Code 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
- Zero configuration: personal Claude Code subscriptions work without a config file, using
ccusagefor active 5-hour block and daily usage. - 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. Non-subscription 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/claude-statuslineOr run directly without installing:
nix run github:hakulab/claude-statusline -- --helpAdd the flake input (inputs.claude-statusline.url = "github:hakulab/claude-statusline";), import inputs.claude-statusline.homeModules.default, and enable the module:
programs.claude-statusline.enable = true;Outside Nix, clone the repository and run src/claude-statusline.nu directly with Nushell:
git clone https://github.com/hakulab/claude-statusline ~/.local/share/claude-statusline
nu --no-config-file ~/.local/share/claude-statusline/src/claude-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 claude-statusline:
{
"statusLine": {
"type": "command",
"command": "claude-statusline"
}
}Personal Claude Code subscriptions work without a configuration file. See docs/configuration.md to customize rows, separators, themes, model aliases, Home Manager programs.claude-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.