> ## Documentation Index
> Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Bedrock

> Access Claude, Llama, Titan, and other foundation models via AWS Bedrock. Enterprise-grade with VPC support and AWS IAM auth.

AWS Bedrock provides managed access to foundation models from Anthropic, Meta, Amazon, and others. It integrates with AWS IAM, VPC, CloudWatch, and other AWS services for enterprise deployments.

## Supported Models

| Model | Bedrock ID | Provider | Notes |
| - | - | - | - |
| Claude Sonnet 3.5 v2 | `anthropic.claude-3-5-sonnet-20241022-v2:0` | Anthropic | Default |
| Claude Haiku 3.5 | `anthropic.claude-3-5-haiku-20241022-v1:0` | Anthropic | Fast/cheap |
| Llama 3.1 70B | `meta.llama3-1-70b-instruct-v1:0` | Meta | Open-source |
| Titan Text G1 | `amazon.titan-text-express-v1` | Amazon | Native AWS |

## Setup

**1. Enable models in AWS Console**

Go to **AWS Console > Bedrock > Model access** and request access to the models you need.

**2. Create IAM credentials**

Create an IAM user or role with the `AmazonBedrockFullAccess` policy (or a scoped policy for specific models).

**3. Set environment variables**

```bash theme={null}
export AWS_ACCESS_KEY_ID=AKIA...
export AWS_SECRET_ACCESS_KEY=...
export AWS_REGION=us-east-1
```

Or use an IAM role (EC2 instance profile, ECS task role, etc.) - no keys needed.

**4. Configure profClaw**

```bash theme={null}
# profClaw auto-detects AWS credentials from environment
profclaw config provider add bedrock
profclaw doctor --provider bedrock
```

## Environment Variables

**AWS\_ACCESS\_KEY\_ID** `string`

AWS access key ID. Not needed when using IAM roles.

**AWS\_SECRET\_ACCESS\_KEY** `string`

AWS secret access key. Not needed when using IAM roles.

**AWS\_REGION** `string`

AWS region where your Bedrock models are available (e.g., `us-east-1`, `eu-west-1`). Defaults to `us-east-1`.

**AWS\_SESSION\_TOKEN** `string`

Temporary session token for STS-based credentials.

## Configuration Example

> [tab] .env (IAM user)
>
> ```bash theme={null}
> AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
> AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
> AWS_REGION=us-east-1
> ```

> [tab] IAM Role (EC2/ECS)
>
> ```bash theme={null}
> # No credentials needed - profClaw uses the instance/task role
> AWS_REGION=us-east-1
> ```

> [tab] settings.yml
>
> ```yaml theme={null}
> providers:
>   bedrock:
>     region: "${AWS_REGION}"
>     # API keys not needed if using IAM roles
> ```

## Model Aliases

| Alias | Bedrock Model ID |
| - | - |
| `bedrock` | anthropic.claude-3-5-sonnet-20241022-v2:0 |
| `bedrock-haiku` | anthropic.claude-3-5-haiku-20241022-v1:0 |
| `bedrock-llama` | meta.llama3-1-70b-instruct-v1:0 |

## Usage Examples

```bash CLI theme={null}
profclaw chat --model bedrock "Review this security policy"
profclaw chat --model bedrock-haiku "Quick summarization task"
profclaw chat --model bedrock-llama "Open-source model analysis"

# Use any Bedrock model directly
profclaw chat --model bedrock/amazon.titan-text-express-v1 "Hello"
```

```typescript SDK theme={null}
import { chat } from 'profclaw';

const response = await chat("Analyze this CloudFormation template", {
  model: "bedrock",
});
```

## Notes

* Bedrock is stable and recommended for enterprise AWS-native deployments.
* Bedrock pricing is per-token, similar to direct API pricing, plus AWS fees.
* Supports VPC endpoints for fully private traffic (no internet required).
* Use AWS SCP (Service Control Policies) to restrict which models are accessible.
* Cross-region inference is supported - specify a different region per request if needed.

## Related

* [AI Providers Overview](https://docs.profclaw.ai/ai-providers/overview.md) - Compare all 37 supported providers
* [Azure OpenAI](https://docs.profclaw.ai/ai-providers/azure-openai.md) - Microsoft Azure alternative for enterprise
* [Anthropic](https://docs.profclaw.ai/ai-providers/anthropic.md) - Direct Anthropic API for lower complexity
* [profclaw provider](https://docs.profclaw.ai/cli/provider.md) - Add and test providers from the CLI


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.