summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/providers.mdx
diff options
context:
space:
mode:
authorJay V <[email protected]>2026-02-19 18:31:35 -0500
committerAiden Cline <[email protected]>2026-02-19 18:37:55 -0600
commitd32dd4d7fde75faa802dd8a306aae43bcfa1ef61 (patch)
tree7e70f18a274311f1658be49641a5d6653f822ea9 /packages/web/src/content/docs/providers.mdx
parentcb5a0de42f6bac3b328fd158692ca15b37c63d84 (diff)
downloadopencode-d32dd4d7fde75faa802dd8a306aae43bcfa1ef61.tar.gz
opencode-d32dd4d7fde75faa802dd8a306aae43bcfa1ef61.zip
docs: update providers layout and Windows sidebar label
Diffstat (limited to 'packages/web/src/content/docs/providers.mdx')
-rw-r--r--packages/web/src/content/docs/providers.mdx15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index db473ad36..db3bfeaee 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -135,6 +135,8 @@ To use Amazon Bedrock with OpenCode:
2. **Configure authentication** using one of the following methods:
+ ***
+
#### Environment Variables (Quick Start)
Set one of these environment variables while running opencode:
@@ -157,6 +159,8 @@ To use Amazon Bedrock with OpenCode:
export AWS_REGION=us-east-1
```
+ ***
+
#### Configuration File (Recommended)
For project-specific or persistent configuration, use `opencode.json`:
@@ -184,6 +188,8 @@ To use Amazon Bedrock with OpenCode:
Configuration file options take precedence over environment variables.
:::
+ ***
+
#### Advanced: VPC Endpoints
If you're using VPC endpoints for Bedrock:
@@ -207,12 +213,16 @@ To use Amazon Bedrock with OpenCode:
The `endpoint` option is an alias for the generic `baseURL` option, using AWS-specific terminology. If both `endpoint` and `baseURL` are specified, `endpoint` takes precedence.
:::
+ ***
+
#### Authentication Methods
- **`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY`**: Create an IAM user and generate access keys in the AWS Console
- **`AWS_PROFILE`**: Use named profiles from `~/.aws/credentials`. First configure with `aws configure --profile my-profile` or `aws sso login`
- **`AWS_BEARER_TOKEN_BEDROCK`**: Generate long-term API keys from the Amazon Bedrock console
- **`AWS_WEB_IDENTITY_TOKEN_FILE` / `AWS_ROLE_ARN`**: For EKS IRSA (IAM Roles for Service Accounts) or other Kubernetes environments with OIDC federation. These environment variables are automatically injected by Kubernetes when using service account annotations.
+ ***
+
#### Authentication Precedence
Amazon Bedrock uses the following authentication priority:
@@ -230,7 +240,8 @@ To use Amazon Bedrock with OpenCode:
```
:::note
-For custom inference profiles, use the model and provider name in the key and set the `id` property to the arn. This ensures correct caching:
+For custom inference profiles, use the model and provider name in the key and set the `id` property to the arn. This ensures correct caching.
+:::
```json title="opencode.json"
{
@@ -248,8 +259,6 @@ For custom inference profiles, use the model and provider name in the key and se
}
```
-:::
-
---
### Anthropic