OpenCode Model Control 0.3.0
New models can now become available under your saved Free/Paid policy without a Model Control release. Model Control automatically discovers exact provider/model pricing and capabilities, while preserving explicit disables and role assignments.
What changed
- Automatic metadata refresh every 15 minutes while the panel or MCP companion runs. Pricing expires after 24 hours; missing, conflicting or expired evidence blocks routing. Failed refreshes preserve cached evidence and unresolved conflicts.
- Complete capability details: input/output modalities, tool calling, reasoning, structured output, context/output limits, compatible roles and metadata freshness. Unknown support is distinct from explicit lack of support.
- Default-on automatic enrollment with explicit per-model choices. Saved Paid mode permits new eligible known-paid models. Settings migrate with private backups.
- Live role changes for already-loaded models across all four owned agents. A model missing from the running OpenCode inventory needs an explicit host reload; Model Control never disposes an instance automatically.
- Preserved unsaved edits and blocked pins, revision-aware saves, actionable eligibility reasons, model search and provider/capability filters.
- Current-policy checks before dispatch, tool-free media handling, read-only review restrictions and exact repair-model retention.
Upgrade
npm install -g opencode-model-control@0.3.0Open the panel, use Update connection for the managed plugin/agent upgrade, and restart OpenCode when prompted. Routine later role changes for already-loaded models apply live. Existing disabled models, explicit pins and unrelated OpenCode configuration are preserved.
Verification and artifact
Implementation and independent review used Astra with high reasoning. Source verification passed 293 tests, typecheck and production build on Node 22.12.0 and Node 24.x. The final tarball is built once from protected main and accepted on Linux/macOS across both Node lines, using OpenCode 1.18.22 and 1.18.28.
Each installed-artifact matrix run checks 16 package/upgrade/connection/MCP cases, 19 actual OpenCode scenarios per host, and 12 browser interactions against the installed production UI. All model traffic uses an isolated loopback test provider; public metadata retrieval is tested separately. These checks make no claims about provider billing, entitlement or model quality.
Source commit: bcd228a349627523382dda65017bab6fb0a4856c.
Tarball SHA-256: 26a532b44c96d643c0543a78d2fef1ab2c1a3b83886e6715cef0ab683d3413ab.
Final artifact acceptance run. Redacted acceptance results are attached. npm and GitHub use the same tarball; verify it with the attached SHA256SUMS. The public npm download matches both its registry SHA-512 integrity and the final SHA-256 and passed the full installed acceptance on Linux / Node 22.12.0. A clean named npm install also matched all 74 package files and reported 0.3.0. Those receipts are attached as npm-public-verification.zip. This release is immutable after publication.