cc-statusline-pro
v1.0.0
Published
Beautiful statusline for Claude Code with usage limits, context tracking, and colors
Downloads
5
Maintainers
Readme
Claude Code Statusline
Beautiful, feature-rich statusline for Claude Code with real-time usage limits, context tracking, and colorful display.
Features
- 🎨 Beautiful colors - ANSI colors for better readability
- 📊 Usage limits - Real-time plan usage from Anthropic API
- 📈 Context tracking - Visual progress bar for context window
- ⏱️ Session time - Track how long you've been coding
- 💰 Cost tracking - Monitor your session costs
- 📝 Code changes - Lines added and removed
- 🌿 Git branch - Current branch display
Quick Install
Method 1: Using npx (Recommended)
cd your-project
npx claude-code-statusline initMethod 2: Using local path
cd your-project
node /path/to/statusline-installer/cli.js initMethod 3: Simple curl install
cd your-project
curl -o .claude/statusline.js https://raw.githubusercontent.com/your-repo/statusline.jsWhat you'll see
Sonnet 4.5 | ▓▓░░░░░░░░ 18% | ⏱ 45m 30s | Plan: 37% used | Resets in 4h 12m | $1.0792 | +247 -15 | ⎇ mainColor Breakdown
- Model name: Bold Cyan
- Context bar: Green (< 40%) / Yellow (40-70%) / Red (> 70%)
- Session time: Blue
- Plan usage: Green (< 50%) / Yellow (50-80%) / Red (> 80%)
- Reset time: Magenta
- Cost: Yellow
- Lines added: Green
- Lines removed: Red
- Git branch: Cyan
Requirements
- Node.js >= 14.0.0
- Claude Code CLI installed
- Logged in to Claude Code (for usage limits feature)
How it works
- Reads session data from Claude Code via stdin (JSON format)
- Fetches usage limits from Anthropic API (with 5-minute cache)
- Formats everything with beautiful ANSI colors
- Outputs a single-line statusline
Configuration
After installation, your .claude/settings.json will contain:
{
"statusLine": {
"type": "command",
"command": "node \"T:\\absolute\\path\\to\\project\\.claude\\statusline.js\"",
"padding": 0
}
}Note: The installer automatically uses absolute paths to ensure the statusline works correctly across all projects.
Troubleshooting
Statusline not showing
- Check that
.claude/statusline.jsexists - Check that
.claude/settings.jsonhas the statusLine config - Restart Claude Code
Usage limits not showing
- Check that you're logged in to Claude Code
- Check that credentials exist in
~/.claude/.credentials.json(Linux/macOS) or%USERPROFILE%\.claude\.credentials.json(Windows) - The feature requires authentication with Anthropic API
Colors not working
Make sure your terminal supports ANSI colors. Most modern terminals do.
Uninstall
Remove the statusline configuration from .claude/settings.json:
# Or manually edit .claude/settings.json to remove statusLine configLicense
MIT
Credits
- Inspired by codelynx.dev's statusline
- Built for the Claude Code community
