What problem does it solve?
Setting up AWS Bedrock authentication for Claude Code in Replit can be confusing, especially when you need the right environment variables, region, and credentials method without relying on local AWS CLI configuration.
Core Features & Use Cases
- Bedrock API key setup for Replit: Configure
AWS_BEARER_TOKEN_BEDROCK, CLAUDE_CODE_USE_BEDROCK, and AWS_REGION using Replit Secrets, which is the recommended approach in Replit environments.
- Alternative AWS credential methods: Support AWS access keys via
AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY (and optional AWS_SESSION_TOKEN) when API keys are not available.
- Model and region customization: Override inference targets using optional
ANTHROPIC_MODEL and ANTHROPIC_SMALL_FAST_MODEL variables, plus ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION when needed.
- Troubleshooting guidance: Diagnose common failures like missing environment variables, region/model availability errors, and prompt caching issues.
Quick Start
Add these three Replit Secrets—AWS_BEARER_TOKEN_BEDROCK, CLAUDE_CODE_USE_BEDROCK, and AWS_REGION—and then restart Claude Code.