@@ -15,7 +15,7 @@ agents with specialized capabilities and tools. It features:
1515- ** 📦 Agent distribution** via Docker registry integration
1616- ** 🔒 Security-first design** with proper client scoping and resource isolation
1717- ** ⚡ Event-driven streaming** for real-time interactions
18- - ** 🧠 Multi-model support** (OpenAI, Anthropic, Gemini, [ Docker Model Runner (DMR)] ( https://docs.docker.com/ai/model-runner/ ) )
18+ - ** 🧠 Multi-model support** (OpenAI, Anthropic, Gemini, Amazon Bedrock, [ Docker Model Runner (DMR)] ( https://docs.docker.com/ai/model-runner/ ) )
1919
2020
2121## Why?
@@ -193,7 +193,7 @@ cagent run ./agent.yaml /analyze
193193
194194| Property | Type | Description | Required |
195195| ---------------------| ------------| ------------------------------------------------------------------------------| ----------|
196- | ` provider ` | string | Provider: ` openai ` , ` anthropic ` , ` google ` , ` dmr ` | ✓ |
196+ | ` provider ` | string | Provider: ` openai ` , ` anthropic ` , ` google ` , ` amazon-bedrock ` , ` dmr ` | ✓ |
197197| ` model ` | string | Model name (e.g., ` gpt-4o ` , ` claude-sonnet-4-0 ` , ` gemini-2.5-flash ` ) | ✓ |
198198| ` temperature ` | float | Randomness (0.0-1.0) | ✗ |
199199| ` max_tokens ` | integer | Response length limit | ✗ |
@@ -209,7 +209,7 @@ cagent run ./agent.yaml /analyze
209209models :
210210 model_name :
211211 provider : string # Provider: openai, anthropic, google, dmr
212- model : string # Model name: gpt-4o, claude-3-7-sonnet-latest, gemini-2.5-flash, qwen3:4B, ...
212+ model : string # Model name: gpt-4o, claude-3-7-sonnet-latest, amazon-bedrock, gemini-2.5-flash, qwen3:4B, ...
213213 temperature : float # Randomness (0.0-1.0)
214214 max_tokens : integer # Response length limit
215215 top_p : float # Nucleus sampling (0.0-1.0)
@@ -334,6 +334,12 @@ models:
334334 provider: google
335335 model: gemini-2.5-flash
336336
337+ # Amazon Bedrock
338+ models:
339+ bedrock-claude:
340+ provider: amazon-bedrock
341+ model: anthropic.claude-3-5-sonnet-20241022-v2:0
342+
337343# Docker Model Runner (DMR)
338344models:
339345 qwen:
@@ -461,6 +467,57 @@ These options work alongside `max_tokens` (which sets `--context-size`) and `run
461467- Endpoint empty in status : ensure the Model Runner is running, or set `base_url` manually
462468- Flag parsing : if using a single string, quote properly in YAML; you can also use a list
463469
470+ # ### Amazon Bedrock provider usage
471+
472+ The `amazon-bedrock` provider enables access to various AI models hosted on AWS Bedrock, including Anthropic Claude, Amazon Titan, Meta Llama, and Mistral models.
473+
474+ **Authentication:**
475+
476+ The Bedrock provider supports two authentication methods :
477+
478+ 1. **Bearer Token** (via `AWS_BEDROCK_TOKEN` environment variable) :
479+ - Use for custom authentication services or proxy scenarios
480+ - If set, the provider uses Bearer token authentication and skips AWS Signature v4 signing
481+ - Example : ` export AWS_BEDROCK_TOKEN="your-token-here"`
482+
483+ 2. **Standard AWS Credentials** (default chain) :
484+ - Environment variables : ` AWS_ACCESS_KEY_ID` , `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`
485+ - AWS profile : ` AWS_PROFILE` environment variable or default profile in `~/.aws/credentials`
486+ - IAM role (for EC2/ECS/Lambda environments)
487+
488+ **Configuration:**
489+
490+ Basic configuration :
491+
492+ ` ` ` yaml
493+ models:
494+ bedrock-claude:
495+ provider: amazon-bedrock
496+ model: anthropic.claude-3-5-sonnet-20241022-v2:0
497+ temperature: 0.7
498+ max_tokens: 4000
499+ ` ` `
500+
501+ With custom region :
502+
503+ ` ` ` yaml
504+ models:
505+ bedrock-claude:
506+ provider: amazon-bedrock
507+ model: anthropic.claude-3-5-sonnet-20241022-v2:0
508+ provider_opts:
509+ region: us-west-2 # Optional, defaults to AWS_REGION or us-east-1
510+ ` ` `
511+
512+ With custom endpoint (for VPC endpoints or proxies) :
513+
514+ ` ` ` yaml
515+ models:
516+ bedrock-claude:
517+ provider: amazon-bedrock
518+ model: anthropic.claude-3-5-sonnet-20241022-v2:0
519+ base_url: https://bedrock-runtime.us-east-1.amazonaws.com
520+ ` ` `
464521
465522# ## Alloy models
466523
0 commit comments