{"id":51480694,"url":"https://github.com/siropkin/claude-code-statusline","last_synced_at":"2026-07-07T01:30:42.123Z","repository":{"id":367640017,"uuid":"1281708086","full_name":"siropkin/claude-code-statusline","owner":"siropkin","description":"Yet another Claude Code statusline with account spending limits, session cost, context usage, model info, and git status","archived":false,"fork":false,"pushed_at":"2026-06-26T21:38:35.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-26T22:18:38.624Z","etag":null,"topics":["anthropic","claude","claude-code","cli","developer-tools","statusline","terminal"],"latest_commit_sha":null,"homepage":"","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/siropkin.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-06-26T20:53:25.000Z","updated_at":"2026-06-26T21:38:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/siropkin/claude-code-statusline","commit_stats":null,"previous_names":["siropkin/claude-code-statusline"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/siropkin/claude-code-statusline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siropkin%2Fclaude-code-statusline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siropkin%2Fclaude-code-statusline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siropkin%2Fclaude-code-statusline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siropkin%2Fclaude-code-statusline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siropkin","download_url":"https://codeload.github.com/siropkin/claude-code-statusline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siropkin%2Fclaude-code-statusline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35211553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","statusline","terminal"],"created_at":"2026-07-07T01:30:36.270Z","updated_at":"2026-07-07T01:30:42.046Z","avatar_url":"https://github.com/siropkin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yet Another Claude Code Statusline\n\nCustom statusline for Claude Code CLI that shows account spending limits, session cost, context usage, model info, and git status.\n\n![screenshot](screenshot.png)\n\n## How it works\n\n**Line 1:** project name, git branch, PR status — from Claude Code stdin + `gh` CLI. PR number is a clickable link to GitHub (uses OSC 8 terminal hyperlinks, works in iTerm2, Kitty, Wezterm, etc.).\n\n**Line 2:** model, effort, context bar, session cost, account spending bar — context and session cost come from Claude Code stdin. Account spending is fetched from the Anthropic OAuth API (`api.anthropic.com/api/oauth/usage`) using credentials stored in macOS Keychain (or `~/.claude/.credentials.json` on Linux). This is the tricky part — the endpoint is undocumented, and getting the auth token right took some digging.\n\nBars turn green, amber, or red as usage increases. If spending data isn't available yet, you'll see an empty bar with `-/-`.\n\n## Prerequisites\n\n- `jq`, `git`, `gh`, `curl`\n- macOS or Linux\n\n## Install\n\n1. Backup your settings (if you have a custom statusline already):\n```sh\ncp ~/.claude/settings.json ~/.claude/settings.json.bak\n```\n\n2. Copy the script:\n```sh\ncp statusline.sh ~/.claude/statusline.sh\n```\n\n3. Add to `~/.claude/settings.json`:\n```json\n{\n  \"statusLine\": {\n    \"type\": \"command\",\n    \"command\": \"sh ~/.claude/statusline.sh\",\n    \"padding\": 0\n  }\n}\n```\n\n4. Restart Claude Code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiropkin%2Fclaude-code-statusline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiropkin%2Fclaude-code-statusline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiropkin%2Fclaude-code-statusline/lists"}