#model wildcard

1 messages · Page 1 of 1 (latest)

paper valley
#

I know I can do this now in the agents.defaults.models "opencode-go/": {}, but I would like to also do something like "opencode/-free" can i do this to have all the -free models show up in the model picker?

copper cliffBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

amber hemlockBOT
#

Short answer: not as opencode/*-free today.

I checked the current model allowlist/picker path: agents.defaults.models is treated as an allowlist/catalog of concrete provider/model refs. The picker builds from the allowed catalog, and I don’t see arbitrary suffix glob matching there. So a *-free entry won’t expand into every matching model.

Practical options:

  • leave agents.defaults.models unset if you want the picker to show everything available from configured providers
  • or add the exact opencode/...-free entries you want to expose

Example shape:

agents: {
  defaults: {
    models: {
      "opencode/some-model-free": {},
      "opencode/another-model-free": {},
    }