{"id":47453639,"url":"https://github.com/daniel3303/ClaudeCodeStatusLine","last_synced_at":"2026-04-03T00:01:04.497Z","repository":{"id":341574460,"uuid":"1170648585","full_name":"daniel3303/ClaudeCodeStatusLine","owner":"daniel3303","description":"Custom status line for Claude Code showing model, tokens, rate limits, and git info in real-time","archived":false,"fork":false,"pushed_at":"2026-03-23T10:58:59.000Z","size":344,"stargazers_count":339,"open_issues_count":1,"forks_count":27,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-03-24T08:32:01.770Z","etag":null,"topics":["anthropic","claude","claude-code","cli","developer-tools","powershell","rate-limiting","shell","status-line","terminal"],"latest_commit_sha":null,"homepage":"https://danielapoliveira.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniel3303.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-02T11:06:02.000Z","updated_at":"2026-03-23T23:20:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/daniel3303/ClaudeCodeStatusLine","commit_stats":null,"previous_names":["daniel3303/claudecodestatusline"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/daniel3303/ClaudeCodeStatusLine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel3303%2FClaudeCodeStatusLine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel3303%2FClaudeCodeStatusLine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel3303%2FClaudeCodeStatusLine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel3303%2FClaudeCodeStatusLine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel3303","download_url":"https://codeload.github.com/daniel3303/ClaudeCodeStatusLine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel3303%2FClaudeCodeStatusLine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31319726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T23:57:25.032Z","status":"ssl_error","status_checked_at":"2026-04-02T23:57:06.281Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","claude","claude-code","cli","developer-tools","powershell","rate-limiting","shell","status-line","terminal"],"created_at":"2026-03-23T18:00:33.562Z","updated_at":"2026-04-03T00:01:04.491Z","avatar_url":"https://github.com/daniel3303.png","language":"Shell","readme":"# Claude Code Status Line\n\nA custom status line for [Claude Code](https://claude.com/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.\n\n## Screenshot\n\n![Status Line Screenshot](screenshot.png)\n\n## What it shows\n\n| Segment | Description |\n|---------|-------------|\n| **Model** | Current model name (e.g., Opus 4.6) |\n| **CWD@Branch** | Current folder name, git branch, and file changes (+/-) |\n| **Tokens** | Used / total context window tokens (% used) |\n| **Effort** | Reasoning effort level (low, med, high) |\n| **5h** | 5-hour rate limit usage percentage and reset time |\n| **7d** | 7-day rate limit usage percentage and reset time |\n| **Extra** | Extra usage credits spent / limit (if enabled) |\n| **Update** | Clickable link when a new version is available (checked every 24h) |\n\nUsage percentages are color-coded: green (\u003c50%) → yellow (≥50%) → orange (≥70%) → red (≥90%).\n\n## Requirements\n\n### macOS / Linux\n\n- `jq` — for JSON parsing\n- `curl` — for fetching usage data from the Anthropic API\n- Claude Code with OAuth authentication (Pro/Max subscription)\n\n### Windows\n\n- PowerShell 5.1+ (included by default on Windows 10/11)\n- `git` in PATH (for branch/diff info)\n- Claude Code with OAuth authentication (Pro/Max subscription)\n\n## Installation\n\n### Quick setup (recommended)\n\nCopy the contents of `statusline.sh` (or `statusline.ps1` on Windows) and paste it into Claude Code with the prompt:\n\n\u003e Use this script as my status bar\n\nClaude Code will save the script and configure `settings.json` for you automatically.\n\n### Manual setup — macOS / Linux\n\n1. Copy the script to your Claude config directory:\n\n   ```bash\n   cp statusline.sh ~/.claude/statusline.sh\n   chmod +x ~/.claude/statusline.sh\n   ```\n\n2. Add the status line config to `~/.claude/settings.json`:\n\n   ```json\n   {\n     \"statusLine\": {\n       \"type\": \"command\",\n       \"command\": \"~/.claude/statusline.sh\"\n     }\n   }\n   ```\n\n3. Restart Claude Code.\n\n### Manual setup — Windows\n\n\u003e **Windows users should use `statusline.ps1`** instead of the bash script.\n\n1. Copy the script to your Claude config directory:\n\n   ```powershell\n   Copy-Item statusline.ps1 \"$env:USERPROFILE\\.claude\\statusline.ps1\"\n   ```\n\n2. Add the status line config to `%USERPROFILE%\\.claude\\settings.json`:\n\n   **PowerShell / CMD:**\n   ```json\n   {\n     \"statusLine\": {\n       \"type\": \"command\",\n       \"command\": \"powershell -NoProfile -File \\\"%USERPROFILE%\\\\.claude\\\\statusline.ps1\\\"\"\n     }\n   }\n   ```\n\n   **Git Bash / WSL bash:**\n   ```json\n   {\n     \"statusLine\": {\n       \"type\": \"command\",\n       \"command\": \"powershell -NoProfile -File \\\"$USERPROFILE\\\\.claude\\\\statusline.ps1\\\"\"\n     }\n   }\n   ```\n\n   \u003e **Note:** Use `%USERPROFILE%` in CMD/PowerShell or `$USERPROFILE` in bash shells. The `%VAR%` syntax does not expand in bash.\n\n3. Restart Claude Code.\n\n## Caching\n\nUsage data from the Anthropic API is cached for 60 seconds at `/tmp/claude/statusline-usage-cache.json` to avoid excessive API calls.\n\n## Update Notifications\n\nThe status line checks GitHub for new releases once every 24 hours. When a newer version is available, a second line appears below the status line showing the new version and a link to the repository. The check is cached at `/tmp/claude/statusline-version-cache.json` (or `%TEMP%\\claude\\...` on Windows) and fails silently if the API is unreachable or no release has been published.\n\n## How to Update\n\nWhen the status line shows an update is available, visit the [repository](https://github.com/daniel3303/ClaudeCodeStatusLine), copy the contents of `statusline.sh` (or `statusline.ps1` on Windows), and paste it into Claude Code with the prompt:\n\n\u003e Use this script as my status bar\n\nClaude Code will replace the script and restart the status line automatically.\n\n## License\n\nMIT\n\n## Author\n\nDaniel Oliveira\n\n[![Website](https://img.shields.io/badge/Website-FF6B6B?style=for-the-badge\u0026logo=safari\u0026logoColor=white)](https://danielapoliveira.com/)\n[![X](https://img.shields.io/badge/X-000000?style=for-the-badge\u0026logo=x\u0026logoColor=white)](https://x.com/daniel_not_nerd)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/daniel-ap-oliveira/)\n","funding_links":[],"categories":["📊 Usage \u0026 Observability","Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel3303%2FClaudeCodeStatusLine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel3303%2FClaudeCodeStatusLine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel3303%2FClaudeCodeStatusLine/lists"}