Cannot run /login
Resolved 💬 2 comments Opened Jun 4, 2025 by lackita Closed Jun 4, 2025
Bug Description
I can't login, it appears as if /login is not available as a command: > /login
⎿ Invalid API key · Please run /login
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 1.0.11
- 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:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-04T20:04:14.688Z"},{"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 Jw.validateHeaders (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1382:911)\n at Jw.buildHeaders (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1382:8020)\n at Jw.buildRequest (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1382:7101)\n at Jw.makeRequest (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1382:3255)\n at async ve.showErrors (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1654:20326)\n at async ve (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1654:12078)\n at async bz2 (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1654:20189)\n at async file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1654:16876\n at async Ro1 (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1654:5204)\n at async fd (file:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1654:16846)","timestamp":"2025-06-04T20:04:18.628Z"},{"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:///home/lackita/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-04T20:05:31.917Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗