Sandbox
@glauberlima/claude-code-statusline

Claude Code statusline for git, context, and cost

Claude Code Statusline adds a live statusline to Claude Code with git state, file changes, model info, context usage, and cost. It installs as a small Rust binary and reads `~/.claude/statusline.toml` for theme and display options.

49 stars6 forksRustUpdated 29d ago
Who it's for

Builders who use Claude Code and want key session metrics at a glance.

What it delivers

You can see your agent session state, context usage, and cost without leaving the terminal.

What it does

Git and file state

Shows the current directory, git branch, and changed files.

Model and context display

Displays the active model and context usage with a progress bar and status messages.

Cost tracking

Shows session cost in the statusline.

Theme support

Supports themes like Dracula, Tokyo Night, One Dark, Solarized Dark, and Phosphor.

Simple install and config

Installs with one command and can be customized through `~/.claude/statusline.toml`.

How to get it

  1. 1macOS / Linux / WSL
    curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash
  2. 2Windows — PowerShell
    & ([scriptblock]::Create((irm https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1)))
  3. 3Override where the binary and config are installed (default: ~/.claude)
    # macOS / Linux / WSL
    curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash -s -- --install-dir /custom/path
  4. 4Run
    # Windows — PowerShell
    & ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1'))) -InstallDir "C:\Custom\Path"
  5. 5To install a specific release (e.g. for testing an unstable build)
    # macOS / Linux / WSL
    curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash -s -- --version v1.1.0-dev.6f31b35
  6. 6Run
    # Windows — PowerShell
    & ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1'))) -Version v1.1.0-dev.6f31b35

README

Claude Code Statusline

Claude Code Statusline

> Ridiculously simple. Surprisingly rich.

Platform support MIT License

💡 What You Get

More context in Claude Code's statusline: directory, git status, file changes, model, context usage with progress bar, and cost — all visible at once.

Claude Code Statusline Demo

Install with one command. Works immediately. Configure when you need it.

✨ Quick Install

macOS / Linux / WSL

curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash

Windows — PowerShell

& ([scriptblock]::Create((irm https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1)))

Custom install directory

Override where the binary and config are installed (default: ~/.claude):

# macOS / Linux / WSL
curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash -s -- --install-dir /custom/path
# Windows — PowerShell
& ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1'))) -InstallDir "C:\Custom\Path"

Install a specific version

To install a specific release (e.g. for testing an unstable build):

# macOS / Linux / WSL
curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash -s -- --version v1.1.0-dev.6f31b35
# Windows — PowerShell
& ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1'))) -Version v1.1.0-dev.6f31b35

Both parameters can be combined:

# macOS / Linux / WSL
curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash -s -- --install-dir /custom/path --version v1.1.0-dev.6f31b35
# Windows — PowerShell
& ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1'))) -InstallDir "C:\Custom\Path" -Version v1.1.0-dev.6f31b35

Release tags are listed on the GitHub releases page.

Features

  • 📁 Directory name
  • 🌿 Git branch
  • ✏️ File changes
  • 🤖 Model name
  • 📊 Context usage with progress bar and funny messages
  • 💰 Cost tracking
  • 🎨 Color themes (Dracula, Tokyo Night, One Dark, Solarized Dark, Phosphor)

⚙️ Configuration

Edit ~/.claude/statusline.toml to customize features. Generate the default config:

macOS / Linux / WSL

~/.claude/statusline --print-defaults > ~/.claude/statusline.toml

Windows — PowerShell

& "$env:USERPROFILE\.claude\statusline.exe" --print-defaults | Set-Content "$env:USERPROFILE\.claude\statusline.toml"

Available options: cost, messages, messages_language (en/pt/es), usage_bar_style (plain/rainbow/gradient/gsd/dracula/tokyo-night/one-dark/solarized-dark/phosphor), theme (default/dracula/tokyo-night/one-dark/solarized-dark/phosphor).

🎨 Themes

theme recolors the directory, git branch, file changes, model, cost, and context (plain bar style only) segments using the official palette of the selected theme. The rainbow and gsd bar styles are unaffected by theme — they always use their own fixed colors. The gradient and per-theme bar styles below are also independent of theme — pick them via usage_bar_style regardless of which theme is active.

ThemeSource palette
defaultOriginal 16-color ANSI (no theme applied)
draculaDracula
tokyo-nightTokyo Night
one-darkAtom One Dark
solarized-darkSolarized Dark
phosphorP1 phosphor CRT green (80s terminal)
theme = "dracula"

📊 Themed progress bars

usage_bar_style also accepts each theme's name (dracula/tokyo-night/one-dark/solarized-dark/phosphor), rendering the progress bar as a gradient across that theme's 6 semantic colors — independent of whichever theme is currently active. For example, theme = "default" with usage_bar_style = "phosphor" keeps default colors everywhere except a phosphor-green progress bar.

usage_bar_style = "phosphor"

🛠️ Development

Testing

cargo test

Contributing

  1. Fork and create a feature branch
  2. Make changes and run tests
  3. Submit a pull request

See CLAUDE.md for architecture details and development commands.

Inspirations

License

MIT License

Files in the repo

Repository payload20 top-level entries
  • .github
  • assets
  • scripts
  • src
  • tests
  • .editorconfig
  • .gitattributes
  • .gitignore
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • CLAUDE.md
  • cliff.toml
  • dev-install.sh
  • install.ps1
  • install.sh
  • LICENSE
  • README.md
  • rust-toolchain.toml
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k