opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Local ollama models partially missing

Open tqian86 opened this issue 3 weeks ago • 5 comments

Description

After a recent update (currently on 1.0.202), some models in our local ollama server have gone missing. For example, given the following config in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "devstral-small-2:24b-cloud": {
          "name": "Devstral Small 2 (Cloud)"
        },
        "devstral-small-2:latest": {
          "name": "Devstral Small 2 (local)"
        },
        "devstral-2:123b-cloud": {
          "name": "Devstral 2 (Cloud)"
        }
      }
    }
  }
}

Opencode only sees the "Devstral 2 (Cloud)", but not the "Devstral Small 2 (local)" or "Devstral Small 2 (cloud)".

All three models show up when running ollama list, but opencode only shows one of them:

Image

OpenCode version

1.0.202

Steps to reproduce

  1. Create a opencode.json with the above config
  2. Check what models are reported in opencode.

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

iTerm2

tqian86 avatar Dec 26 '25 03:12 tqian86