[BUG] Bedrock - Could not resolve authentication method
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I am using the latest Claude Code extension v2.0.29 in Cursor, with Amazon Bedrock provider. The GUI Claude Code cannot be logined, but the terminal version works fine.
What Should Happen?
It should behave like old v2.0.14 and correctly authenticate and work.
Error Messages/Logs
2025-10-30 16:17:14.546 [info] From claude: [ERROR] "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 uy.validateHeaders (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:357:930)\n at uy.buildHeaders (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:357:8412)\n at async uy.buildRequest (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:357:7470)\n at async uy.makeRequest (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:357:3309)\n at async FFA (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:1311:8767)\n at async DzA (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:3345:1031)\n at async xA1 (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:3345:1240)\n at async Pb2 (file:///root/.cursor-server/extensions/anthropic.claude-code-2.0.29-universal/resources/claude-code/cli.js:3355:531)"
Steps to Reproduce
Put the env in the settings.json
"claudeCode.environmentVariables": [
{"name": "CLAUDE_CODE_USE_BEDROCK", "value": "1"},
{"name": "AWS_REGION", "value": "xxxxx"},
{"name": "AWS_ACCESS_KEY_ID", "value": "xxxxxxxxxxxxxxxxxxx"},
{"name": "AWS_SECRET_ACCESS_KEY", "value": "xxxxxxxx"}
]
i note that the old configuration key is "claude-code.environmentVariables", which is not recognized in the latest version and becomes "claudeCode.environmentVariables"
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.0.14
Claude Code Version
v2.0.29
Platform
AWS Bedrock
Operating System
Windows
Terminal/Shell
Cursor
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗