Skip to main content
Use Claude models through AWS Bedrock. This integration uses the Anthropic SDK’s Bedrock client. For other Bedrock foundation models, see AWS Bedrock. We recommend experimenting to find the best-suited model for your use case. Here are some general recommendations:
  • global.anthropic.claude-sonnet-5 is the latest Sonnet model (Claude Sonnet 5).
  • global.anthropic.claude-sonnet-4-5-20250929-v1:0 is good for most use cases and supports image input.
  • us.anthropic.claude-haiku-4-5-20251001-v1:0 is Anthropic’s fastest model.

Installation

Authentication

AWS Claude supports two authentication methods: Set your AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION environment variables. Get your keys from here.
Or pass them directly:

Method 2: Boto3 Session

Use a pre-configured boto3 Session for advanced authentication scenarios:
The authentication methods are checked in this order: Session → Access Key/Secret Key. The first available method will be used. AWS Bedrock API key authentication (AWS_BEDROCK_API_KEY) is not currently supported and raises an error if set.

Example

Use Claude with your Agent:
View more examples here.

Parameters

Claude (AWS) extends the Anthropic Claude model with AWS Bedrock integration and has access to most of the same parameters.