1624318455/dsh-plugin-adapter ↗★ 0
dsh-plugin-adapter
免密钥接入OpenCode Zen免费模型的适配器插件 适合希望在DSH中免API Key直接调用OpenCode Zen模型进行对话的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:1624318455/dsh-plugin-adapter说明文档
阅读完整 README ↗Configuration
Defaults work out of the box. Override via the profile's cordis.patch.yml:
- id: opencode2dsh
name: '@memef1f1y/dsh-plugin-adapter'
config:
mode: adapter # adapter (default) | sidecar
providerId: zen-free
refreshSeconds: 300 # catalog refresh cadence
| Option | Default | Description |
|---|---|---|
mode | adapter | adapter: native LlmAdapter streaming straight from Zen. sidecar: legacy local-agent mode, not bundled — build the agent from legacy/agent and pass agentPath. |
providerId | zen-free | Provider name shown in DSH (opencode2dsh stays registered as a legacy alias). |
refreshSeconds | 300 | Live catalog refresh interval. Pricing metadata refreshes every 24 h. |
gatewaySession | — | Fixed session id sent as x-opencode-session for every request. Escape hatch: a conversation whose derived session is pinned to a broken upstream replica fails deterministically while fresh ones stream — pin a fresh canonical-shape id here and restart DSH to revive it. |
agentPath | auto-resolved | Sidecar only: path to the agent binary. |
agentArgs | — | Sidecar only: extra CLI args for the agent. |
restartDelayMs / restartMaxDelayMs / maxConsecutiveCrashes | 1000 / 60000 / 5 | Sidecar only: restart backoff and circuit breaker. |