Skip to content

Conversation

@Ashutosh0x
Copy link

@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.

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

1 participant