Skip to content

v1.0.0

Latest

Choose a tag to compare

@ChalkCalliope ChalkCalliope released this 28 Sep 12:50
· 1 commit to main since this release

Startup model discovery for OpenAI-compatible providers in OpenCode V2.

Highlights

  • Queries GET <baseURL>/v1/models once 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.json status 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-sync

OpenCode 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.