Invalid API key · Please run /login
Resolved 💬 5 comments Opened Aug 12, 2025 by EricBriscoe Closed Jan 3, 2026
Bug Description
I cannot log in to my anthropic account. Every time I try to log in it says that I'm missing an API key.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.73
- 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 new sW (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:796:6460)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at execSync (node:child_process:275:109)\n at Z (/$bunfs/root/claude:1287:1572)\n at _p9 (/$bunfs/root/claude:1287:1750)\n at yp9 (/$bunfs/root/claude:1287:2284)\n at yp9 (/$bunfs/root/claude:1287:2340)","timestamp":"2025-08-12T04:47:50.500Z"},{"error":"Error: No messages to compact\n at call (/$bunfs/root/claude:2249:3779)\n at call (/$bunfs/root/claude:2249:3978)\n at uQY (/$bunfs/root/claude:2782:70)\n at uQY (/$bunfs/root/claude:2778:502)\n at hQY (/$bunfs/root/claude:2772:3525)\n at hQY (/$bunfs/root/claude:2772:4054)\n at jQY (/$bunfs/root/claude:2772:1560)\n at jQY (/$bunfs/root/claude:2772:1596)\n at nr (/$bunfs/root/claude:2772:4650)\n at nr (/$bunfs/root/claude:2772:4614)","timestamp":"2025-08-12T04:48:09.049Z"},{"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 new sW (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:796:6460)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-12T04:48:09.078Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"Invalid\"\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:526:9928)\n at W (/$bunfs/root/claude:456:13332)\n at rlG (/$bunfs/root/claude:1673:29847)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-12T04:48:09.078Z"},{"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 new sW (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:796:6460)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-12T04:48:57.418Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗