powerline-claude

A powerline-style status line for Claude Code, as a
single Rust binary. Reads the statusline JSON Claude Code writes to stdin,
prints an ANSI bar.

Inspired by starship-claude,
using a powerline-go-style API.
Quick start
These are Claude Code slash commands, not shell commands: start a claude
session and enter each one at the Claude prompt, one at a time.
/plugin marketplace add bcmyguest/powerline-claude
/plugin install powerline-claude@powerline-claude
/reload-plugins
Then run the setup command (also inside Claude):
/powerline-claude:configure
It downloads the binary if it's missing, points statusLine in
~/.claude/settings.json at it, and walks you through theme, segments, and
separator mode.
Manual install
Grab the static binary for your platform from the latest release —
x86_64-unknown-linux-musl, aarch64-unknown-linux-musl,
aarch64-apple-darwin, or x86_64-apple-darwin:
case "$(uname -sm)" in
"Linux x86_64") target=x86_64-unknown-linux-musl ;;
"Linux aarch64") target=aarch64-unknown-linux-musl ;;
"Darwin arm64") target=aarch64-apple-darwin ;;
"Darwin x86_64") target=x86_64-apple-darwin ;;
esac
curl -fsSL -o ~/.local/bin/powerline-claude \
"https://github.com/bcmyguest/powerline-claude/releases/latest/download/powerline-claude-$target"
chmod +x ~/.local/bin/powerline-claude
or install from crates.io:
cargo install powerline-claude --locked
or build from source:
cargo install --git https://github.com/bcmyguest/powerline-claude --locked
Usage
~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"padding": 0,
"command": "~/.local/bin/powerline-claude"
}
}
Flags go on that command string:
| Flag | Default | Meaning |
|---|
--modules | logo,dir,git,model,context,cost,usage,stats,effort | Segments to render, in order |
--modules-right | (empty) | Segments pinned to the right edge of the terminal, e.g. --modules-right context,cost |
--theme | catppuccin-mocha | Also: catppuccin-frappe, dracula, gruvbox-dark, nord, tokyonight, a path to a custom theme directory, or the name of one under ~/.config/powerline-claude/themes/ |
--mode | patched | patched (nerd-font separators), compatible (plain-Unicode separators and segment icons — no patched font needed), flat (no separators) |
--no-progress | off | Suppress the OSC 9;4 terminal progress bar |
--width | $COLUMNS, then parent TTY, then 200 | Terminal width (drives dir truncation, compact token counts, and overflow segment dropping) |
Custom themes
--theme accepts a filesystem path instead of a built-in name. When the value
resolves to an existing directory, powerline-claude reads theme.yaml from
inside it instead of looking up a vendored palette:
powerline-claude --theme ~/projects/my-theme
# reads ~/projects/my-theme/theme.yaml
Themes dropped under ~/.config/powerline-claude/themes/ can be selected by
bare name — any --theme value that isn't a built-in palette or an existing
directory path is looked up there:
powerline-claude --theme my-theme
# reads ~/.config/powerline-claude/themes/my-theme/theme.yaml
Built-in palette names always win, so a custom theme can't shadow nord.
theme.yaml defines fg/bg hex colors for the eight segment families
(claude, directory, git, model, context, context_warn,
context_alert, cost) plus an optional display name.
docs/themes/synthwave
is a complete example you can copy as a starting point:
name: synthwave
claude: { fg: "#ff7edb", bg: "#2a2139" }
directory: { fg: "#36f9f6", bg: "#241b2f" }
git: { fg: "#ff8b39", bg: "#2a2139" }
model: { fg: "#b893ce", bg: "#241b2f" }
context: { fg: "#fede5d", bg: "#2a2139" }
context_warn: { fg: "#241b2f", bg: "#ff8b39" }
context_alert: { fg: "#241b2f", bg: "#fe4450" }
cost: { fg: "#72f1b8", bg: "#34294f" }
