[BUG] Simple headless prompt times out when used with Bedrock API Key
Resolved 💬 7 comments Opened Sep 19, 2025 by nbaju1 Closed Jan 9, 2026
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?
Any headless prompt with AWS Bedrock environment variables set results in the CLI hanging indefinitely.
What Should Happen?
CLI working by producing a response.
Error Messages/Logs
Steps to Reproduce
export AWS_BEARER_TOKEN_BEDROCK=bedrock-api-key-<REDACTED>
export AWS_REGION=us-east-1
export CLAUDE_CODE_USE_BEDROCK=1
claude -p "Hi Claude"
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.0.119
Platform
AWS Bedrock
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗