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
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ You can configure OpenCode using environment variables:
83
83
|`AZURE_OPENAI_ENDPOINT`| For Azure OpenAI models |
84
84
|`AZURE_OPENAI_API_KEY`| For Azure OpenAI models (optional when using Entra ID) |
85
85
|`AZURE_OPENAI_API_VERSION`| For Azure OpenAI models |
86
+
86
87
### Configuration File Structure
87
88
88
89
```json
@@ -205,7 +206,7 @@ To use bedrock models with OpenCode you need three things.
205
206
206
207
1. Valid AWS credentials (the env vars: `AWS_SECRET_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_REGION`)
207
208
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
+
a. You can request access in the AWS console on the Bedrock -> "Model access" page.
209
210
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.
210
211
211
212
```json
@@ -226,10 +227,10 @@ To use bedrock models with OpenCode you need three things.
226
227
"maxTokens": 80,
227
228
"reasoningEffort": ""
228
229
}
229
-
},
230
+
}
230
231
}
231
232
```
232
-
233
+
233
234
## Interactive Mode Usage
234
235
235
236
```bash
@@ -295,26 +296,26 @@ These flags are mutually exclusive - you can use either `--allowedTools` or `--e
295
296
296
297
OpenCode supports the following output formats in non-interactive mode:
0 commit comments