Skip to content

Commit a646dee

Browse files
Add AWS Bedrock provider documentation
- Created new documentation file for AWS Bedrock LLM provider - Added AWS Bedrock to the navigation in docs.json under Advanced Configuration > LLM Configuration > Providers - Documentation explains how to configure OpenHands to use AWS Bedrock models via OpenAI-compatible API endpoint - Includes step-by-step instructions for setting up Custom Model, Base URL, and API Key Co-authored-by: openhands <openhands@all-hands.dev>
1 parent f359641 commit a646dee

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎docs.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"group": "Providers",
7474
"pages": [
7575
"openhands/usage/llms/openhands-llms",
76+
"openhands/usage/llms/aws-bedrock",
7677
"openhands/usage/llms/azure-llms",
7778
"openhands/usage/llms/google-llms",
7879
"openhands/usage/llms/groq",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: AWS Bedrock
3+
description: OpenHands can work with AWS Bedrock models using an OpenAI-compatible API endpoint.
4+
---
5+
6+
## Configuration
7+
8+
AWS Bedrock provides OpenAI-compatible API endpoints for their models. You can find their documentation on using the OpenAI Chat Completions API [here](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-chat-completions.html).
9+
10+
To configure OpenHands to use AWS Bedrock:
11+
12+
1. In the OpenHands UI, navigate to Settings under the `LLM` tab
13+
2. Enable `Advanced` options
14+
3. Set the following:
15+
- `Custom Model` to `openai/{model_name}` (e.g. `openai/anthropic.claude-3-5-sonnet-20240620-v1:0`)
16+
- `Base URL` to `https://bedrock-runtime.{region}.amazonaws.com/openai/v1` (e.g. `https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1`)
17+
- `API Key` to your AWS Bedrock API key
18+
19+
<Note>
20+
The `openai/` prefix in the Custom Model field indicates that OpenHands should use an OpenAI-compatible API format. It does not mean you are directly calling the OpenAI provider.
21+
</Note>
22+
23+
<Note>
24+
Replace `{region}` with your desired AWS region (e.g., `us-west-2`, `us-east-1`). Ensure the region you specify matches where your Bedrock models are available.
25+
</Note>

0 commit comments

Comments
 (0)