This guide covers setting up Claude Code with AWS Bedrock on Windows.
Note: The
devorch setup-bedrockwizard is designed for macOS/Linux. Windows users should follow these manual steps instead.
- Must be part of
bedrock-usergroup in AWS - Request access in #access-now on Slack if needed
Download and run the AWS CLI installer:
After installation, open a new PowerShell window and verify:
aws --versionRun the SSO configuration:
aws configure ssoWhen prompted, enter these values:
| Prompt | Value |
|---|---|
| SSO session name | bedrock |
| SSO start URL | https://d-93677e566e.awsapps.com/start |
| SSO region | eu-west-1 |
| SSO registration scopes | (press Enter for default) |
A browser window will open for authentication. Complete the login, then return to PowerShell.
When prompted to select an account and role:
- Select the account with Bedrock access
- Select the
bedrock-userrole
For the remaining prompts:
| Prompt | Value |
|---|---|
| CLI default client Region | eu-west-1 |
| CLI default output format | json |
| CLI profile name | sso-bedrock |
Download and install Node.js LTS:
After installation, open a new PowerShell window and verify:
node --version
npm --versionnpm install -g @anthropic-ai/claude-codeVerify installation:
claude --versionOpen your PowerShell profile for editing:
notepad $PROFILEIf the file doesn't exist, create it first:
New-Item -Path $PROFILE -ItemType File -Force
notepad $PROFILEAdd these lines to the file:
# AWS Bedrock Configuration for Claude Code
$env:AWS_PROFILE = "sso-bedrock"
$env:CLAUDE_CODE_USE_BEDROCK = "1"
$env:AWS_REGION = "eu-west-1"Save and close Notepad.
Close and reopen PowerShell for the environment variables to take effect.
aws sso login --profile sso-bedrockA browser window will open. Complete the authentication.
claudeYou're all set!
Each time you want to use Claude Code:
- Open PowerShell
- If your SSO session expired (you'll see auth errors), run:
aws sso login --profile sso-bedrock
- Start Claude Code:
claude
AWS SSO sessions typically last 8-12 hours. When they expire, simply run aws sso login --profile sso-bedrock again.
AWS CLI isn't in your PATH. Try:
- Close and reopen PowerShell
- If still not working, reinstall AWS CLI
Node.js/npm isn't in your PATH. Try:
- Close and reopen PowerShell
- If still not working, reinstall Node.js
You may be using Command Prompt instead of PowerShell. Make sure you're using PowerShell (search for "PowerShell" in the Start menu).
- Verify you're in the
bedrock-usergroup (request access in #access-now on Slack) - Re-run SSO login:
aws sso login --profile sso-bedrock
Verify your profile is configured correctly:
echo $env:AWS_PROFILE
echo $env:CLAUDE_CODE_USE_BEDROCK
echo $env:AWS_REGIONIf empty, check that $PROFILE contains the correct settings and restart PowerShell.
To change your Claude model or AWS region, edit your PowerShell profile:
notepad $PROFILEUpdate the AWS_REGION value and add ANTHROPIC_MODEL:
$env:AWS_PROFILE = "sso-bedrock"
$env:CLAUDE_CODE_USE_BEDROCK = "1"
$env:AWS_REGION = "us-east-1" # Change region here
$env:ANTHROPIC_MODEL = "us.anthropic.claude-sonnet-4-5-20250929-v1:0" # Optional: specific modelAvailable Regions:
eu-west-1(EU Frankfurt) - Model prefix:eu.us-east-1(US East) - Model prefix:us.
- Run
aws sts get-caller-identity --profile sso-bedrockto verify your AWS credentials - Ask in #ai-native-pdlc on Slack
- For access issues, request in #access-now on Slack