claude-code-line
v1.1.0
Published
Minimal, customizable statusline for Claude Code CLI
Maintainers
Readme
Claude Code Line
Minimal, customizable statusline for Claude Code CLI.
Install
npm install -g claude-code-lineThen open the TUI to customize and save to Claude Code:
claude-code-lineSelect Save to Claude Code and restart Claude Code to apply.
Manual setup
To set it up without the TUI, add to ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "claude-code-line"
}
}Update
npm install -g claude-code-lineThemes
- Default — minimal neutral statusline: project name, git branch, model, context usage, effort, rate limits, and CLI version
- Custom — choose which widgets to show, reorder them, change colors, and customize display formats
Widgets
| Widget | Shows | |--------|-------| | Name | Current project folder | | Git | Branch and diff stats | | Model | Claude model name | | Tokens | Context usage and token count (customizable format) | | Effort | Reasoning effort level | | 5h Rate | 5-hour usage and reset time (customizable format) | | 7d Rate | 7-day usage and reset time (customizable format) | | Extra | Extra usage credits | | Version | Claude CLI version | | Session Cost | Session cost in USD | | Session Clock | Elapsed session time |
Local development
Clone the repo and run directly from source:
git clone https://github.com/yasir-ali9/claude-code-line.git
cd claude-code-line
npm install
npm run build
node dist/index.jsTo use your local build as the Claude Code statusline, add the absolute path manually to ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "node /absolute/path/to/claude-code-line/dist/index.js"
}
}Restart Claude Code to apply.
Requirements
- Node.js >= 18
- Claude Code CLI
