Here is an introduction to the dsh-opencode-go plugin. DeepSeek Harness (DSH) supports functional extensions via plugins. When managing models such as OpenCode Go and Zen, it is a common requirement to dynamically fetch the latest model lists, token rates, protocol support, and zero-rate limits. The dsh-opencode-go plugin aims to solve these problems by providing DSH with Live OpenCode Go and Zen catalogs, including current token rates, zero-rate filters, protocol selection, and session affinity headers.
Functional Positioning¶
This plugin falls under the “Model Inference” category and is maintained by gosomea. It integrates the OpenCode Go and Zen model catalogs into DSH via public provider APIs.
Core Features¶
The plugin primarily provides the following capabilities:
- Live OpenCode Go and Zen catalogs: Fetch the latest model list.
- Token rates: Display current rates (input, output, cache read/write).
- Zero-rate filters: Support zero-rate filtering.
- Protocol selection: Allow protocol selection.
- Session affinity headers: Handle session affinity via HTTP headers.
- KV Cache effect: Support KV cache via session affinity.
Installation and Configuration¶
1. Build and Pack¶
Execute the following commands in the project source directory to build and pack:
npm run build
npm pack
2. Install Plugin¶
Install the plugin using the generated tarball file:
dsh plugin --profile web add /absolute/path/foreveryu-dsh-opencode-go-0.1.2.tgz
3. Configure Provider¶
After installation, the API Key environment variable needs to be set in the DSH configuration. An example configuration is as follows:
opencode-go.providers: {
opencode-go: {
apiKeyEnv: OPENCODE_GO_API_KEY
}
}
Usage¶
- Open Settings → Models → OpenCode Go / Zen.
- You can manually refresh, search by model ID/name, or enable the zero-rate filter.
- Once configured, the provider’s models will automatically appear in the list.
Technical Details & Notes¶
- API Endpoints: Go and Zen use different
/modelslists, located at the/inference/go/v1and/inference/v1endpoints, respectively. - Data Source: HTTP transport, streaming, tools, images, and inference transformations all use DSH’s
PiAiAdapter. - Cache Location: The cache file is located at
$DSH_HOME/plugins/dsh-opencode-go/catalog-v1.json, which contains only public metadata. - Dormant State: Unconfigured plugins remain dormant and will not take effect.
System Requirements & Limitations:
- DSH Version: Supports DeepSeek Harness 0.2.0-rc.2 and 0.2.1-alpha.3.
- Node Version: Node.js version must satisfy
^22.19 || >=24. - Package Name Discrepancy: The unscoped npm name for this project (
dsh-opencode-go) belongs to a different author; this project is published only under@foreveryu/dsh-opencode-go. - Migration Review: Custom provider endpoints or protocol overrides require review before migration.
- Skill Dependency: Refresh, repair, and migration functions require corresponding skill support (located in
$DSH_HOME/skills/dsh-opencode-go). - Input Limitations: The plugin supports only text and image inputs for DSH.
Summary¶
dsh-opencode-go simplifies the management of OpenCode Go and Zen models by providing real-time catalogs and filtering capabilities. For more details, please refer to the GitHub Repository.