A customizable statusline for Claude Code CLI.
bun add -g @vibest/claude-code-statuslineOr with npm:
npm install -g @vibest/claude-code-statuslineAdd to ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "claude-code-statusline"
}
}[Opus 4.5] █████░░░░░ 45% ∣ $0.52
~/Code/my-project (main +123 -45)
import {
readStdin,
modelWidget,
costWidget,
contextWidget,
projectGitWidget,
} from "@vibest/claude-code-statusline";
const data = await readStdin();
console.log(modelWidget(data));
console.log(projectGitWidget(data));modelWidget- Model name with brackets (e.g.,[Opus 4.5])contextWidget- Context window progress bar and percentageprojectGitWidget- Project path with git branch and changescostWidget- Total cost in USDdirectoryWidget- Current directorygitWidget- Git branch name
MIT