diff options
| author | Alvin Johansson <[email protected]> | 2025-05-20 15:23:51 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-20 08:23:51 -0500 |
| commit | dff8e77eb6d1709fa1ddeb52d0d9c19afd13d385 (patch) | |
| tree | de8cbb9004ed58e19acb5f3ecb97520d77529921 /README.md | |
| parent | 6e854a4df4e4933d478e5eb1d48ccb34db610194 (diff) | |
| download | opencode-dff8e77eb6d1709fa1ddeb52d0d9c19afd13d385.tar.gz opencode-dff8e77eb6d1709fa1ddeb52d0d9c19afd13d385.zip | |
docs: add clearer bedrock instructions (#40)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -198,6 +198,37 @@ OpenCode supports a variety of AI models from different providers: - Gemini 2.5 - Gemini 2.5 Flash + +## Using Bedrock Models + +To use bedrock models with OpenCode you need three things. + +1. Valid AWS credentials (the env vars: `AWS_SECRET_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_REGION`) +2. Access to the corresponding model in AWS Bedrock in your region. + a. You can request access in the AWS console on the Bedrock -> "Model access" page. +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. + +```json +{ + "agents": { + "primary": { + "model": "bedrock.claude-3.7-sonnet", + "maxTokens": 5000, + "reasoningEffort": "" + }, + "task": { + "model": "bedrock.claude-3.7-sonnet", + "maxTokens": 5000, + "reasoningEffort": "" + }, + "title": { + "model": "bedrock.claude-3.7-sonnet", + "maxTokens": 80, + "reasoningEffort": "" + } + }, +} +``` ## Interactive Mode Usage |
