Repository navigation
OpenCode models: show or hide by source (Zen, Go, own keys, local), with a Free filter #29072
AnshShah3009
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
OpenCode's model list mixes models with very different access terms. On my install T3 lists 144 OpenCode models:
openai/…)opencode-go/…)anthropic/…)opencode/…)inception/…)ollama/…)Which models I want in the picker follows these lines: everything local, only free models, no Go models without a Go subscription. Today that means one click per model. The settings page has per-model visibility toggles and one Disable all / Enable all button (#10947), which acts on every built-in model and ignores the filter box.
Proposal
hiddenModelsstores model IDs, so a model that appears later shows up even when its whole group was hidden. That happens when OpenCode adds a Go model or Iollama pulla new one. A hidden group should keep hiding its new models, and a shown group (such as local) should pick up new models without another visit to settings.cost, which is 0/0 for free models. T3 could keep that from the inventory and offer a "Free" badge and filter, both in settings and in the picker. TodayflattenOpenCodeModels(packages/provider-opencode/src/server/status.ts) keeps only slug, name and sub-provider label.With 1–3, typical setups take a few clicks: "local + free only", "Zen and my own keys, no Go", "everything except OpenAI".
Notes
subProviderLabelFordrops it. Grouping needs a name for them, such as "OpenCode Zen".-freename suffix is not a reliable marker. In OpenCode's cached models.dev catalog,opencode/big-picklehas cost 0/0 without-freein its name. I checked that local catalog cache (dated 2026-09-17), not the live inventory T3 receives.opencode-goprovider id does.opencode.jsonc.Environment: T3 Code 0.1.7-nightly.20261102.4061 (Linux desktop), OpenCode 2.2.5, Ollama with 3 local models.
All reactions