Skip to content

About

Modular, non-blocking Claude Code statusline with pluggable cost providers

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

statusline

CI License: MIT

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-harness ccusage caches.
  • Zero configuration: personal subscriptions work without a config file, using ccusage for daily usage and (for Claude Code) active 5-hour block tracking.
  • Non-blocking caching: ccusage and external cost providers refresh in detached background processes behind flock --nonblock locks 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 the block segment.
  • 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 via NO_COLOR.

Install

Nix

nix profile install github:hakulab/statusline

Or run directly without installing:

nix run github:hakulab/statusline -- --help

Home Manager

Add the flake input (inputs.statusline.url = "github:hakulab/statusline";), import inputs.statusline.homeManagerModules.default, and enable the module:

programs.statusline.enable = true;

From source

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 --help

Runtime requirements: nu (Nushell), bash, curl, flock, git, and optionally ccusage for block and daily usage tracking.

Agent setup

Claude Code

Point statusLine.command in ~/.claude/settings.json to statusline:

{
  "statusLine": {
    "type": "command",
    "command": "statusline"
  }
}

Antigravity CLI (agy)

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
  }
}

Configuration

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.

Development

nix develop -c run-hooks
nix flake check

License

Copyright (c) 2026 Hakula. Licensed under the MIT License.

About

Modular, non-blocking Claude Code statusline with pluggable cost providers

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages