Invalid API key · Please run /login
Resolved 💬 11 comments Opened Aug 5, 2025 by titofebus Closed Feb 3, 2026
Bug Description
I'm getting "Invalid API Key" even though I just logged in again, and again.. this seems to be only happening on one computer I SSH into. I have logged out and logged back in and restarted the computer. When I first got the error I was in the middle of a conversation and when i exited out it said I had consumed 99$ of api even though i am on the 200$ max plan.. also when logging in to check my api usage, it all says 0 (correctly)
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.69
- Feedback ID:
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:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1270:6454\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-05T21:49:53.163Z"}]This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗