This guide covers setting up, troubleshooting, and managing Claude Code with AWS Bedrock at YourCompany.
Windows Users: The setup wizard below is for macOS/Linux. See the Windows Setup Guide for Windows-specific instructions.
Run the setup wizard:
devorch setup-bedrockThis interactive wizard will:
- Install Homebrew (macOS, if needed)
- Install Claude Code
- Install AWS CLI
- Configure AWS SSO for YourCompany Bedrock
- Let you select your preferred AWS region and Claude model
Prerequisites:
- Must be part of
bedrock-usergroup in AWS - Request access in #access-now on Slack if needed
When to use:
- First-time setup for Claude Code with AWS Bedrock
- After fresh macOS install
- Setting up a new machine
What it does:
- Checks/installs dependencies: Homebrew, Claude Code, AWS CLI
- Configures AWS SSO: Creates
~/.aws/configwithsso-bedrockprofile - Configures Claude Code: Sets up
.claude/settings.local.jsonwith Bedrock environment variables
Options:
devorch setup-bedrock # Interactive mode
devorch setup-bedrock --ci # Non-interactive (for automation)When to use:
- Switching to a different Claude model (e.g., Sonnet → Opus)
- Changing AWS region (e.g., eu-west-1 → us-east-1)
- Testing different model capabilities
What it does:
- Prompts you to select a new AWS region
- Fetches available Claude models from Bedrock
- Lets you choose from the latest models with helpful descriptions
- Updates your Claude Code settings with the new model/region
Model tiers:
- Sonnet (Recommended) - Balanced performance and cost
- Opus - Most capable, best for complex reasoning and planning
- Haiku - Fast and cost-effective for simple tasks
Example:
devorch switch-model
# Select region: EU (Ireland)
# Select model: Claude Sonnet 4.5 (Recommended)
# ✓ Settings updated!When to use:
- Claude Code won't start or shows authentication errors
- "Credentials expired" or SSO errors
- Need to share configuration with support
What it does:
- Checks AWS config: Validates
~/.aws/confighas correct SSO settings - Checks Claude Code settings: Verifies Bedrock is enabled
- Tests AWS credentials: Runs
aws sts get-caller-identity - Checks cache: Reports AWS credential cache status
- Offers fixes: Can login to SSO or clear stale cache
Example output:
📁 Checking AWS configuration...
✅ AWS Config File: Found at /Users/you/.aws/config
✅ sso-bedrock Profile: Profile found
✅ SSO Start URL: https://d-93677e566e.awsapps.com/start
✅ SSO Role Name: bedrock-user
🤖 Checking Claude Code settings...
✅ Claude Code Settings: Bedrock enabled in Claude Code
✅ Claude Model: claude-sonnet-4-5-20250929-v1:0
🔐 Testing AWS credentials...
✅ AWS Credentials: Valid credentials found
✅ AWS Role: Using bedrock-user role
📂 Checking AWS cache...
✅ AWS Cache: CLI cache: 3 files, SSO cache: 2 files
If issues are found:
- The command shows specific errors and suggests fixes
- You can login to SSO directly from the debug command
- You can clear stale cache if credentials are invalid
Your AWS SSO session has expired.
Solution:
# Option 1: Run debug and login from there
devorch debug-bedrock
# Answer "Yes" when asked to login
# Option 2: Login directly
aws sso login --profile sso-bedrockYour AWS config has an old or wrong SSO URL.
Solution:
# Re-run setup to fix
devorch setup-bedrockAWS config doesn't have the required profile.
Solution:
devorch setup-bedrockSometimes old cached credentials cause problems.
Solution:
devorch debug-bedrock
# Answer "Yes" when asked to clear cache
# Then login againThe model you selected might not be available in your region.
Solution:
devorch switch-model
# Select a different region or modelThe setup creates/updates ~/.aws/config with a sso-bedrock profile:
[profile sso-bedrock]
sso_start_url = https://d-93677e566e.awsapps.com/start
sso_region = eu-west-1
sso_account_id = 951719175506
sso_role_name = bedrock-user
region = eu-west-1Settings are stored based on your context:
- In a git repo:
.claude/settings.local.json(project-level) - Outside a git repo:
~/.claude/settings.json(user-level)
Example settings:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"awsAuthRefresh": "aws sso login --profile sso-bedrock",
"env": {
"AWS_PROFILE": "sso-bedrock",
"AWS_REGION": "eu-west-1",
"CLAUDE_CODE_USE_BEDROCK": "1",
"ANTHROPIC_MODEL": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0"
}
}| Region | Code |
|---|---|
| EU (Frankfurt) | eu-west-1 |
| US East (N. Virginia) | us-east-1 |
Q: How do I know if I have Bedrock access?
Run devorch debug-bedrock. If you see errors about permissions, you need to request access in #access-now on Slack.
Q: Which Claude model should I use?
- Sonnet (Recommended) - Best balance of speed and capability
- Opus - Most capable, best for complex reasoning and planning
- Haiku - Fast and cost-effective for simple tasks
Q: Can I use multiple profiles?
Yes, but devorch commands use the sso-bedrock profile. For other profiles, configure them manually in ~/.aws/config.
Q: How often do I need to login?
AWS SSO sessions typically last 8-12 hours. When they expire, Claude Code will prompt you to refresh (or you'll see auth errors).
Q: Where can I get help?
- Run
devorch debug-bedrockand share the output - Ask in #ai-native-pdlc on Slack
- Quick Start - Get started with devorch
- Developer's Guide - Development workflows
- Designer's Guide - Design-focused workflows
- Command Reference - All commands
