From f7dd436266a5e2fc963dae96cd6270beccb0c17e Mon Sep 17 00:00:00 2001 From: BillyOutlast <172061051+BillyOutlast@users.noreply.github.com> Date: Sat, 17 Oct 2026 16:10:42 -0400 Subject: [PATCH] [Upstream #815] docs: add OpenCode Model Router to plugins (#442) * docs: add OpenCode Model Router to plugins * docs: state OpenCode v2.x requirement in model router listing * chore: fill in kind, topics and compat for data/plugins/opencode-model-router.yaml --------- Co-authored-by: sertdisk Co-authored-by: sertdisk <13528521+sertdisk@users.noreply.github.com> --- data/plugins/opencode-model-router.yaml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 data/plugins/opencode-model-router.yaml diff --git a/data/plugins/opencode-model-router.yaml b/data/plugins/opencode-model-router.yaml new file mode 100644 index 0000000..a15e09b --- /dev/null +++ b/data/plugins/opencode-model-router.yaml @@ -0,0 +1,28 @@ +name: OpenCode Model Router +repo: https://github.com/sertdisk/OpenCode-Model-Router +homepage: https://github.com/sertdisk/OpenCode-Model-Router +tagline: Per-agent model fallback chains (primary/secondary/tertiary) for OpenCode v2.x with a local web UI +description: Give every OpenCode agent a primary, secondary, and tertiary model chain, managed from a clean local web UI served by the plugin itself. The model picker mirrors the models you enabled in Settings > Models, provider-qualified refs make the same model on two different providers count as separate fallback steps, and chains are written natively into oh-my-opencode-slim (agents..model arrays) or plain OpenCode config with automatic backups. Zero dependencies; the web UI binds to 127.0.0.1 only. Built for OpenCode v2.x — uses the OpenCode V2 plugin API. +kind: plugin +topics: + - providers +compat: v2 +scope: + - global +tags: + - model-router + - fallback + - models + - web-ui + - oh-my-opencode-slim + - configuration +installation: | + Clone the repository and run the install script: + + ```powershell + git clone https://github.com/sertdisk/OpenCode-Model-Router + cd OpenCode-Model-Router + powershell -ExecutionPolicy Bypass -File tools/install-dev.ps1 + ``` + + Restart OpenCode, then open the web UI at `http://127.0.0.1:37337` to configure each agent. Prefer the terminal? Use the `/model-router` command instead.