e1940769de
* feat: add bedrock + vertex optional extras with install docs and import hints (#574) Declare [project.optional-dependencies] with vertex (google-auth) and bedrock (boto3) extras so "strix-agent[vertex]" / "strix-agent[bedrock]" install the provider SDKs. Add an Installation section to the Bedrock docs mirroring Vertex, and a _provider_import_hint helper in warm_up_llm that surfaces a pip-install hint when a provider dependency is missing. Fixes #574, #573 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(providers): use pipx in install hint to match docs A pipx-installed strix can't add an extra with 'pip install' (wrong env); mirror the documented 'pipx install "strix-agent[...]"' command. Addresses Greptile review.
56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
---
|
|
title: "AWS Bedrock"
|
|
description: "Configure Strix with models via AWS Bedrock"
|
|
---
|
|
|
|
## Installation
|
|
|
|
Bedrock requires the AWS SDK dependency. Install Strix with the bedrock extra:
|
|
|
|
```bash
|
|
pipx install "strix-agent[bedrock]"
|
|
```
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
export STRIX_LLM="bedrock/anthropic.claude-4-5-sonnet-20251022-v1:0"
|
|
```
|
|
|
|
No API key required—uses AWS credentials from environment.
|
|
|
|
## Authentication
|
|
|
|
### Option 1: AWS CLI Profile
|
|
|
|
```bash
|
|
export AWS_PROFILE="your-profile"
|
|
export AWS_REGION="us-east-1"
|
|
```
|
|
|
|
### Option 2: Access Keys
|
|
|
|
```bash
|
|
export AWS_ACCESS_KEY_ID="AKIA..."
|
|
export AWS_SECRET_ACCESS_KEY="..."
|
|
export AWS_REGION="us-east-1"
|
|
```
|
|
|
|
### Option 3: IAM Role (EC2/ECS)
|
|
|
|
Automatically uses instance role credentials.
|
|
|
|
## Available Models
|
|
|
|
| Model | Description |
|
|
|-------|-------------|
|
|
| `bedrock/anthropic.claude-4-5-sonnet-20251022-v1:0` | Claude 4.5 Sonnet |
|
|
| `bedrock/anthropic.claude-4-5-opus-20251022-v1:0` | Claude 4.5 Opus |
|
|
| `bedrock/anthropic.claude-4-5-haiku-20251022-v1:0` | Claude 4.5 Haiku |
|
|
| `bedrock/amazon.titan-text-premier-v2:0` | Amazon Titan Premier v2 |
|
|
|
|
## Prerequisites
|
|
|
|
1. Enable model access in the AWS Bedrock console
|
|
2. Ensure your IAM role/user has `bedrock:InvokeModel` permission
|