dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
在 DSH 中使用 OpenCode 免费模型,支持模型列表动态刷新与可选的代理出口轮换,并提供默认拒绝不安全转换的工具桥与离线、按 Agent 作用域的兼容性审计。
中文 | English
A plugin for using OpenCode free models in DeepSeek Harness (DSH). No OpenCode account or API key is required by default. Supports automatic model refresh, optional context trimming of completed-turn reasoning, and egress-proxy rotation, with a fail-closed tool bridge and offline agent-scoped auditing.
Image input requires DSH's attachment request-version API; this version is built and verified against DSH SDK 0.2.1-rc.2.
Open Plugins in the sidebar, then click Add plugin in the top-right corner.
Enter:
dsh-opencode-bridge@0.5.5
Prefer the official npm registry under Installation source. Mirrors may take time to sync new versions.
Click Install and wait for completion.
Install from npm into your DSH profile:
dsh plugin --profile desktop add dsh-opencode-bridge@0.5.5
Replace desktop with the profile you use. If dsh is not available in your terminal, use:
npx @deepseek-ai/dsh plugin --profile desktop add dsh-opencode-bridge@0.5.5
After installation, select a model under OpenCode Bridge in the model picker. If it does not appear, restart the corresponding DSH profile. Normal use requires no API key or manual configuration-file edits. List changes are announced to DSH's model picker without restarting the plugin. Advanced refresh-interval configuration is documented in the configuration reference.
Open Settings → OpenCode Bridge → Context trimming to enable Trim reasoning from completed turns. It is off by default (full replay). Only reasoning from confirmed successful completed turns is cleared; the current tool chain and uncertain/interrupted history remain intact. Required reasoning_content fields are still sent.
The setting is saved through DSH and applies to new requests without deleting local history or interrupting running requests. Savings depend on the upstream; DSH's local estimate may still include full history. Turn it off if continuity is affected.
Without proxy configuration, the plugin uses a direct connection from your machine.
http://127.0.0.1:7890 or socks5h://127.0.0.1:1080. You can keep direct (this machine) as an egress.The plugin prefers ready entries in list order. Explicit egress-quota errors or connection failures temporarily cool an entry. A server-requested wait prevents immediate failover, and a fully cooling pool sends no early requests. Model-backend unavailability and unexplained 429s are not automatically treated as exhausted proxy quota.
DSH centrally performs at most two automatic retries; excessive waits return an error for you to retry later. Replies that have started streaming are not automatically replayed.
HTTP(S), SOCKS4/4a and SOCKS5/5h proxies are supported. Use only authorized proxies and respect upstream service limits.
| Problem | What to try |
|---|---|
| No models after installation | Check the target profile, confirm the plugin is enabled, restart DSH and check network connectivity. |
| Thinking mode fails after a tool result with missing reasoning_content | Update the plugin; 0.5.3 restores the required assistant-history field, including empty reasoning. |
| HTTP 429 | Retry later. If proxies are configured, inspect their status in Settings. |
| HTTP 403 or 503 | Check for plugin updates and upstream service issues, then retry later. These errors do not trigger proxy failover. Report persistent problems. |
| Tool calls fail | Check the Diagnostic log tab, or ask the agent to run opencode_bridge_audit for tool compatibility. |
For bugs or feature requests, choose an Issue form and fill in the requested versions, reproduction steps and expected/actual behavior. Redact logs first; do not include API keys, proxy passwords or private conversations.
Requires Node.js ≥ 20.18.1 and pnpm. Node.js 22 or 24 LTS is recommended.
git clone https://github.com/Vikrant-Aleph/dsh-opencode-bridge.git
cd dsh-opencode-bridge
pnpm install
pnpm build
pnpm test
Build output is not committed to Git. To install a local build in DSH:
pnpm pack
dsh plugin --profile desktop add ./dsh-opencode-bridge-0.5.5.tgz
See the technical documentation (中文) for implementation details, full configuration, testing and maintenance rules.
Protocol research drew on the official OpenCode source and open-source projects including sub2api, 9router, hermes-oc-free-provider and cpa-plugin-opencodezen. Sources and comparison records are documented in the technical documentation.
Licensed under MIT.