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

claude-statusline

CI License: MIT

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 ccusage for active 5-hour block and daily usage.
  • 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. Non-subscription 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/claude-statusline

Or run directly without installing:

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

Home Manager

Add 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;

From source

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

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

Claude Code setup

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

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

Configuration

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.

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