You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,37 @@ OpenCode supports a variety of AI models from different providers:
198
198
199
199
- Gemini 2.5
200
200
- Gemini 2.5 Flash
201
+
202
+
## Using Bedrock Models
203
+
204
+
To use bedrock models with OpenCode you need three things.
205
+
206
+
1. Valid AWS credentials (the env vars: `AWS_SECRET_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_REGION`)
207
+
2. Access to the corresponding model in AWS Bedrock in your region.
208
+
a. You can request access in the AWS console on the Bedrock -> "Model access" page.
209
+
3. A correct configuration file. You don't need the `providers` key. Instead you have to prefix your models per agent with `bedrock.` and then a valid model. For now only Claude 3.7 is supported.
0 commit comments