[BUG] : Cannot use AWS Bedrock with Claude Code. Getting API Error (429 Too many tokens)

Resolved 💬 13 comments Opened May 31, 2025 by neo-picasso-2112 Closed Jan 11, 2026

Environment
Platform (select one):

Anthropic API

AWS Bedrock

Google Vertex AI

Other:
Claude CLI version: 1.0.3 (Claude Code)
Operating System: MacOS 15.5
Terminal: iTerm, Warp
Bug Description
When using claude cli with sonnet 4 bedrock model, it received API Error (429 Too many tokens, please wait before trying again.) message and never gets a response

Steps to Reproduce
Run DISABLE_TELEMETRY=1 ANTHROPIC_SMALL_FAST_MODEL=us.anthropic.claude-3-5-haiku-20241022-v1:0 AWS_REGION=us-east-1 CLAUDE_CODE_USE_BEDROCK=1 DISABLE_PROMPT_CACHING=1 claude --model us.anthropic.claude-sonnet-4-20250514-v1:0

I was trialing Claude Code to see if I should pursue Claude Max subscription. I wanted to do this trial with AWS Bedrock but the experience has been so bad that I am looking to turn away from Claude Code altogether. Can someone please resolve this 429 too many tokens error pls?
429 Comes back

Expected Behavior
Expect a response from the sonnet 4 model

Actual Behavior
429 too make tokens API error

Additional Context
If I run the exact same command but use sonnet 3-7, no problems.
I have access to the sonnet 4 in AWS in the regions I use in the CLI command. I have used that model with other tools without a problem.

View original on GitHub ↗

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