FishBottle7/opencode2dsh ↗★ 82

opencode2dsh

提供免API Key的免费OpenCode Zen模型适配器 适合需要接入并使用免费Zen模型进行对话或代码生成的DSH用户。

包名
opencode2dsh
兼容性
待验证
许可证
MIT
最近更新
2026年9月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:FishBottle7/opencode2dsh

Configuration

Defaults work out of the box. Override via the profile's cordis.patch.yml:

- id: opencode2dsh
  name: '@opencode2dsh/dsh-plugin'
  config:
    mode: adapter        # adapter (default) | sidecar
    providerId: opencode2dsh
    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.
providerIdopencode2dshProvider name shown in DSH.
refreshSeconds300Live catalog refresh interval. Pricing metadata refreshes every 24 h.
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.