Preface¶
When integrating third-party models into DeepSeek Harness (DSH), the common practice is to provide your own API keys, maintain endpoint configurations, or write a custom adapter layer. OpenCode offers a set of models that can be called for free, but its protocol is not directly compatible with the DSH native model selector. If you wish to use these models within DSH but do not want to register an OpenCode account or fill in an API key by default, a bridging plugin is needed.
Below is an introduction to the community plugin dsh-opencode-bridge (maintainer Vikrant-Aleph, GitHub repository Vikrant-Aleph/dsh-opencode-bridge). It integrates OpenCode’s free models into the DSH model selector by using a compatible client protocol; it is categorized as a “Model Inference” plugin. This is a non-official project and is not affiliated with OpenCode or DeepSeek. The upstream protocol, models, and free quota may change, and continuous availability is not guaranteed.
What is this¶
dsh-opencode-bridge is a DSH plugin published on npm (the version used in the current documentation example is 0.5.3). In one sentence: it allows you to use OpenCode’s free models within DSH, without needing an OpenCode account or API key by default.
Model requests will be sent to the OpenCode service; if a proxy is configured, the traffic will pass through your specified egress. Before installation, it is recommended to read the repository source code and the MIT license, and understand that the plugin runs with the permissions of the current DSH process.
Core Features¶
The following capabilities are derived from the project’s README and package description, and can be used as needed.
Automatic Model List Refresh¶
At startup, it fetches the list of free models and refreshes it every 10 minutes by default; when models are added or removed from the upstream catalog, the plugin synchronizes these additions and removals. If a refresh fails, it retains the list from the last successful fetch. List changes will notify the DSH model selector, so typically no plugin restart is required. For advanced refresh intervals, refer to the repository’s TECHNICAL.md.
Streaming Output and Tool Calling¶
It supports streaming responses and multi-step tool calls, retaining reasoning history between multi-step calls, and adapts to DSH native tools. It rejects calls that cannot be safely converted rather than mistakenly executing Bash commands as PowerShell. Tool compatibility issues can be troubleshooted using diagnostic logs or the proxy tool opencode_bridge_audit (see the troubleshooting section below).
Optional Egress Proxy Rotation¶
You can configure multiple HTTP(S) or SOCKS proxies; on explicit egress quota errors or connection failures, it tries other available egresses in list order, respecting any wait times required by the server. If no proxy is configured, it uses a direct connection from the local machine.
Installation and Activation¶
The package name and version must match the documentation. Prioritize using the official npm registry (mirrors may lag in synchronizing new versions).
Installing in DSH Desktop¶
- Open the Plugins sidebar and click Add plugin in the top right corner.
- In the installation source field, enter:
dsh-opencode-bridge@0.5.3
- For Installation source, prioritize the official npm registry.
- Click Install and wait for completion.
Command-line Installation¶
Replace desktop with the profile you actually use:
dsh plugin --profile desktop add dsh-opencode-bridge@0.5.3
If the dsh command is not available in your terminal:
npx @deepseek-ai/dsh plugin --profile desktop add dsh-opencode-bridge@0.5.3
After installation, select a model under OpenCode Bridge in the model selector. If it does not appear, restart the corresponding DSH profile. Normal usage does not require an API key, nor does it require manual modification of configuration files.
Typical Usage¶
Daily Conversations and Agents¶
After installing and enabling the plugin, select one of the free models provided by OpenCode Bridge in the DSH model selector to start a conversation or run an agent. The default path primarily supports text and tool calls; image and attachment content will not be fully forwarded to the model. If you have strong multimodal requirements, you need to choose an alternative solution.
Optional: Configuring an Egress Proxy¶
If your local machine cannot connect directly or you need to rotate egresses:
- Open Settings → OpenCode Bridge → Egress rotation (optional).
- Add existing proxy addresses one by one, for example
http://127.0.0.1:7890orsocks5h://127.0.0.1:1080; you can keepdirect(local machine) as one egress option. - Use Test all to check connectivity; entries in a cooldown period will be skipped. Adding or removing entries will automatically save and take effect.
The plugin prioritizes ready egresses in list order; proxy passwords are saved in plaintext in the local configuration, so do not share the configuration file externally. Only use proxies that you have permission to use and comply with the upstream service’s restrictions. It supports HTTP(S), SOCKS4/4a, SOCKS5/5h.
Use Cases and Considerations¶
Who is this for: Developers who are already using DSH, want to try OpenCode’s free models, and accept that requests will be processed by a third-party service. This plugin is convenient if you do not want to maintain a dedicated OpenCode client but want the model list to update automatically with the upstream.
Usage Notes:
- This is a non-official bridge; upstream changes may cause individual models or capabilities to become unavailable.
- Do not send sensitive content to the model that you would not want to hand over to OpenCode (and the configured proxy).
- DSH automatically retries failed requests up to two times; responses that have already started streaming will not be automatically replayed.
- HTTP 403, 503, and 429 errors where the model backend is unavailable or the reason is not specified will not automatically trigger proxy failover.
Frequently Asked Questions (Excerpted from README):
| Symptom | Recommendation |
|---|---|
| No models appear after installation | Confirm the profile, ensure the plugin is enabled, restart DSH, and check the network. |
| Thinking mode fails after a tool result (missing reasoning_content) | Upgrade to version 0.5.3 or higher. |
| HTTP 429 | Retry later; if a proxy is configured, check the proxy status in the settings. |
| HTTP 403 / 503 | Check for plugin updates and the upstream status before retrying; this does not trigger proxy switching. |
| Tool call fails | Check the Diagnostic log, or have the Agent execute opencode_bridge_audit. |
For issue feedback, you can use the Issue template on GitHub. Please desensitize logs and screenshots before submitting.
Conclusion¶
dsh-opencode-bridge integrates OpenCode’s free models into the model selector in a format recognizable by DSH, handling operational details such as list refresh, streaming and tool bridging, and optional proxy rotation. Community directory page: skillhub.cn plugin entry; source code and complete instructions: GitHub repository. The DSH ecosystem emphasizes “everything is a plugin”; the directory site is maintained by the community and has no official affiliation with DeepSeek / Huan. Please verify the version, permissions, and compliance requirements yourself before choosing a plugin.