HaydenSmith1121/dsh-opencode-go-plus ↗★ 0

dsh-opencode-go-plus

OpenCode Go model provider for DeepSeek Harness — a maintained fork that keeps the live model catalog reachable when another adapter already owns the opencode-go route, no longer drops models belonging to families the catalog has not seen before, and configures itself from the Settings → Models page instead of a settings section of its own 适合使用 OpenCode Go 订阅模型并需要便捷配置凭据的用户。

パッケージ
dsh-opencode-go-plus
互換性
未検証
Harness ピア範囲
0.1.6-alpha.1
Cordis ピア範囲
4.0.2
バージョン
0.3.0
ライセンス
MIT
最終更新
2026/09/18

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HaydenSmith1121/dsh-opencode-go-plus

ドキュメント

README 全文を読む ↗

安装与使用

Web

dsh plugin --profile web add dsh-opencode-go-plus

安装后启动或重启 dsh web:

  1. 打开 设置 → 模型,找到 OpenCode Go 一行。
  2. 该行显示 API Key 状态(绿点 = 已配置)。
  3. 在会话的模型选择器中选择 OpenCode Go 模型。

API Key 来自你的 OpenCode Go 订阅(默认引用 OPENCODE_API_KEY,可在 settings.yaml 的 llm-opencode-go.apiKeyEnv 改名)。安装插件不会自动更改默认模型。

0.3.0 起,插件不再有独立的"设置 → OpenCode Go"分区。 配置入口就是 设置 → 模型 里的 OpenCode Go 行,与其它 provider 并列。该行的"编辑"里只有 通用凭据字段;refreshMinutes、autoDiscover、图片预算等插件专有字段仍在 settings.yaml 的 llm-opencode-go 段,行内会明确提示这一点。详见 更新日志 0.3.0。

Headless

安装到 Headless profile:

dsh plugin --profile headless add dsh-opencode-go-plus

将以下内容保存为 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,需要分别安装插件。

5. catalogAdditions 改为可配置

上游把追加项硬编码在源码里。现在它是设置项,默认值不变,可在 设置 → OpenCode Go 里增删:

llm-opencode-go:
  catalogAdditions:
    - id: deepseek-v4.1-flash
      siblingId: deepseek-v4-flash
      inputSiblingId: deepseek-v4-flash-vision-exp
      name: DeepSeek V4.1 Flash

条目必须四个字段齐全,缺一个会被忽略(不会半成品地塞进目录)。

配置

Web 用户可直接在 设置 → OpenCode Go 中修改配置。启用开关立即生效。