Claude Code status line

best-claude-hud

A minimal Rust-powered status line HUD for Claude Code.

995 stars 24 forksStatus lines Source

Install

Install
npm install -g best-claude-hud@latest && best-claude-hud --setup
From source
git clone https://github.com/GaoSSR/best-claude-hud.git

From the README

English | 简体中文 | 日本語

Minimal Claude Code statusline HUD, powered by Rust

best-claude-hud Overview

best-claude-hud is a high-performance Claude Code statusline tool written in Rust. It shows the status information you actually need while using Claude Code in a terminal: model and live reasoning effort, workspace, Git branch/status, context window usage, and optional usage/rate-limit metadata.

The default statusline focuses on:

- Claude model display with live reasoning effort when available
- Claude Code launch directory, stable across temporary working-directory changes
- Git branch, clean/dirty/conflict state, and ahead/behind counts
- context window usage from Claude Code's official statusLine data, with active-transcript fallback
- optional usage/rate-limit, cost, session, and output style segments

Install

best-claude-hud is distributed through npm. The npm package uses prebuilt native binaries; users do not need Rust installed.

Install best-claude-hud and configure Claude Code in one line:

Restart Claude Code after setup. Existing sessions do not automatically reload ~/.claude/settings.json.

Install only:

Using yarn or pnpm:

For users in China:

Update an existing installation:

Uninstall:

Nix

best-claude-hud also ships a Nix flake for declarative and reproducible environments.

Run without installing globally:

Install into a Nix profile:

For home-manager or another declarative setup, point Claude Code directly at the Nix store binary. The example below declaratively manages the entire ~/.claude/settings.json file and does not merge existing settings. Use it only for a new file or when all Claude Code settings are declared in the same Nix configuration:

If you keep ~/.claude/settings.json manually, run best-claude-hud --setup or add the statusLine…
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
Rust
License
Apache-2.0
Last updated
13 August 2026
Topics
claude-codeclideveloper-toolshudlinuxmacosnpmruststatuslineterminalwindows

FAQ

What is best-claude-hud?

A minimal Rust-powered status line HUD for Claude Code. It is a status line for Claude Code, from GaoSSR/best-claude-hud on GitHub.

How do I install best-claude-hud?

Run npm install -g best-claude-hud@latest && best-claude-hud --setup, then follow the setup in the README.

Is best-claude-hud popular?

GaoSSR/best-claude-hud has 995 GitHub stars and 24 forks. It was last updated on 13 August 2026.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.