Repository navigation
Startup model discovery for OpenAI-compatible providers in OpenCode V2.
Highlights
- Queries
GET <baseURL>/v1/modelsonce per plugin load and registers new models automatically - Credentials: active account connection ->
settings.apiKey-><PROVIDER>_API_KEY - Non-destructive merge: explicit capabilities, limits and costs are never overwritten
- Chat-only default filter drops video/3D/music/speech/embedding models
last-sync.jsonstatus file reports per-provider results (synced/skipped/failed)- Zero runtime dependencies
Install
git clone https://github.com/ChalkCalliope/opencode-model-sync.git \\
~/.config/opencode/plugins/opencode-model-syncOpenCode loads everything under ~/.config/opencode/plugins/ automatically - do not also register
the directory in opencode.json, or the plugin ID is registered twice.
Requires OpenCode v2.x (tested on v2.0.14). 26 unit tests, tsc clean.