dsh-opencode-go-provider

DSH PLUGIN模型与账号接入

仓库 edynasty/dsh-opencode-go-provider

模型与账号接入 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

为 DeepSeek Harness 提供 OpenCode Go 模型路由的 DSH plugin,集成 SWR 模型目录、Web Connect 设置卡片与诊断命令。

一句话选型结论

按资料字段整理

dsh-opencode-go-provider 是模型与账号接入类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,列出 4 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类模型与账号接入 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 0 复刻 3 · 未关闭 issue 3
最近更新 2026-08-26 创建于 2026-08-14
README 7.8 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:edynasty/dsh-opencode-go-provider
  1. 1
    确认版本与运行环境

    兼容的 DSH 版本为 0.1.1-rc.2;版本不匹配时安装会报错。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本0.1.1-rc.2版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-opencode-go-provider:DeepSeek Harness 的 OpenCode Go 模型提供方插件

  • OpenCode Go 模型路由
  • SWR 模型目录
  • Web Connect 设置卡片
  • 诊断与迁移命令

上游标签

deepseek-harnessdsh-pluginopencode-go

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度稳定按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✕ 未通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 插件目录树加载失败
  • L5.3_HTTP_SERVED HTTP 服务响应
— · 其它检查项
  • L4_0_SANDBOX 沙盒安装判定 方式:沙盒安装执行

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 标注了兼容的 DSH 版本(0.1.1-rc.2),按版本装不容易报错。
  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在模型与账号接入场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-opencode-go-provider当前 L4 · 沙盒安装通过 低风险 0 0.1.1-rc.2 有
archify L4 · 沙盒安装通过 低风险 8.0 万 未标注 有
DeepSeek-Reasonix L4 · 沙盒安装通过 低风险 3.6 万 未标注 有
nocobase L3 · 安装规范通过 低风险 2.5 万 0.1.1-rc.2 无
learn-harness-engineering L4 · 沙盒安装通过 低风险 2.0 万 未标注 有
dsh-our-free-model 未做沙盒验证 未标注 8,064 未标注 无

仓库档案

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方edynasty仓库 dsh-opencode-go-provider · 默认分支 main
分类模型与账号接入ai
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 3 / 3收录时的数值,非实时
创建 / 更新2026-08-14 · 2026-08-26最后推送 2026-08-26
本站收录2026-08-14首次进入本站目录的时间

README 全文

7.8 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-opencode-go-provider

OpenCode Go LLM provider bundle for DeepSeek Harness (DSH rc.6): a single
opencode-go model route over the OpenCode Go gateway, with a Web Connect
settings card, a stale-while-revalidate model catalog and safe diagnostic
commands.

> Status: community software, not published to npm. This package is
> installed as a commit-pinned Git dependency into a DSH profile; the npm
> registry is not an installation path. It is not affiliated with,
> endorsed by, or sponsored by DeepSeek, OpenCode, or any model provider
> vendor. See LICENSE and THIRD_PARTY_NOTICES.md.

Requirements

  • DeepSeek Harness DSH rc.6 (the bundle targets the 0.1.0-rc.6 peer graph).
  • Node.js ^22.19.0 || >=24.0.0.
  • corepack-managed pnpm 11.7.0 (corepack enable first if pnpm --version
    does not resolve through Corepack).
  • An OpenCode Go API key. The key is stored and resolved only through the
    DSH credentials service at operation time under the ref
    OPENCODE_GO_API_KEY; it is never written into settings, the catalog, logs,
    errors or the package.

Installation (Git, commit-pinned)

The package is not published to npm; the supported installation is a
commit-pinned Git dependency for the DSH web profile:

dsh plugin --profile web add github:edynasty/dsh-opencode-go-provider#d2a447610a5dff4006ac966525effd9669342a78

lib/ is committed to the repository, so the Git install loads the bundle
without a build step. Uninstall removes the package and its bundle row:

dsh plugin --profile web remove dsh-opencode-go-provider

Coexistence with the web base bundle

The web profile's base bundle (@deepseek-ai/dsh-llm-pi-ai) already declares
opencode-go in the provider directory (its catalog ships the route). This
bundle adopts that entry instead of re-registering it, and takes over the
route with its own adapter (richer SWR catalog), Connect card and doctor
routes. No profile changes — and in particular no need to disable
llm-pi-ai — are required to install alongside the base bundle.

What the bundle registers

  • One provider route: opencode-go, mounted by the llm-opencode-go
    bundle row (cordis.patch.yml).
  • One settings namespace: llm-opencode-go (refresh interval, freshness
    window, network timeout, deprecated grace, credential ref).
  • A Web Connect settings card (injected through dsh.client.inject) that can
    connect, test the connection, run diagnostics and disconnect.
  • A standalone bin (dsh plugin --profile web exec dsh-opencode-go-provider)
    for status, doctor, migration-dry-run and migration-apply.

Model catalog and protocols

The embedded catalog (catalog/models.json) is derived from OpenCode's
models.dev metadata (https://models.opencode.ai/api.json); only the
opencode-go provider record is retained. Each model carries its own protocol
from that metadata, and the adapter dispatches per model with no
model-name-prefix guessing
:

Protocol Selection
openai-responses models whose models.dev SDK metadata maps to @ai-sdk/openai
openai-completions models mapped to @ai-sdk/openai-compatible (the default class)
anthropic-messages models mapped to @ai-sdk/anthropic (base URL https://opencode.ai/zen/go)

Model availability is checked against the live endpoint
https://opencode.ai/zen/go/v1/models, which contributes only available
ids; models.dev remains the sole authority for protocol, context, modalities,
cost and reasoning metadata.

Catalog lifecycle (stale-while-revalidate)

  • Embedded catalog is available immediately at boot — offline and without
    a credential.
  • Background refresh keeps a 5-minute freshness window; within it reads
    never touch the network.
  • A 60-minute periodic refresh revalidates; a stale read schedules one
    single-flight background refresh.
  • Every network attempt is bounded by a 10-second timeout.
  • Successful refresh writes the cache atomically (same-directory temp,
    0600, fsync, rename) at
    $DSH_HOME/cache/dsh-opencode-go-provider/catalog.json and only then swaps
    the in-memory snapshot; in-flight requests keep the snapshot they started
    with.
  • Offline fallback: a missing or corrupt cache serves the embedded catalog
    (origin: embedded/corrupt); the corrupt file is never deleted, and
    failures never overwrite the last good state.
  • Quarantine: a live id with no models.dev metadata is recorded with a
    sanitized machine-readable reason and is never exposed as a callable model.
  • 14-day deprecated grace: a models.dev-known model missing from live
    availability stays selectable with a deprecatedAt timestamp; after 14 days
    it is evicted (and resurrects if it returns to live).

Connect / status / doctor / disconnect

  • Connect (Web card or Host route) stores the key only in the DSH
    credentials service under OPENCODE_GO_API_KEY; keys are never rendered
    back, echoed or written anywhere else.
  • Status reports sanitized facts only: configured yes/no, source
    (embedded/cache/refreshed), model count, last refresh, last attempt, refresh
    ok/failed counts.
  • Test connection / doctor performs exactly one authenticated
    GET https://opencode.ai/zen/go/v1/models and reports sanitized counts and
    fixed error codes; it never calls generation endpoints.
  • Disconnect removes only the OPENCODE_GO_API_KEY credential. The
    opencode-go route and Connect card remain registered and selectable —
    disconnect never removes the provider, writes it to a disabled list, or
    touches other providers.

connect/disconnect are Host-only: the standalone bin refuses them with a
fixed message because the DSH credential store is owned by the running Host.

Migrating the manual route

If an older setup configured llm-pi-ai.providers.opencode-go by hand, the
bundle can migrate it away:

dsh plugin --profile web exec dsh-opencode-go-provider migration-dry-run
dsh plugin --profile web exec dsh-opencode-go-provider migration-apply --revision <64-hex>
  • migration-dry-run is read-only and prints the target, the SHA-256 revision
    and removed key/line counts (never the key names or values).
  • migration-apply verifies the expected revision, acquires a same-directory
    lock, re-reads and re-hashes immediately before writing, creates a
    timestamped recoverable backup (never touching credentials files), and
    publishes atomically. A concurrent edit yields conflict with zero
    residue; a second apply is an idempotent no-change.
  • Only conservative YAML shapes are supported: block mappings without flow
    maps, anchors or aliases
    are migrated; unsupported shapes abort
    (unsupported-shape) before any lock, backup or write.
  • The migration preserves the default model, all other providers, comments,
    quoting and key order — only the llm-pi-ai.providers.opencode-go block is
    removed, and the credential ref is left untouched.

Security

See SECURITY.md for the supported scope, the private reporting
route, credential handling and the safe-diagnostics contract.

Development

See CONTRIBUTING.md for setup, the TDD workflow, the
strict-type/no-private-import rules, the 250-LOC production ceiling and the
full local gate:

corepack enable
pnpm install --frozen-lockfile
pnpm run check

CI (.github/workflows/ci.yml) runs the same gates on Node 22.19.0, 24 and 26
with pnpm 11.7.0 and a frozen lockfile. Live smoke requires both a local
RUN_OPENCODE_GO_LIVE=1 opt-in and a local OPENCODE_GO_API_KEY; CI
injects neither, so the step always skips.

License

MIT — see LICENSE. Upstream notices and attribution are retained in
THIRD_PARTY_NOTICES.md.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-opencode-go-provider 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:edynasty/dsh-opencode-go-provider` 即可。

dsh-opencode-go-provider 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-opencode-go-provider 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-opencode-go-provider 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-opencode-go-provider 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.1.1-rc.2。

dsh-opencode-go-provider 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-opencode-go-provider 有哪些功能?

OpenCode Go 模型路由、SWR 模型目录、Web Connect 设置卡片、诊断与迁移命令。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

模型与账号接入
按星标排序,可作替代方案

archify

archify

从仓库或系统描述生成经过校验的自包含交互式架构图、流程图、时序图、数据流图和生命周期图。

L4 · 沙盒安装通过 8.0 万 星

nocobase

nocobase

L3 · 安装规范通过 2.5 万 星

dsh-our-free-model

dsh-our-free-model

为 DeepSeek Harness 挂载免登录、免 API Key 的免费前沿模型通道,装完即用,并附用量看板与 OpenAI 兼容本地转

未标注验证等级 8,064 星

dsh-purge

dsh-purge

dsh-purge 是一款 DeepSeek Harness 设置插件,可修改默认副本、权限策略和工具限制,并添加规则卡片以分组应用补丁,支

L5 · 运行验证通过 4,573 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。