Skip to content

Commit 921a064

Browse files
authored
Merge pull request #251 from kagent-dev/adb-bedrock
docs: Add Bedrock to providers
2 parents cd3a3d6 + b5cc40b commit 921a064

File tree

10 files changed

+88
-6
lines changed

10 files changed

+88
-6
lines changed

public/sitemap.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@
217217
<priority>0.8</priority>
218218
</url>
219219

220+
<url>
221+
<loc>https://kagent.dev/docs/kagent/supported-providers/amazon-bedrock</loc>
222+
<lastmod>2025-10-21</lastmod>
223+
<changefreq>weekly</changefreq>
224+
<priority>0.8</priority>
225+
</url>
226+
220227
<url>
221228
<loc>https://kagent.dev/docs/kagent/supported-providers/anthropic</loc>
222229
<lastmod>2025-10-21</lastmod>
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: "Amazon Bedrock"
3+
pageOrder: 1
4+
description: "Use Amazon Bedrock models with kagent via the OpenAI Chat Completions API."
5+
---
6+
7+
export const metadata = {
8+
title: "Amazon Bedrock",
9+
description: "Use Amazon Bedrock models with kagent via the OpenAI Chat Completions API.",
10+
author: "kagent.dev"
11+
};
12+
13+
# Amazon Bedrock
14+
15+
You can use Amazon Bedrock models with kagent by leveraging AWS Bedrock's [OpenAI Chat Completions API](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-chat-completions.html).
16+
17+
## Step 1: Prepare your AWS details
18+
19+
1. Follow the [AWS Bedrock API keys guide](https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started-api-keys.html) to create the API key needed for authentication.
20+
21+
2. Choose the AWS region and Bedrock model you want to use. Refer to the [AWS Bedrock supported models documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html).
22+
- Example Regions: `us-west-2` or `us-east-1`
23+
- Example model IDs: `amazon.titan-text-express-v1` or `openai.gpt-oss-20b-1:0`. Ensure your AWS account has access to the chosen model. Some models, like Anthropic models, may require additional access controls. For more information, see the [AWS Bedrock model access docs](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).
24+
25+
3. Save your AWS API key as an environment variable.
26+
27+
```bash
28+
export AWS_API_KEY=<your-aws-api-key>
29+
```
30+
31+
4. Create a Kubernetes secret that stores your AWS API key in the same namespace as your agent, typically `kagent`.
32+
33+
```bash
34+
kubectl create secret generic kagent-bedrock -n kagent --from-literal AWS_API_KEY=$AWS_API_KEY
35+
```
36+
37+
## Step 2: Create the ModelConfig
38+
39+
1. Create a ModelConfig resource that uses the OpenAI-compatible API interface.
40+
41+
```yaml
42+
kubectl apply -f - <<EOF
43+
apiVersion: kagent.dev/v1alpha2
44+
kind: ModelConfig
45+
metadata:
46+
name: bedrock-config
47+
namespace: kagent
48+
spec:
49+
apiKeySecret: kagent-bedrock
50+
apiKeySecretKey: AWS_API_KEY
51+
model: amazon.titan-text-express-v1
52+
provider: OpenAI
53+
openAI:
54+
baseUrl: "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1"
55+
EOF
56+
```
57+
58+
| Setting | Description |
59+
| --- | --- |
60+
| `apiKeySecret` | The name of the Kubernetes secret storing your AWS API key. |
61+
| `apiKeySecretKey` | The key in the secret that stores your AWS API key. |
62+
| `model` | The Bedrock model ID to use, such as `amazon.titan-text-express-v1` or `openai.gpt-oss-20b-1:0`. |
63+
| `provider` | Set to `OpenAI` to use the OpenAI-compatible API interface. |
64+
| `openAI.baseUrl` | The Bedrock OpenAI-compatible endpoint URL for your chosen region. The `baseUrl` format is: `https://bedrock-runtime.<region>.amazonaws.com/openai/v1`. |
65+
66+
## Next Steps
67+
68+
Now that you configured your Bedrock model, you can [create or update an agent](https://kagent.dev/docs/kagent/getting-started/first-agent) to use this model configuration.

src/app/docs/kagent/supported-providers/anthropic/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Anthropic"
3-
pageOrder: 1
3+
pageOrder: 2
44
description: "Learn how to configure Anthropic models for kagent."
55
---
66

src/app/docs/kagent/supported-providers/azure-openai/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Azure OpenAI"
3-
pageOrder: 2
3+
pageOrder: 3
44
description: "Learn how to configure Azure OpenAI models in kagent."
55
---
66

src/app/docs/kagent/supported-providers/byo-openai/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "BYO OpenAI-compatible model"
3-
pageOrder: 7
3+
pageOrder: 8
44
description: "Bring your own OpenAI-compatible model to kagent."
55
---
66

src/app/docs/kagent/supported-providers/google-vertexai/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Google Vertex AI"
3-
pageOrder: 3
3+
pageOrder: 5
44
description: "Learn how to configure Google Vertex AI models in kagent."
55
---
66

src/app/docs/kagent/supported-providers/ollama/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Ollama"
3-
pageOrder: 5
3+
pageOrder: 6
44
description: "Learn how to configure Ollama models in kagent."
55
---
66

src/app/docs/kagent/supported-providers/openai/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "OpenAI"
3-
pageOrder: 6
3+
pageOrder: 7
44
description: "Learn how to configure OpenAI models in kagent."
55
---
66

src/app/docs/kagent/supported-providers/page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ import QuickLink from '@/components/quick-link';
1919
</div>
2020

2121
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-12">
22+
<QuickLink title="Amazon Bedrock" description="Learn how to configure Amazon Bedrock models for kagent." href="/docs/kagent/supported-providers/amazon-bedrock" />
2223
<QuickLink title="Anthropic" description="Learn how to configure Anthropic models for kagent." href="/docs/kagent/supported-providers/anthropic" />
2324
<QuickLink title="Azure OpenAI" description="Learn how to configure Azure OpenAI models for kagent." href="/docs/kagent/supported-providers/azure-openai" />
2425
<QuickLink title="OpenAI" description="Learn how to configure OpenAI models for kagent." href="/docs/kagent/supported-providers/openai" />
2526
<QuickLink title="Ollama" description="Learn how to configure Ollama models for kagent." href="/docs/kagent/supported-providers/ollama" />
2627
<QuickLink title="Gemini" description="Learn how to configure Gemini models for kagent." href="/docs/kagent/supported-providers/gemini" />
2728
<QuickLink title="Google Vertex AI" description="Learn how to configure Google Vertex AI models for kagent." href="/docs/kagent/supported-providers/google-vertexai" />
29+
<QuickLink title="BYO OpenAI-compatible model" description="Learn how to configure BYO OpenAI-compatible models for kagent." href="/docs/kagent/supported-providers/byo-openai" />
2830
</div>
2931
</div>
3032

src/config/navigation.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@
121121
"href": "/docs/kagent/supported-providers/openai",
122122
"description": "Learn how to configure OpenAI models in kagent."
123123
},
124+
{
125+
"title": "Amazon Bedrock",
126+
"href": "/docs/kagent/supported-providers/amazon-bedrock",
127+
"description": "Use Amazon Bedrock models with kagent via the OpenAI Chat Completions API."
128+
},
124129
{
125130
"title": "BYO OpenAI-compatible model",
126131
"href": "/docs/kagent/supported-providers/byo-openai",

0 commit comments

Comments
 (0)