Invalid API key · Please run /login
Resolved 💬 3 comments Opened Aug 29, 2025 by doriancuentas Closed Sep 2, 2025
Bug Description
login is not working on ssh
Environment Info
- Platform: darwin
- Terminal: ssh-session
- Version: 1.0.96
- 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 JY (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:807: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:1380:1033)\n at Jh5 (/$bunfs/root/claude:1380:1211)\n at Bh5 (/$bunfs/root/claude:1380:1745)\n at Bh5 (/$bunfs/root/claude:1380:1801)","timestamp":"2025-08-29T12:17:37.671Z"},{"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 JY (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:807: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:1380:1033)\n at Jh5 (/$bunfs/root/claude:1380:1211)\n at Bh5 (/$bunfs/root/claude:1380:1745)\n at Bh5 (/$bunfs/root/claude:1380:1801)","timestamp":"2025-08-29T12:17:37.674Z"},{"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 JY (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:807:6460)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-29T12:18:18.145Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"Invalid\"\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:553:9928)\n at W (/$bunfs/root/claude:491:13280)\n at GMG (/$bunfs/root/claude:944:1928)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-29T12:18:18.147Z"},{"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 validateHeaders (/$bunfs/root/claude:816:939)\n at buildHeaders (/$bunfs/root/claude:816:8441)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-29T12:18:18.156Z"},{"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 JY (unknown:1:28)\n at <anonymous> (/$bunfs/root/claude:807:6460)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-29T12:21:11.082Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗