Skip to main content
Use Claude models through AWS Bedrock. This provides a native Claude integration optimized for AWS infrastructure. We recommend experimenting to find the best-suited model for your use-case. Here are some general recommendations:
  • anthropic.claude-sonnet-4-20250514-v1:0 model is their most capable model (Claude Sonnet 4).
  • anthropic.claude-3-5-sonnet-20241022-v2:0 model is good for most use-cases and supports image input.
  • anthropic.claude-3-5-haiku-20241022-v2:0 model is their fastest model.

Authentication

AWS Claude supports three authentication methods: Use the AWS Bedrock API key for simplified authentication:
Or pass them directly to the model:

Method 2: Access Key and Secret Key

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 3: Boto3 Session

Use a pre-configured boto3 Session for advanced authentication scenarios:
The authentication methods are checked in this order: Session → API Key → Access Key/Secret Key. The first available method will be used.

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.