Duskriver/dsh-opencode-go ↗★ 17
dsh-opencode-go
OpenCode Go model provider and settings UI for DeepSeek Harness 适合需要接入OpenCode Go模型的用户,支持Web和Headless模式配置。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Duskriver/dsh-opencode-goREADME
Read the full README ↗安装与使用
插件 0.1.5 起支持 DSH 0.1.5-rc.1、0.1.5-rc.2 和 0.1.6-alpha.1。使用 DSH 0.1.5 的用户可直接升级插件,无需升级 DSH。
npm 包通过 engines.dsh 明确声明宿主版本要求,并保留 DSH 组件的 peerDependencies。dshmarket 中本插件的安装来源也是该 npm 包,市场会将其安装到选定的 DSH profile。
Web
dsh plugin --profile web add dsh-opencode-go
安装后启动或重启 dsh web:
- 打开 设置 → OpenCode Go。
- 填入 OpenCode Go API Key 并保存。
- 在会话的模型选择器中选择 OpenCode Go 模型。
API Key 来自你的 OpenCode Go 订阅。安装插件不会自动更改默认模型。
Headless
安装到 Headless profile:
dsh plugin --profile headless add dsh-opencode-go
将以下内容保存为 headless.patch.yml,选择默认模型:
- id: agent-default-model
config:
provider: opencode-go
model: deepseek-v4.1-flash
在 Bash 或 Zsh 中读取 API Key,然后运行任务:
read -s OPENCODE_API_KEY
export OPENCODE_API_KEY
dsh --profile headless --patch ./headless.patch.yml "你好"
模型 ID 须在当前网关目录中可用。Web 和 Headless 使用各自的 profile,需要分别安装插件。
配置
Web 用户可直接在 设置 → OpenCode Go 中修改配置。启用开关立即生效;