⌨️AWS_BEARER_TOKEN_BEDROCK
Also known as Amazon Bedrock API key
It gives Claude Code a Bedrock API key to sign in with.
Think of it like
It is like one key card in place of a whole ring of keys.
Example
Lucy wants to try Claude Code on Bedrock today, without setting up an AWS profile. She makes a Bedrock API key and sets this, and it works.
Why it matters
It is the fastest way onto Bedrock, with nothing else to set up.
Definition
Example code
bash
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_BEARER_TOKEN_BEDROCK=your-bedrock-api-key
export AWS_REGION=us-east-1
claudeCommon mistake
Key takeaways
- 1One key. No profile needed.
- 2Wins over AWS keys. When set.
- 3Needs USE_BEDROCK. And a region.