AWS Bedrock with OpenClaw

Run Claude, Llama, Titan, and more via AWS Bedrock

AWS Bedrock provides access to multiple foundation models (Claude, Llama, Titan, and others) through a single AWS API. OpenClaw can use Bedrock as a provider, so you run OpenClaw on your infra while routing LLM calls through your AWS account. Good for enterprises already on AWS, for data residency in AWS regions, or for consolidating model access via IAM.

Models

Bedrock supports multiple model families. Common options:

  • Claude — Anthropic Claude models (Sonnet, Haiku, etc.) via Bedrock
  • Llama — Meta Llama models
  • Amazon Titan — Amazon's Titan family
  • Others — Bedrock's catalog expands; check AWS docs for current models

Model IDs follow Bedrock's format (e.g. anthropic.claude-3-sonnet-20240229-v1:0). Configure in Gateway config with the Bedrock provider.

Authentication

Bedrock uses AWS IAM credentials. Configure via:

  • Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION)
  • ~/.aws/credentials
  • IAM roles (when running on EC2, ECS, Lambda)

Ensure your IAM user or role has bedrock:InvokeModel (and related) permissions. See AWS Bedrock docs.

Basic Configuration

Bedrock config
{
  "agent": {
    "model": "anthropic.claude-3-sonnet-20240229-v1:0",
    "provider": "bedrock"
  }
}

Set AWS_REGION (e.g. us-east-1). Model IDs vary; check Bedrock model IDs. See OpenClaw provider docs for full Bedrock options.

Why Bedrock for OpenClaw

  • AWS ecosystem — Native IAM, VPC, logging
  • Data residency — Choose AWS region for compliance
  • Multi-model — Claude, Llama, Titan from one integration
  • Enterprise — Fits orgs already on AWS

Related