DSH ships a multi-provider LLM adapter, llm-pi-ai (package @deepseek-ai/dsh-llm-pi-ai), mounted dormant: it registers zero routes until a llm-pi-ai.providers.<route> entry appears in your settings. A fresh DSH install has no OpenCode GO route at all.
This plugin addresses two structural problems with the built-in route: the model list is frozen inside the DSH package, and the protocol must be pinned per route. dsh-opencode-go-plus reads OpenCode’s published catalog at runtime, serving every model the gateway offers across all wire protocols from a single route.
What it is¶
Live OpenCode GO provider for DSH. Instead of using a snapshot catalog shipped inside the DSH package, this plugin reads model lists and capabilities from a live catalog. It maintains a single adapter that resolves the protocol per model, eliminating the need for multiple routes or per-model bookkeeping.
- Owner: yumusb
- License: MIT
Core Features¶
- Live models and capabilities: The model list and capabilities are refreshed on demand rather than being tied to a specific DSH release.
- One route for every protocol: No per-model bookkeeping; the protocol is resolved dynamically per model.
- No DSH files patched: The gateway rejects requests without the
x-opencode-sessionheader; the adapter sends the real session ID itself, so nofetchwrapper is required. - Bilingual: The Plugin Manager description, card, and capability labels follow the harness language.
- Duplicate-route detection: If another configured route resolves to the same gateway (e.g.,
opencode-goadded through the built-in adapter), the card detects this by endpoint and removes the redundant route in one click. - Configuration compatibility: Supports both DSH configuration generations (legacy and loader config).
- Runtime host detection: Detects the host API at runtime.
Install and Enable¶
Run the following command to install the plugin:
dsh plugin --profile web add dsh-opencode-go-plus
After installation, restart dsh web and perform a hard-refresh on the browser page to load the updated plugin.
Usage¶
- Navigate to Settings → Plugins → Plugin configuration.
- Select “OpenCode GO Plus”.
- Configure the Gateway URL and API Key.
- The Gateway URL is saved to settings.
- The API Key is saved to the credentials store.
- Use the Test connection button to validate the key. This probes the values currently in the fields (saved or not) and reports whether the key is accepted.
Requirements and Notes¶
- DSH Host: Minimum supported DSH host is
0.1.0-rc.8. - Node.js: Requires Node.js ≥ 22.19.0.
- Subscription: Requires an OpenCode GO subscription and API key.
- Headers: The plugin requires the
x-opencode-sessionheader to function.
Summary¶
This plugin replaces the frozen snapshot approach with a live catalog, allowing you to use a single route for models on different wire protocols. It removes the need for manual per-model configuration and handles duplicate route detection automatically.
- Catalog: https://www.skillhub.cn/plugins/yumusb/dsh-opencode-go-plus
- Repository: https://github.com/yumusb/dsh-opencode-go-plus