{"id":36948009,"url":"https://github.com/erwint/claude-code-statusline","last_synced_at":"2026-02-16T02:44:45.321Z","repository":{"id":327489247,"uuid":"1106091127","full_name":"erwint/claude-code-statusline","owner":"erwint","description":"A statusline for claude code","archived":false,"fork":false,"pushed_at":"2026-01-25T12:34:11.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-25T12:36:28.110Z","etag":null,"topics":["claude-code"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erwint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-11-28T16:04:18.000Z","updated_at":"2026-01-25T12:34:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/erwint/claude-code-statusline","commit_stats":null,"previous_names":["erwint/claude-code-statusline"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/erwint/claude-code-statusline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwint%2Fclaude-code-statusline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwint%2Fclaude-code-statusline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwint%2Fclaude-code-statusline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwint%2Fclaude-code-statusline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erwint","download_url":"https://codeload.github.com/erwint/claude-code-statusline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwint%2Fclaude-code-statusline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["claude-code"],"created_at":"2026-01-13T11:45:25.585Z","updated_at":"2026-02-16T02:44:45.314Z","avatar_url":"https://github.com/erwint.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Statusline\n\nA fast, lightweight statusline for [Claude Code](https://claude.ai/code) showing git info, API usage, costs, and more.\n\n![Example statusline](assets/screenshot.png)\n\n## Features\n\n- **Git status**: branch, modified/staged/untracked indicators, ahead/behind\n- **Model**: current Claude model in use\n- **Context window**: visual usage bar with color-coded thresholds\n- **Subscription**: plan type and rate limit tier\n- **Costs**: daily/weekly/monthly token costs from your usage logs\n- **API usage**: current utilization % and time until reset\n- **Tool activity**: running tools with spinner, completed tool counts\n- **Agent tracking**: subagent status with description and elapsed time\n- **Todo progress**: current task and completion count\n- **Session duration**: time since session started\n\n## Installation\n\n### Claude Code Plugin (Recommended)\n\nIn any Claude Code session:\n\n```\n/plugin marketplace add erwint/claude-code-statusline\n/plugin install cc-statusline@cc-statusline\n```\n\nRestart Claude Code or run `/clear` to start a new session. The binary downloads automatically and the statusline appears.\n\nIf the statusline doesn't appear, run `/cc-statusline:setup` to manually install.\n\n### macOS / Linux\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/erwint/claude-code-statusline/main/install.sh | bash\n```\n\nOr clone and install manually:\n\n```bash\ngit clone https://github.com/erwint/claude-code-statusline.git\ncd claude-code-statusline\n./install.sh\n```\n\n### Windows (PowerShell)\n\n```powershell\nirm https://raw.githubusercontent.com/erwint/claude-code-statusline/main/install.ps1 | iex\n```\n\nOr download and run manually:\n\n```powershell\nInvoke-WebRequest -Uri https://raw.githubusercontent.com/erwint/claude-code-statusline/main/install.ps1 -OutFile install.ps1\n.\\install.ps1\n```\n\n### Build from source\n\nRequires Go 1.21+:\n\n```bash\ngo build -ldflags=\"-s -w\" -o claude-code-statusline .\n```\n\nForce source build with the install script:\n\n```bash\nBUILD_FROM_SOURCE=1 ./install.sh\n```\n\n## Configuration\n\nThe install script automatically configures Claude Code by adding to `~/.claude/settings.json`:\n\n```json\n{\n  \"statusLine\": {\n    \"type\": \"command\",\n    \"command\": \"~/.claude/bin/claude-code-statusline\"\n  }\n}\n```\n\n### Environment Variables\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `CLAUDE_STATUS_CACHE_TTL` | `300` | Cache TTL in seconds for API usage |\n| `CLAUDE_STATUS_DISPLAY_MODE` | `colors` | `colors`, `minimal`, or `background` |\n| `CLAUDE_STATUS_INFO_MODE` | `none` | `none`, `emoji`, or `text` |\n| `CLAUDE_STATUS_AGGREGATION` | `fixed` | Cost aggregation: `fixed` or `sliding` |\n| `CLAUDE_STATUS_AUTO_UPDATE` | `true` | Enable automatic daily update checks |\n| `CLAUDE_STATUS_DEBUG` | `false` | Enable debug logging to `/tmp/claude-statusline.log` |\n| `CLAUDE_STATUS_CONTEXT` | `true` | Show context window usage bar |\n| `CLAUDE_STATUS_TOOLS` | `true` | Show tool activity |\n| `CLAUDE_STATUS_AGENTS` | `true` | Show agent activity |\n| `CLAUDE_STATUS_TODOS` | `true` | Show todo progress |\n| `CLAUDE_STATUS_DURATION` | `true` | Show session duration |\n\n**Aggregation modes:**\n- `fixed`: Calendar periods - today, this week (Mon-Sun), this month (1st onwards)\n- `sliding`: Rolling windows - last 24h, last 7 days, last 30 days\n\n### Command Line Flags\n\n```\n--cache-ttl \u003cseconds\u003e   Cache TTL for API usage (default: 300)\n--no-color              Disable ANSI colors\n--display-mode \u003cmode\u003e   colors|minimal|background\n--info-mode \u003cmode\u003e      none|emoji|text\n--aggregation \u003cmode\u003e    fixed|sliding (default: fixed)\n--auto-update           Enable automatic daily updates (default: true)\n--debug                 Enable debug logging to /tmp/claude-statusline.log\n--show-context          Show context window usage (default: true)\n--show-tools            Show tool activity (default: true)\n--show-agents           Show agent activity (default: true)\n--show-todos            Show todo progress (default: true)\n--show-duration         Show session duration (default: true)\n--version               Show version info\n--update                Download and install the latest version\n```\n\n**Auto-updates:** By default, the statusline checks for updates once per day (with ±2 hour jitter to avoid server load). If a new version is available, it automatically downloads and installs it in the background. You can disable this with `--auto-update=false` or `CLAUDE_STATUS_AUTO_UPDATE=false`.\n\n## How It Works\n\n1. **Git info**: Runs `git` commands to get branch and status\n2. **Model \u0026 context**: Receives current model and context window via stdin JSON from Claude Code\n3. **Credentials**: Reads from `~/.claude/credentials.json`, falls back to system keychain\n4. **API usage**: Fetches from Anthropic's OAuth API (cached)\n5. **Costs**: Parses `~/.claude/projects/*/*.jsonl` logs (incremental, cached)\n6. **Activity**: Parses transcript JSONL for tools, agents, todos, and session start\n\n## Supported Platforms\n\nPre-built binaries are available for:\n\n- macOS (Intel and Apple Silicon)\n- Linux (x64 and ARM64)\n- Windows (x64 and ARM64)\n\n## Acknowledgments\n\nInspired by [gabriel-dehan/claude_monitor_statusline](https://github.com/gabriel-dehan/claude_monitor_statusline) and [jarrodwatts/claude-hud](https://github.com/jarrodwatts/claude-hud).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferwint%2Fclaude-code-statusline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferwint%2Fclaude-code-statusline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferwint%2Fclaude-code-statusline/lists"}