Skip to content

feat(bedrock): add support for AWS_BEARER_TOKEN_BEDROCK#1147

Closed
Ashutosh0x wants to merge 2 commits intoanthropics:mainfrom
Ashutosh0x:fix/bedrock-bearer-auth
Closed

feat(bedrock): add support for AWS_BEARER_TOKEN_BEDROCK#1147
Ashutosh0x wants to merge 2 commits intoanthropics:mainfrom
Ashutosh0x:fix/bedrock-bearer-auth

Conversation

@Ashutosh0x
Copy link
Copy Markdown

@Ashutosh0x Ashutosh0x commented Jan 22, 2026

Fixes #1079.

This PR adds support for Bearer Token authentication in the AnthropicBedrock client.

Changes

  • Added aws_bearer_token parameter to AnthropicBedrock and AsyncAnthropicBedrock.
  • Automatically checks for the AWS_BEARER_TOKEN_BEDROCK environment variable.
  • Uses Authorization: Bearer header if a bearer token is provided, skipping SigV4 authentication.

Verification

  • Verified with verify_bedrock_auth.py by checking request preparation and environment variable handling.

@karpetrosyan
Copy link
Copy Markdown
Collaborator

I saw many duplicate PRs opened by you.
We appreciate your contributions, but if we already have a PR resolving an issue, we don’t need a second one—especially when it’s essentially the same as the first.
Closing this as it's the duplicate of #1080

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.

AnthropicBedrock: AWS_BEARER_TOKEN_BEDROCK env var not supported

2 participants