Skip to content

Commit 883ed4d

Browse files
authored
docs: add Ollama Cloud provider setup to providers.mdx (#4693)
1 parent e6bf175 commit 883ed4d

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

packages/web/src/content/docs/providers.mdx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,54 @@ If tool calls aren't working, try increasing `num_ctx` in Ollama. Start around 1
762762

763763
---
764764

765+
### Ollama Cloud
766+
767+
To use Ollama Cloud with OpenCode:
768+
769+
1. Head over to [https://ollama.com/](https://ollama.com/) and sign in or create an account.
770+
771+
2. Navigate to **Settings** > **Keys** and click **Add API Key** to generate a new API key.
772+
773+
3. Copy the API key for use in OpenCode.
774+
775+
4. Run `opencode auth login` and select **Ollama Cloud**.
776+
777+
```bash
778+
$ opencode auth login
779+
780+
┌ Add credential
781+
782+
◆ Select provider
783+
│ ● Ollama Cloud
784+
│ ...
785+
786+
```
787+
788+
5. Enter your Ollama Cloud API key.
789+
790+
```bash
791+
$ opencode auth login
792+
793+
┌ Add credential
794+
795+
◇ Select provider
796+
│ Ollama Cloud
797+
798+
◇ Enter your API key
799+
│ _
800+
801+
```
802+
803+
6. **Important**: Before using cloud models in OpenCode, you must pull the model information locally:
804+
805+
```bash
806+
ollama pull gpt-oss:20b-cloud
807+
```
808+
809+
7. Run the `/models` command to select your Ollama Cloud model.
810+
811+
---
812+
765813
### OpenAI
766814

767815
1. Head over to the [OpenAI Platform console](https://platform.openai.com/api-keys), click **Create new secret key**, and copy the key.

0 commit comments

Comments
 (0)