Version 1.0.0 completes the provider-level configuration migration started in 0.12.0.
Plugin-level discovery config is no longer applied at runtime:
discovery.enabledproviders.includeproviders.excludemodels.includeRegexmodels.excludeRegexsmartModelName
When legacy config is detected, the plugin logs a warning, shows a migration toast, and injects /models-discovery:migrate into OpenCode's command list. The legacy fields are ignored for discovery behavior.
Move settings to provider.<name>.options.modelsDiscovery.
Discovery remains enabled by default for compatible providers.
Default precedence is:
provider.<name>.options.modelsDiscovery.enabledwhen explicitly set.OPENCODE_MODELS_DISCOVERY_DEFAULT_ENABLEDwhen set totrue,1,yes,on,false,0,no, oroff.- Built-in default
true.
Use /models-discovery:config to get assistant-guided provider-level configuration help. Use /models-discovery:migrate to migrate legacy plugin-level config when it is detected.
Legacy global models.includeRegex and models.excludeRegex can map to provider-level modelsDiscovery.models.includeRegex and modelsDiscovery.models.excludeRegex, but the recommended migration is provider-level models.includeBy and models.excludeBy using field: "id" and match. Provider-level models.includeRegex and models.excludeRegex remain available as id-only shortcuts. Provider-level models.includeBy and models.excludeBy support strict equality with equals and regex matching with match against top-level raw fields returned by a provider's /v1/models response.
If you upgrade opencode-models-discovery and OpenCode still behaves like it is using an older version, refresh the OpenCode plugin cache and restart OpenCode.
This is worth checking when:
- a newly released feature does not appear after upgrading
- behavior still matches an older plugin build
- issue fixes seem not to have taken effect locally
OpenCode may continue using a cached plugin package even after the npm package has been updated.
- Upgrade the npm package version you use.
- Restart OpenCode.
- If behavior still looks stale, refresh the OpenCode plugin cache.
- Start OpenCode again and verify the plugin version now matches the expected build.
This is especially relevant after upgrades that change startup-time behavior, such as:
- model discovery behavior
/connectcredential discovery- provider-specific discovery endpoints
- model filtering or metadata enrichment