Invalid API key · Please run /login

Resolved 💬 5 comments Opened Jun 5, 2025 by oppianmatt Closed Jun 5, 2025

Bug Description
/login command not found

Environment Info

  • Platform: macos
  • Terminal: cursor
  • Version: 1.0.11
  • Feedback ID:

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:984:15)\n    at wrappedFn (node:internal/errors:538:14)\n    at checkExecSyncError (node:child_process:891:11)\n    at execSync (node:child_process:963:15)\n    at JZ (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:683:2402)\n    at file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:11763\n    at Q (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n    at LU (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:10909)\n    at HG (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:10355)\n    at XK (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1405:6135)","timestamp":"2025-06-05T08:25:10.359Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-05T08:25:10.460Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-05T08:25:10.462Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-05T08:25:10.463Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-05T08:25:10.464Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-05T08:25:10.464Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344","timestamp":"2025-06-05T08:25:10.753Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1382:911)\n    at Jw.buildHeaders (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1382:8020)\n    at Jw.buildRequest (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1382:7101)\n    at Jw.makeRequest (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1382:3255)\n    at async ve.showErrors (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1654:20326)\n    at async ve (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1654:12078)\n    at async bz2 (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1654:20189)\n    at async file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1654:16876\n    at async Ro1 (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1654:5204)\n    at async fd (file:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1654:16846)","timestamp":"2025-06-05T08:25:17.928Z"},{"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:///Users/mj/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:5344\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-05T08:25:45.283Z"}]

View original on GitHub ↗

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