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. 适合想要免配置或使用私有密钥体验免费大模型服务的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HAN102300/dsh-opencode-zen-freeREADME
Read the full README ↗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"
配置项
| 字段 | 默认值 | 说明 |
|---|---|---|
mode | anonymous | anonymous 免 key;private 用自己的 Console API key |
apiKey | — | Console API key,仅 private 模式使用;留空则读 OPENCODE_API_KEY |
baseUrl | https://opencode.ai/zen/v1 | 上游端点 |
providerId | opencode-zen-free | 在模型选择器里的 provider id |
displayName | OpenCode Zen 免费模型 | 模型分组显示名 |
maxAttempts | 12 | 上游偶发错误时的最大重试次数 |
retryBaseDelayMs | 400 | 首次重试等待毫秒(之后按倍数增长) |
retryMaxDelayMs | 4000 | 重试等待上限毫秒 |
streamIdleTimeoutMs | 180000 | 流式响应空闲超时 |
registerGateTools | true | 把 bash / read 注册为可执行工具 |