Repository navigation
v1.0.0
v1.0.0
Initial release of opencode-model-refresh: a multi-provider OpenCode plugin that reconciles model pickers with live provider APIs.
Highlights
- Reconciles configured providers with their live
/modelsendpoints. - Probes model availability with minimal chat completions.
- Distinguishes definite refusals from inconclusive results such as timeouts,
429, and5xx. - Removes only definitely refused models; inconclusive probes never remove models.
- Applies a wipe guard when every live probe fails.
- Supports multiple providers with per-provider adapters, verdict caches, timers, and status reports.
- Reuses OpenCode’s existing provider credentials; the plugin has no
apiKeyoption. - Endpoints come only from provider
settings.baseURL. - Adds
/refresh-modelsand/refresh-models-forcefor Desktop and TUI. - Refresh commands run through RPC and do not create sessions or wake the model.
- Persists status reports and per-provider change timelines under
~/.local/state/opencode/com.a2way.opencode-model-refresh/.
Included adapters
nvidia: NVIDIA NIM dialect handlingopencode: OpenCode hosted inference free tier
Installation
From npm:
opencode plugin add opencode-model-refreshFrom GitHub:
opencode plugin add github:a2way-com/opencode-model-refreshNotes
- With no
providersoption, the plugin does nothing. - Built-in adapters are registered in
src/index.ts. - Desktop slash commands are provided by the prebuilt
dist/gui-experimental.cjsbundle.