summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
authorFrankie Seabrook <[email protected]>2025-11-24 16:51:16 +0000
committerGitHub <[email protected]>2025-11-24 10:51:16 -0600
commit883ed4d424082a8b132d6c7ba985161bb0d7e7a7 (patch)
treeca74b101128c85ea96a0f7db8424cb99c8fb8e00 /packages/web/src
parente6bf1754c33490570f9103c6cf3849bc4ec68296 (diff)
downloadopencode-883ed4d424082a8b132d6c7ba985161bb0d7e7a7.tar.gz
opencode-883ed4d424082a8b132d6c7ba985161bb0d7e7a7.zip
docs: add Ollama Cloud provider setup to providers.mdx (#4693)
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/providers.mdx48
1 files changed, 48 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index ec468205a..013956569 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -762,6 +762,54 @@ If tool calls aren't working, try increasing `num_ctx` in Ollama. Start around 1
---
+### Ollama Cloud
+
+To use Ollama Cloud with OpenCode:
+
+1. Head over to [https://ollama.com/](https://ollama.com/) and sign in or create an account.
+
+2. Navigate to **Settings** > **Keys** and click **Add API Key** to generate a new API key.
+
+3. Copy the API key for use in OpenCode.
+
+4. Run `opencode auth login` and select **Ollama Cloud**.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◆ Select provider
+ │ ● Ollama Cloud
+ │ ...
+ └
+ ```
+
+5. Enter your Ollama Cloud API key.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◇ Select provider
+ │ Ollama Cloud
+ │
+ ◇ Enter your API key
+ │ _
+ └
+ ```
+
+6. **Important**: Before using cloud models in OpenCode, you must pull the model information locally:
+
+ ```bash
+ ollama pull gpt-oss:20b-cloud
+ ```
+
+7. Run the `/models` command to select your Ollama Cloud model.
+
+---
+
### OpenAI
1. Head over to the [OpenAI Platform console](https://platform.openai.com/api-keys), click **Create new secret key**, and copy the key.