SkillsLLM
CategoriesBlogAI NewsAbout
HomeCLI ToolsClaudeCodeStatusLine

ClaudeCodeStatusLine

by daniel3303

Pending

Custom status line for Claude Code showing model, tokens, rate limits, and git info in real-time

311stars
24forks
Shell
Added 3/11/2026
View on GitHubDownload ZIP
CLI Toolsanthropicclaudeclaude-codeclideveloper-toolspowershellrate-limitingshellstatus-lineterminal
Installation
# Add to your Claude Code skills
git clone https://github.com/daniel3303/ClaudeCodeStatusLine
README.md

Claude Code Status Line

A custom status line for Claude Code that displays model info, token usage, rate limits, and reset times in a single compact line. It runs as an external shell command, so it does not slow down Claude Code or consume any extra tokens.

Screenshot

Status Line Screenshot

What it shows

| Segment | Description | |---------|-------------| | Model | Current model name (e.g., Opus 4.6) | | CWD@Branch | Current folder name, git branch, and file changes (+/-) | | Tokens | Used / total context window tokens (% used) | | Effort | Reasoning effort level (low, med, high) | | 5h | 5-hour rate limit usage percentage and reset time | | 7d | 7-day rate limit usage percentage and reset time | | Extra | Extra usage credits spent / limit (if enabled) |

Usage percentages are color-coded: green (<50%) → yellow (≥50%) → orange (≥70%) → red (≥90%).

Requirements

macOS / Linux

  • jq — for JSON parsing
  • curl — for fetching usage data from the Anthropic API
  • Claude Code with OAuth authentication (Pro/Max subscription)

Windows

  • PowerShell 5.1+ (included by default on Windows 10/11)
  • git in PATH (for branch/diff info)
  • Claude Code with OAuth authentication (Pro/Max subscription)

Installation

Quick setup (recommended)

Copy the contents of statusline.sh (or statusline.ps1 on Windows) and paste it into Claude Code with the prompt:

Use this script as my status bar

Claude Code will save the script and configure settings.json for you automatically.

Manual setup — macOS / Linux

  1. Copy the script to your Claude config directory:

    cp statusline.sh ~/.claude/statusline.sh
    chmod +x ~/.claude/statusline.sh
    
  2. Add the status line config to ~/.claude/settings.json:

    {
      "statusLine": {
        "type": "command",
        "command": "~/.claude/statusline.sh"
      }
    }
    
  3. Restart Claude Code.

Manual setup — Windows

Windows users should use statusline.ps1 instead of the bash script.

  1. Copy the script to your Claude config directory:

    Copy-Item statusline.ps1 "$env:USERPROFILE\.claude\statusline.ps1"
    
  2. Add the status line config to %USERPROFILE%\.claude\settings.json:

    PowerShell / CMD:

    {
      "statusLine": {
        "type": "command",
        "command": "powershell -NoProfile -File \"%USERPROFILE%\\.claude\\statusline.ps1\""
      }
    }
    

    Git Bash / WSL bash:

    {
      "statusLine": {
        "type": "command",
        "command": "powershell -NoProfile -File \"$USERPROFILE\\.claude\\statusline.ps1\""
      }
    }
    

    Note: Use %USERPROFILE% in CMD/PowerShell or $USERPROFILE in bash shells. The %VAR% syntax does not expand in bash.

  3. Restart Claude Code.

Caching

Usage data from the Anthropic API is cached for 60 seconds at /tmp/claude/statusline-usage-cache.json ...

Comments (0)
to leave a comment.

No comments yet. Be the first to share your thoughts!

Related Skills

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
178,903
55,726
TypeScript
MCP Serversaiapis
View details
gemini-cli

by google-gemini

An open-source AI agent that brings the power of Gemini directly into your terminal.
97,469
12,195
TypeScript
AI Agentsaiai-agents
View details
everything-claude-code

by affaan-m

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
73,757
9,228
JavaScript
AI Agentsai-agentsanthropic
View details
awesome-claude-skills

by ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
43,513
4,373
Python
AI Agentsagent-skillsai-agents
View details
chatgpt-on-wechat

by zhayujie

CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长。同时支持飞书、钉钉、企业微信应用、微信公众号、网页等接入,可选择OpenAI/Claude/Gemini/DeepSeek/ Qwen/GLM/Kimi/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助手和企业数字员工。
42,164
9,820
Python
AI Agentsaiai-agent
View details
cherry-studio

by CherryHQ

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs
41,349
3,818
TypeScript
AI Agentsai-agentclaude-code
View details