Skip to content

chardigio/claude-code-statusline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Claude Code Statusline

Custom statusline configuration for Claude Code CLI.

Preview

🧠 O4.5 πŸ“ˆ β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘42k ⚑️ β–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘2h30m β–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘β–‘4d5h πŸ’° $1.23
πŸ“ ~/cs/my-project 🌿 main↑2 ✏️ +15/-3

Features

  • Model indicator abbreviated (e.g., Opus 4.5 -> O4.5, Sonnet 4.1 -> S4.1, etc.)
  • Context window usage bar with token count
  • Rate limit bars for 5-hour and 7-day windows with pace-based coloring:
    • 🟒 Green: sustainable pace
    • 🟑 Yellow: on pace to hit limit
    • πŸ”΄ Red: at or over limit
  • Session cost tracking
  • Git branch with ahead/behind indicators
  • Uncommitted changes (+added/-removed lines)

Installation

Quick Install (recommended)

curl -fsSL https://raw.githubusercontent.com/chardigio/claude-code-statusline/main/install.sh | bash

This downloads the script to ~/.claude/statusline.sh and configures Claude Code to use it.

Manual Installation

  1. Download the script:

    curl -o ~/.claude/statusline.sh https://raw.githubusercontent.com/chardigio/claude-code-statusline/main/statusline.sh
    chmod +x ~/.claude/statusline.sh
  2. Configure Claude Code by adding to ~/.claude/settings.json:

    {
      "statusLine": {
        "type": "command",
        "command": "~/.claude/statusline.sh",
        "padding": 0
      }
    }

Requirements

  • jq for JSON parsing
  • git for repository status
  • macOS security command for OAuth token access (for rate limit display)

License

MIT

About

Custom statusline configuration for Claude Code CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages