Claude Code status line

Claude Statusline

Rich statusline for Claude Code — model, context bar, usage limits (H/W), git branch, session time. Cross-platform.

34 stars 7 forksStatus lines Source

Install

From source
git clone https://github.com/AndyShaman/claude-statusline.git

From the README

claude-statusline

  Информативная строка состояния для Claude Code — модель, контекст, лимиты, git, время сессии.
  Кроссплатформенная. Одна команда для установки.

   

Что показывает

Цветовая кодировка лимитов: 🟢 > 50% — 🟡 20–50% — 🔴 claude-statusline

  A rich statusline for Claude Code — model, context, usage limits, git, session time.
  Cross-platform. One command to install.

   

What it shows

Color coding: 🟢 > 50% — 🟡 20–50% — 🔴
3. Calculate remaining = 100 - utilization, format time until reset
4. Cache results for 2 minutes at ~/.claude/.usage-cache.json

Platform-specific token access

Linux / Windows / WSL: the script checks ~/.claude/.credentials.json first. If absent, falls back to libsecret on Linux (sudo apt install libsecret-tools) or Credential Manager on Windows (Install-Module -Name CredentialManager -Force).

Verify your token is accessible:

If nothing prints, run claude login to re-authenticate.

Troubleshooting

Customization

Edit ~/.claude/statusline.sh directly, or use inside Claude Code:

Uninstall

Remove the statusLine key from ~/.claude/settings.json.

License

MIT

@AndyShaman · claude-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
Shell
License
MIT
Last updated
2 September 2026
Topics
anthropicbashclaudeclaude-codeclideveloper-toolsstatuslineterminal

FAQ

What is Claude Statusline?

Rich statusline for Claude Code — model, context bar, usage limits (H/W), git branch, session time. Cross-platform. It is a status line for Claude Code, from AndyShaman/claude-statusline on GitHub.

How do I install Claude Statusline?

Clone AndyShaman/claude-statusline from GitHub and follow the setup steps in its README.

Is Claude Statusline popular?

AndyShaman/claude-statusline has 34 GitHub stars and 7 forks. It was last updated on 2 September 2026.

More status lines

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