Minimal OpenCode plugin for KeiRouter.
It only fetches GET /v1/models, caches the result in memory, and exposes the
models to OpenCode. It does not call combo, auto-combo, pricing, or MCP endpoints.
Then run:
opencode connect keirouterOptions:
providerIddefaultkeirouterdisplayNamedefaultKeiRouterbaseURLdefaulthttp://127.0.0.1:20180modelCacheTtldefault300000
{ "$schema": "https://opencode.ai/config.json", "plugin": [ ["@keirouter/opencode-plugin", { "baseURL": "http://127.0.0.1:20180" }] ] }