Overview
cc-statusline offers flexible configuration through an interactive setup process. All features are pre-selected by default and can be customized to match your workflow.Interactive Configuration
Theinit command guides you through configuration with intelligent defaults:
Select Features
Choose which information to display in your statusline using arrow keys and spacebar.All features are enabled by default for the best experience.
Color Scheme
Enable or disable the modern color scheme and emojis.Default: Enabled for better visibility
Debug Logging
Optionally enable debug logging to
.claude/statusline.log.Default: Disabled to reduce file clutterAvailable Features
Core Features
These features are displayed on the first line of your statusline:π Working Directory
π Working Directory
Displays your current working directory with
~ abbreviation for home directory.Example: π ~/Projects/my-appRequirements: NoneπΏ Git Branch
πΏ Git Branch
Shows the active git branch name in your repository.Example:
πΏ feature/new-statuslineRequirements: git installed (optional)π€ Model Name & Version
π€ Model Name & Version
Displays which Claude model youβre currently using.Example:
π€ Sonnet 4Requirements: None (extracted from Claude Code JSON)Context & Session Features
Displayed on the second line for real-time awareness:π§ Context Remaining
π§ Context Remaining
Shows remaining context window as a percentage with visual progress bar.Example:
π§ Context Remaining: 83% [========--]Color coding:- Green (>40%): Plenty of space
- Peach (20-40%): Getting full
- Red (<20%): Nearly full
Context is calculated from Claude Codeβs native
context_window.current_usage fieldβ Session Reset Time
β Session Reset Time
Displays time until usage limit resets with countdown and progress bar.Example:
β 3h 7m until reset at 01:00 (37%) [===-------]Requirements: jq + ccusage integrationUsage Analytics
Displayed on the third line for cost tracking:π΅ Usage & Cost
π΅ Usage & Cost
Real-time cost monitoring with optional burn rate.Example:
π° $49.00 ($16.55/h)Requirements: ccusage (via npx ccusage@latest)π Token Statistics
π Token Statistics
Total token consumption with tokens-per-minute burn rate.Example:
π 14638846 tok (279900 tpm)Requirements: jq + ccusageβ‘ Burn Rate
β‘ Burn Rate
Enhanced cost and token burn rate display.Shows both $/hour and tokens/minute metrics.Requirements: jq + ccusage
Configuration Options
Feature Selection
Fromsrc/cli/prompts.ts:18-40, the available features are:
Session reset time is disabled by default because it requires ccusage integration
Color Schemes
When colors are enabled, cc-statusline uses a 256-color palette optimized for Claude Code terminals:- Directory: Cyan (
\033[38;5;117m) - Git Branch: Green (
\033[38;5;150m) - Model: Purple (
\033[38;5;141m) - Context (>40%): Mint green (
\033[38;5;158m) - Context (20-40%): Peach (
\033[38;5;215m) - Context (<20%): Coral red (
\033[38;5;203m) - Cost: Yellow (
\033[38;5;228m) - Burn Rate: Highlighted orange (
\033[38;5;215m)
Debug Logging
Enable logging to troubleshoot issues:.claude/statusline.log and include:
- Timestamp of each statusline trigger
- Input JSON from Claude Code
- Extracted data values
- Whether jq is available
Advanced Options
Custom Output Path
Generate the statusline to a custom location:Skip Auto-Installation
Generate the script without automatic installation:.claude/settings.json:
Environment Variables
cc-statusline respects standard environment variables:Configuration File Structure
After installation, your project has:statusline.sh script header contains your configuration:
Reconfiguration
To update your configuration:Confirm overwrite
When prompted, confirm you want to overwrite the existing statusline:
β οΈ Project statusline.sh already exists. Overwrite?Next Steps
Preview Your Configuration
Test your statusline before restarting Claude Code
Troubleshooting
Fix common configuration issues