1624318455/dsh-plugin-adapter ↗★ 0

dsh-plugin-adapter

免密钥接入OpenCode Zen免费模型的适配器插件 适合希望在DSH中免API Key直接调用OpenCode Zen模型进行对话的用户。

套件
dsh-plugin-adapter
相容性
待驗證
授權
MIT
最近更新
2026年9月20日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:1624318455/dsh-plugin-adapter

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
OptionDefaultDescription
modeadapteradapter: native LlmAdapter streaming straight from Zen. sidecar: legacy local-agent mode, not bundled — build the agent from legacy/agent and pass agentPath.
providerIdzen-freeProvider name shown in DSH (opencode2dsh stays registered as a legacy alias).
refreshSeconds300Live 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.
agentPathauto-resolvedSidecar only: path to the agent binary.
agentArgs—Sidecar only: extra CLI args for the agent.
restartDelayMs / restartMaxDelayMs / maxConsecutiveCrashes1000 / 60000 / 5Sidecar only: restart backoff and circuit breaker.