From 03f1f0649f3e66e0ffe9a375dd910bf04520287a Mon Sep 17 00:00:00 2001 From: Arian Ahmadinejad Date: Mon, 26 Jan 2026 23:02:26 -0500 Subject: [PATCH 1/2] docs: add instruction for ollama auto config cli --- packages/web/src/content/docs/providers.mdx | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx index 2a8039452881..6c6a77d01f48 100644 --- a/packages/web/src/content/docs/providers.mdx +++ b/packages/web/src/content/docs/providers.mdx @@ -1222,6 +1222,33 @@ To use Kimi K2 from Moonshot AI: You can configure opencode to use local models through Ollama. +#### Automatic Setup + +The easiest way to configure Ollama with OpenCode is using the built-in launch command: + +```bash +ollama launch opencode +``` + +This opens an interactive TUI where you can select Ollama models to be added to opencode. + +```bash +$ ollama launch opencode + +Select models for OpenCode: + > [x] glm-4.7-flash:latest (default) + [ ] glm-4.7:cloud + [ ] gpt-oss:latest + + [ Continue ] (1 selected) - press Tab +``` + +Once you confirm, the command automatically overwrites your `opencode.json` config with the selected models. + +#### Manual Configuration + +Alternatively, you can manually configure Ollama in your `opencode.json`: + ```json title="opencode.json" "ollama" {5, 6, 8, 10-14} { "$schema": "https://opencode.ai/config.json", From b20b4f163a10594af32a887a712dfadfbff0745a Mon Sep 17 00:00:00 2001 From: Arian Ahmadinejad Date: Mon, 26 Jan 2026 23:09:46 -0500 Subject: [PATCH 2/2] docs: add reference to ollama docs --- packages/web/src/content/docs/providers.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx index 6c6a77d01f48..3d59a6aab20f 100644 --- a/packages/web/src/content/docs/providers.mdx +++ b/packages/web/src/content/docs/providers.mdx @@ -1281,6 +1281,8 @@ In this example: If tool calls aren't working, try increasing `num_ctx` in Ollama. Start around 16k - 32k. ::: +For more information, see the [Ollama documentation for OpenCode](https://docs.ollama.com/integrations/opencode). + --- ### Ollama Cloud