{"repo":"canack/claude-usage-line","free":true,"listed":false,"github":"https://github.com/canack/claude-usage-line","clone":"git clone https://github.com/canack/claude-usage-line.git","description":"Custom status line for Claude Code — rate limits, git branch, cost, diff stats","language":"TypeScript","stars":40,"topics":["ai","anthropic","claudecode"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"claude-usage-line Cross-platform Claude Code statusline — session context, 5-hour & 7-day rate limits (Pro/Max) or organization monthly cap (Enterprise) , git branch, diff stats, cost, and duration. Zero runtime dependencies, no jq required. Pro/Max output (Claude Code sends rate limits on stdin): Enterprise output (no rate limits on stdin → OAuth fallback fetches extra usage ): Minimal output (only context window provided, no fallback data yet): Prerequisites - Node.js ≥ 18 - Claude Code ≥ 2.1 For Pro/Max subscribers, rate limits is provided directly by Claude Code on stdin — no OAuth, no API keys, no network calls. For Enterprise users, stdin doesn't include rate limits , so the statusline falls back to a background OAuth call against the same endpoint Claude Code's own /usage view reads ( api.anthropic.com/api/oauth/usage ). The OAuth token is read from your existing Claude Code login (macOS keychain / secret-tool / Windows Credential Manager / /.claude/.credentials.json ). No API key needed; nothing new to configure. To opt out, set CLAUDE USAGE LINE NO FETCH=1 . Quick Start Or manually add to /.claude/settings.json : Custom bar style: Restart Claude Code and the statusline appears. How It Works The OAuth fallback path activates only when stdin doesn't carry rate limits — i.e. Pro/Max users on Claude Code 2.1+ never hit the API, while Enterprise users get the org-cap bar through a cached background fetch (60s TTL minimum, 5min default to avoid 429s). Supported stdin field","default_branch":null,"files":null,"tree":[],"storefront":"/r/canack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/canack/claude-usage-line/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}