Open
Conversation
Add Amazon Bedrock as a provider for cc-mirror, enabling users to run Claude Code with Claude models via AWS Bedrock. ## Key Features - Native Bedrock mode via `CLAUDE_CODE_USE_BEDROCK=1` - AWS SDK credential chain authentication (no API key needed) - Model mapping like OpenRouter - users provide Bedrock model IDs - Support for regional (us.), global, and inference profile ARN formats - AWS-themed brand with orange/amber colors ## Usage ```bash npx cc-mirror quick --provider bedrock --name br \ --model-sonnet "us.anthropic.claude-sonnet-4-5-20250929-v1:0" \ --model-opus "us.anthropic.claude-opus-4-5-20251101-v1:0" \ --model-haiku "us.anthropic.claude-haiku-4-5-20251001-v1:0" ``` ## Authentication AWS credentials are resolved via the standard SDK chain: - AWS_BEARER_TOKEN_BEDROCK (highest priority) - AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY - AWS_PROFILE - Default credential chain (~/.aws/credentials, IAM roles) ## Files Changed - src/providers/index.ts - Bedrock provider definition - src/brands/bedrock.ts - AWS-themed brand preset (new) - src/brands/index.ts - Register bedrock brand - src/core/wrapper.ts - Bedrock splash art - src/cli/help.ts - Add bedrock to CLI help - test/e2e/bedrock.test.ts - Comprehensive tests (new) - Documentation updates (README, AGENTS.md, architecture) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Amazon Bedrock as a provider for cc-mirror, enabling users to use Claude models via AWS Bedrock with isolated configuration.
bedrockprovider with native AWS SDK authentication--model-*flags)Usage
Authentication
Amazon Bedrock uses native AWS SDK credential chain (no API key needed):
AWS_BEARER_TOKEN_BEDROCK- Bearer token (highest priority)AWS_ACCESS_KEY_ID+AWS_SECRET_ACCESS_KEY- Explicit credentialsAWS_SESSION_TOKEN- For temporary credentialsAWS_PROFILE- AWS profile name~/.aws/credentials, IAM roles)Implementation Details
CLAUDE_CODE_USE_BEDROCK=1to enable Claude Code's native Bedrock modeauthMode: 'none'(like mirror provider) - AWS handles authenticationrequiresModelMapping: true(like OpenRouter) - no hardcoded model IDsAWS_REGION=us-east-1(overridable)Test plan
Files Changed
src/providers/index.tssrc/brands/bedrock.tssrc/brands/index.tssrc/core/wrapper.tssrc/cli/help.tstest/e2e/bedrock.test.tstest/e2e/providers.tsREADME.mdAGENTS.mddocs/architecture/overview.md🤖 Generated with Claude Code