[Bug] setup-token forces incorrect error: 5-hour limit reached ∙ resets 3am
Resolved 💬 3 comments Opened Sep 24, 2025 by JimGaleForce Closed Jan 6, 2026
Bug Description
I did a claude setup-token in another console and all my other consoles are reporting 5-hour limit even though I'm not even close (on MAX20, having spent 22.5% of the cost/token/messages). I can't reset it except to wait.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 1.0.123
- Feedback ID: f98c6dd3-d838-45e2-be41-c57a88f04d77
Errors
[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:985:6454","timestamp":"2025-09-24T08:26:53.012Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTSuehaCCD9GLCaqt2R9t\"}\n at a9.generate (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:977:2620)\n at AP.makeStatusError (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:994:2131)\n at AP.makeRequest (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:994:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T08:27:11.050Z"},{"error":"SyntaxError: Unexpected non-whitespace character after JSON at position 1 (line 1 column 2)\n at JSON.parse (<anonymous>)\n at file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:746:9932\n at Q (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:713:13288)\n at qP2 (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1708:1804)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T08:27:11.054Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTSueibi8T88uQzk61d5M\"}\n at a9.generate (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:977:2620)\n at AP.makeStatusError (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:994:2131)\n at AP.makeRequest (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:994:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async XQB.ZY1.showErrors (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1919:33388)\n at async ZY1 (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1919:21632)\n at async XQB (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1919:33215)\n at async file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1919:27984\n at async fH0 (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1919:4362)\n at async K01 (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1919:27954)","timestamp":"2025-09-24T08:27:11.296Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTSurwSTcuYi5BewPPucW\"}\n at a9.generate (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:977:2620)\n at AP.makeStatusError (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:994:2131)\n at AP.makeRequest (file:///C:/Users/jimgale/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:994:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T08:29:57.077Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗