summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMC <[email protected]>2026-04-06 11:50:24 -0400
committerGitHub <[email protected]>2026-04-06 10:50:24 -0500
commit965c751522a72f16a523dc86168aadd349765139 (patch)
tree1d47a4fc0c32d7b560990f447e7e5345bb45e421
parent24bdd3c9fb933c1663f1adfa61c9c8c49d5d52c4 (diff)
downloadopencode-965c751522a72f16a523dc86168aadd349765139.tar.gz
opencode-965c751522a72f16a523dc86168aadd349765139.zip
docs: update Cloudflare provider setup to reflect /connect prompt flow (#20589)
-rw-r--r--packages/web/src/content/docs/providers.mdx69
1 files changed, 43 insertions, 26 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index b14c8ab10..bd7e10f92 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -490,37 +490,42 @@ If you encounter "I'm sorry, but I cannot assist with that request" errors, try
Cloudflare AI Gateway lets you access models from OpenAI, Anthropic, Workers AI, and more through a unified endpoint. With [Unified Billing](https://developers.cloudflare.com/ai-gateway/features/unified-billing/) you don't need separate API keys for each provider.
-1. Head over to the [Cloudflare dashboard](https://dash.cloudflare.com/), navigate to **AI** > **AI Gateway**, and create a new gateway.
+1. Head over to the [Cloudflare dashboard](https://dash.cloudflare.com/), navigate to **AI** > **AI Gateway**, and create a new gateway. Note your **Account ID** and **Gateway ID**.
-2. Set your Account ID and Gateway ID as environment variables.
+2. Run the `/connect` command and search for **Cloudflare AI Gateway**.
- ```bash title="~/.bash_profile"
- export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
- export CLOUDFLARE_GATEWAY_ID=your-gateway-id
+ ```txt
+ /connect
```
-3. Run the `/connect` command and search for **Cloudflare AI Gateway**.
+3. Enter your **Account ID** when prompted.
```txt
- /connect
+ ┌ Enter your Cloudflare Account ID
+ │
+ │
+ └ enter
```
-4. Enter your Cloudflare API token.
+4. Enter your **Gateway ID** when prompted.
```txt
- ┌ API key
+ ┌ Enter your Cloudflare AI Gateway ID
└ enter
```
- Or set it as an environment variable.
+5. Enter your **Cloudflare API token**.
- ```bash title="~/.bash_profile"
- export CLOUDFLARE_API_TOKEN=your-api-token
+ ```txt
+ ┌ Gateway API token
+ │
+ │
+ └ enter
```
-5. Run the `/models` command to select a model.
+6. Run the `/models` command to select a model.
```txt
/models
@@ -542,39 +547,44 @@ Cloudflare AI Gateway lets you access models from OpenAI, Anthropic, Workers AI,
}
```
+ Alternatively, you can set environment variables instead of using `/connect`.
+
+ ```bash title="~/.bash_profile"
+ export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
+ export CLOUDFLARE_GATEWAY_ID=your-gateway-id
+ export CLOUDFLARE_API_TOKEN=your-api-token
+ ```
+
---
### Cloudflare Workers AI
Cloudflare Workers AI lets you run AI models on Cloudflare's global network directly via REST API, with no separate provider accounts needed for supported models.
-1. Head over to the [Cloudflare dashboard](https://dash.cloudflare.com/), navigate to **Workers AI**, and select **Use REST API** to get your Account ID and create an API token.
-
-2. Set your Account ID as an environment variable.
+1. Head over to the [Cloudflare dashboard](https://dash.cloudflare.com/), navigate to **Workers AI**, and select **Use REST API** to get your **Account ID** and create an API token.
- ```bash title="~/.bash_profile"
- export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
- ```
-
-3. Run the `/connect` command and search for **Cloudflare Workers AI**.
+2. Run the `/connect` command and search for **Cloudflare Workers AI**.
```txt
/connect
```
-4. Enter your Cloudflare API token.
+3. Enter your **Account ID** when prompted.
```txt
- ┌ API key
+ ┌ Enter your Cloudflare Account ID
└ enter
```
- Or set it as an environment variable.
+4. Enter your **Cloudflare API key**.
- ```bash title="~/.bash_profile"
- export CLOUDFLARE_API_KEY=your-api-token
+ ```txt
+ ┌ API key
+ │
+ │
+ └ enter
```
5. Run the `/models` command to select a model.
@@ -583,6 +593,13 @@ Cloudflare Workers AI lets you run AI models on Cloudflare's global network dire
/models
```
+ Alternatively, you can set environment variables instead of using `/connect`.
+
+ ```bash title="~/.bash_profile"
+ export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
+ export CLOUDFLARE_API_KEY=your-api-token
+ ```
+
---
### Cortecs