HAN102300/dsh-opencode-zen-free ↗★ 0

dsh-opencode-zen-free

Brings OpenCode Zen free-tier models into DeepSeek Harness, with anonymous no-key access and a local OpenAI-compatible shim. 适合想要免配置或使用私有密钥体验免费大模型服务的用户。

Package
dsh-opencode-zen-free
Compatibility
Unverified
Harness peer range
>=0.0.1-rc.1 <0.1.0 || >=0.2.1-rc.1 <0.3.0-0
Version
0.2.0
License
Apache-2.0
Last updated
Oct 19, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HAN102300/dsh-opencode-zen-free

3. 配置

编辑 ~/.dsh/profiles/desktop/cordis.patch.yml,追加:

- id: llm-opencode-zen-free
  name: "dsh-opencode-zen-free"
  config:
    mode: anonymous          # 免 key 走公共额度;改成 private 用自己的 key
    providerId: "opencode-zen-free"
    displayName: "OpenCode Zen 免费模型"

想用自己的 Console API key(公共额度被限流时更稳):

- id: llm-opencode-zen-free
  name: "dsh-opencode-zen-free"
  config:
    mode: private
    apiKey: "oc_sk_你的key"

配置项

字段默认值说明
modeanonymousanonymous 免 key;private 用自己的 Console API key
apiKey—Console API key,仅 private 模式使用;留空则读 OPENCODE_API_KEY
baseUrlhttps://opencode.ai/zen/v1上游端点
providerIdopencode-zen-free在模型选择器里的 provider id
displayNameOpenCode Zen 免费模型模型分组显示名
maxAttempts12上游偶发错误时的最大重试次数
retryBaseDelayMs400首次重试等待毫秒(之后按倍数增长)
retryMaxDelayMs4000重试等待上限毫秒
streamIdleTimeoutMs180000流式响应空闲超时
registerGateToolstrue把 bash / read 注册为可执行工具