Invalid API key · Please run /login

Resolved 💬 3 comments Opened Oct 29, 2025 by alex-builds-wright Closed Nov 2, 2025

Bug Description
missing API key error when authing via SSH

Environment Info

  • Platform: darwin
  • Terminal: ssh-session
  • Version: 2.0.28
  • 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 validateHeaders (/$bunfs/root/claude:524:935)\n    at buildHeaders (/$bunfs/root/claude:524:8427)\n    at async buildRequest (/$bunfs/root/claude:524:7493)\n    at async makeRequest (/$bunfs/root/claude:524:3332)\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 R (/$bunfs/root/claude:1676:666)\n    at M88 (/$bunfs/root/claude:1676:844)\n    at k88 (/$bunfs/root/claude:1676:1374)\n    at k88 (/$bunfs/root/claude:1676:1497)","timestamp":"2025-10-29T19:12:26.554Z"},{"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:524:935)\n    at buildHeaders (/$bunfs/root/claude:524:8427)\n    at async buildRequest (/$bunfs/root/claude:524:7493)\n    at async makeRequest (/$bunfs/root/claude:524:3332)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-10-29T19:12:26.641Z"},{"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:524:935)\n    at buildHeaders (/$bunfs/root/claude:524:8427)\n    at async buildRequest (/$bunfs/root/claude:524:7493)\n    at async makeRequest (/$bunfs/root/claude:524:3332)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-10-29T19:12:26.649Z"},{"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:524:935)\n    at buildHeaders (/$bunfs/root/claude:524:8427)\n    at async buildRequest (/$bunfs/root/claude:524:7493)\n    at async makeRequest (/$bunfs/root/claude:524:3332)\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 zC8 (/$bunfs/root/claude:1858:91)\n    at find (native:1:11)\n    at A (/$bunfs/root/claude:11:15095)\n    at vX0 (/$bunfs/root/claude:2744:5287)","timestamp":"2025-10-29T19:12:27.846Z"},{"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:524:935)\n    at buildHeaders (/$bunfs/root/claude:524:8427)\n    at async buildRequest (/$bunfs/root/claude:524:7493)\n    at async makeRequest (/$bunfs/root/claude:524:3332)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-10-29T19:13:09.959Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗