{"id":51026358,"url":"https://github.com/norandom/claude-usage-cli","last_synced_at":"2026-06-21T20:01:15.932Z","repository":{"id":355074388,"uuid":"1226670504","full_name":"norandom/claude-usage-cli","owner":"norandom","description":"Claude usage tracker for the command line (curl with Cloudflare TLS fingerprint bypass)","archived":false,"fork":false,"pushed_at":"2026-05-01T17:41:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T19:27:42.770Z","etag":null,"topics":["claude","scraper"],"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/norandom.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-05-01T17:35:16.000Z","updated_at":"2026-05-01T18:40:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/norandom/claude-usage-cli","commit_stats":null,"previous_names":["norandom/claude-usage-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/norandom/claude-usage-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norandom%2Fclaude-usage-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norandom%2Fclaude-usage-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norandom%2Fclaude-usage-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norandom%2Fclaude-usage-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norandom","download_url":"https://codeload.github.com/norandom/claude-usage-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norandom%2Fclaude-usage-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"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-06-21T02:00:05.568Z","response_time":54,"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":["claude","scraper"],"created_at":"2026-06-21T20:01:15.074Z","updated_at":"2026-06-21T20:01:15.882Z","avatar_url":"https://github.com/norandom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-usage-cli\n\nPrint your Claude.ai usage from the command line.\n\nClaude.ai has a private endpoint at `/api/organizations/{uuid}/usage`. These scripts call it and route the request through `curl-impersonate` so Cloudflare lets it through.\n\n## Requirements\n\n- bash\n- jq\n- docker (pulls `lwthiker/curl-impersonate:0.6-chrome` on first run)\n- A Claude.ai account\n- The [Cookie Editor](https://cookie-editor.com/) browser extension\n\n## Setup\n\n1. Sign in to https://claude.ai.\n2. Open Cookie Editor on the claude.ai tab, Export → JSON, save the result as `cookie.json` next to the scripts.\n\nThe scripts read `sessionKey` and the other claude.ai cookies straight from that file (Cloudflare wants the whole jar, not just the session key).\n\n## Usage\n\nList your organizations:\n\n    ./orgs.sh\n\nUsage for your default org (uses the `lastActiveOrg` cookie):\n\n    ./usage.sh\n\nJust one number (handy for status bars and shell prompts):\n\n    ./usage.sh --5h         # 93.0%\n    ./usage.sh --7d-total   # 32.0%\n\nUsage for a specific org:\n\n    ./usage.sh \u003corg-uuid\u003e\n\nExample output:\n\n    Org: name@example.com's Organization\n         9b90e33b-fac4-4762-9f2e-8f92152654fb\n\n    5-hour       : 92.0% (resets 2026-05-01T20:00:00Z)\n    7-day total  : 32.0% (resets 2026-05-04T17:00:00Z)\n    7-day Sonnet : 0.0%\n\n## Notes\n\n`cookie.json` holds a live session token and is gitignored. Don't paste it anywhere public.\n\nWhen the scripts start returning 401, the cookie has expired — re-export it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorandom%2Fclaude-usage-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorandom%2Fclaude-usage-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorandom%2Fclaude-usage-cli/lists"}