dsh-zen-spoof
DeepSeek Harness 插件:为 OpenCode Zen 免费模型补上官方客户端头,缓解伪 429 限流
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mikey-666/dsh-zen-spoof说明文档
阅读完整 README ↗使用
dsh web
在会话里选 provider: opencode,模型挑任意免费 ID:
| 模型 ID | 说明 |
|---|---|
mimo-v2.5-free | MiMo V2.5(默认) |
deepseek-v4-flash-free | DeepSeek V4 Flash |
ling-3.0-flash-free | Ling 3.0 Flash |
nemotron-3-ultra-free | Nemotron 3 Ultra |
模型自动发现:插件启动时自动调用 Zen API 获取最新免费模型列表,上表仅供参考。
API Key 自动复用 dsh 凭据库中 OPENCODE_API_KEY 的值,无需额外配置。
配置
| 字段 | 默认值 | 说明 |
|---|---|---|
apiKey | 空 | 留空则自动读取 dsh 凭据库 |
apiKeyRef | OPENCODE_API_KEY | 凭据引用名 |
baseURL | https://opencode.ai/zen/v1 | 网关地址 |
providers | ["opencode"] | 注册的路由名 |
spoofClient | cli | x-opencode-client 值 |
project | dsh | x-opencode-project 值 |
userAgent | opencode/1.18.30 | User-Agent,须含版本号 |
enableAutoFallback | true | 受限时自动换模型 |
maxFallbackAttempts | 5 | 单次最多换几个 |
initialBackoffMs | 1000 | 退避起点 |
maxBackoffMs | 30000 | 退避上限 |
timeoutMs | 120000 | 空闲超时(ms),0 不限 |
通过 cordis 配置覆盖时须重述全部键。