GeezerVison is showing github.com — [FEATURE]: Support wildcard overlays in V2 provider model configuration · Issue #63711 · anomalyco/opencode
[FEATURE]: Support wildcard overlays in V2 provider model configuration #63711DescriptionFeature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Related requests exist: #42535 (closed, V1 whitelist/blacklist wildcards) and #49986 (open, native V2 model filtering). This request proposes wildcard overlays in the existing V2 model map; please consolidate with #49986 if preferred.
Describe the enhancement you want to request
Allow * and ? patterns in providers.<id>.models. I maintain a curated set of presets and currently need an explicit disabled entry for every catalog model. That config is long and becomes stale as providers add models.
The proposed configuration would be:
{
"providers": {
"opencode": {
"models": {
"*": { "disabled": true },
"curated-medium": {
"modelID": "gpt-6.1-sol",
"disabled": false,
"settings": { "reasoningEffort": "low" }
}
}
}
}
}
Suggested semantics:
* matches any sequence; ? matches one character.
- Matching patterns apply in declaration order, followed by literal entries regardless of key position.
- Later config documents take precedence.
- Patterns match catalog/discovered models and explicitly declared literal IDs; unmatched patterns create no models.
- Apply the same behavior to integration config. Provider IDs and arbitrary settings keys remain literal.
This keeps model selection declarative and automatically covers new catalog entries without adding another filtering field. Reacted by CasualDeveloper Activityopencodejr commented on Nov 13, 2026 Thanks for the detailed proposal and the draft in #63710! You're asking for * and ? patterns as keys in providers.<id>.models. With them you could disable a whole catalog (for example "*": { "disabled": true }) and re-enable a curated set, and new catalog models would be covered automatically instead of needing a disabled entry each. Maintainers will consider it, including your question about whether this belongs in the model map or in the filtering work in #49986.
Today the V2 providers docs describe disabled on individual model entries ("Removes the model from selection when true"), with no pattern support.
Related issues and PRs:
CasualDeveloper commented on Nov 19, 2026 I have a second use case for these patterns. I set limit.context to 1,000,000 and limit.input to 872,000 for long-context OpenAI models. When GPT-6.1 Terra, GPT-6.2 Astra, and GPT-6.2 Sol appeared in my OpenCode catalog, their standard and fast IDs all reported 628,000 context and 500,000 input. Applying the same two limits took six config entries.
With this proposal I could use a family pattern such as "gpt-6.*-sol*": { "limit": { "context": 1000000, "input": 872000 } } under providers.openai.models. A newly discovered matching ID would pick up those limits, a literal entry could specify a smaller window, and the catalog would still supply each model's output limit. That's the behavior I'd use. I tested this case against #63710.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|