Skip to content

feat(auth): add a Claude in Amazon Bedrock credential tier - #120

Open
bsnehanshu wants to merge 1 commit into
anthropics:mainfrom
bsnehanshu:feat/bedrock-tier
Open

bsnehanshu wants to merge 1 commit into
anthropics:mainfrom
bsnehanshu:feat/bedrock-tier

Conversation

@bsnehanshu

Copy link
Copy Markdown

Send Messages API requests to the Amazon Bedrock endpoint (bedrock-mantle.{region}.api.aws/anthropic), signed with AWS credentials or a Bedrock API key, through the Go SDK's bedrock.NewMantleClient. The tier mirrors the Claude Platform on AWS tier: --bedrock-region (ANTHROPIC_BEDROCK_REGION) or a key piped to --bedrock-api-key-stdin selects it; AWS_BEARER_TOKEN_BEDROCK is honoured as the key once selected but does not select on its own, since other Bedrock clients export it; --bedrock-base-url (ANTHROPIC_BEDROCK_MANTLE_BASE_URL) replaces the endpoint; --base-url / ANTHROPIC_BASE_URL are not used with AWS credentials. It sits at tier 7, below Claude Platform on AWS and above the implicit profile, so ANTHROPIC_AWS_API_KEY never reaches Bedrock. Bedrock serves the Messages API only; the other resources, apply and beta:worker are not available there and the README says so.

@bsnehanshu
bsnehanshu requested a review from a team as a code owner October 26, 2026 07:10
Send Messages API requests to the Amazon Bedrock endpoint
(bedrock-mantle.{region}.api.aws/anthropic), signed with AWS credentials
or a Bedrock API key, through the Go SDK's bedrock.NewMantleClient. The
tier mirrors the Claude Platform on AWS tier: --bedrock-region
(ANTHROPIC_BEDROCK_REGION) or a key piped to --bedrock-api-key-stdin
selects it; AWS_BEARER_TOKEN_BEDROCK is honoured as the key once
selected but does not select on its own, since other Bedrock clients
export it; --bedrock-base-url (ANTHROPIC_BEDROCK_MANTLE_BASE_URL)
replaces the endpoint; --base-url / ANTHROPIC_BASE_URL are not used with
AWS credentials. It sits at tier 7, below Claude Platform on AWS and
above the implicit profile, so ANTHROPIC_AWS_API_KEY never reaches
Bedrock. Bedrock serves the Messages API only; the other resources,
apply and beta:worker are not available there and the README says so.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant