[Bug] Anthropic API Error: 400 Invalid Request - Out of Extra Usage Despite Low Session/Weekly Usage
Resolved 💬 3 comments Opened Apr 8, 2026 by samror Closed Apr 11, 2026
Bug Description
I cannot use the tool on terminal error I am seeing is API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep
going."},"request_id":"req_011CZrUrJ5uKSunonJ81hAeR"} while my usage is just 1% for this session and 18% in this week, why?
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.28
- Feedback ID: cb496e37-de3d-4aaf-a603-8d53511d671c
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 uy.validateHeaders (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:930)\n at uy.buildHeaders (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:8412)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async uy.buildRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:7470)\n at async uy.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:3309)\n at async OtA.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:18888)\n at async OtA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2692:39781)\n at async ib2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:19040)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:13007\n at async Wo1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:4492)","timestamp":"2026-04-08T10:51:07.164Z"},{"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 uy.validateHeaders (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:930)\n at uy.buildHeaders (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:8412)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async uy.buildRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:7470)\n at async uy.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:3309)\n at async OtA.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:18888)\n at async OtA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2692:39781)\n at async ib2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:19040)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:13007\n at async Wo1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:4492)","timestamp":"2026-04-08T10:51:07.165Z"},{"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 uy.validateHeaders (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:930)\n at uy.buildHeaders (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:8412)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async uy.buildRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:7470)\n at async uy.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:3309)\n at async OtA.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:18888)\n at async OtA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2692:39781)\n at async ib2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:19040)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:12775\n at async Wo1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:4492)","timestamp":"2026-04-08T10:51:07.203Z"},{"error":"WiA: Insufficient permissions for global npm install.\n at Iv1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1862:998)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async yKA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1872:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2809:32485","timestamp":"2026-04-08T10:51:26.259Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrBCEV5A1ea
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗