Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 918 Bytes

filtering-models.md

File metadata and controls

37 lines (33 loc) · 918 Bytes

Opencode Filtering Models

When you have providers configured in Opencode that offer many models, the model list can become lengthy even when favouriting models. You can filter models by combining the enabled_providers field with the whitelist settings on individual providers.

Here is an example from my current .config/opencode/opencode.json:

{
  "enabled_providers": ["opencode", "mistral", "openrouter"],
  "provider": {
    "opencode": {
      "whitelist": [
        "gpt-5.2",
        "gpt-5.2-codex",
        "kimi-k2-thinking",
        "gemini-3-flash",
        "claude-opus-4-5",
        "claude-sonnet-4-5",
        "claude-haiku-4-5",
      ]
    },
    "mistral": {
      "whitelist": [
        "devstral-2512",
        "labs-devstral-small-2512"
      ]
    },
    "openrouter": {
      "whitelist": [
        "mistralai/mistral-nemo:free"
      ]
    }
  }
}

Created: 2026-01-20