⌨️CLAUDE_CODE_USE_BEDROCK
Also known as CLAUDE_CODE_USE_VERTEX, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_MANTLE, CLAUDE_CODE_USE_ANTHROPIC_AWS, CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD, CLAUDE_CODE_USE_* variables
Set to 1, it runs Claude Code on Amazon Bedrock.
Think of it like
It is like you choose which shop to buy the same toy from.
Example
Jack's firm buys all its AI from AWS. He sets this to 1, and each request goes through the firm's Bedrock account.
Why it matters
A firm can use Claude Code under the cloud deal and bills it has now.
Definition
Example code
bash
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
claudeCommon mistake
Key takeaways
- 1One per cloud. Bedrock, Google, Foundry.
- 2Set to 1. To turn it on.
- 3First in line. Beats API keys.