DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Opencode Go — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
O

@foreveryu/dsh-opencode-go

Opencode Go

OpenCode Go 和 Zen 的实时模型发现、会话路由、定价及适用资格诊断,适用于 DeepSeek Harness

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:gosomea/dsh-opencode-go#a39b0cbefb0136c7c0366be7060e527ad2066487
README兼容性版本

兼容性与来源证明

Opencode Go 以 @foreveryu/dsh-opencode-go 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/15

版本

0.1.2stable
2026/10/15
0.1.1stable
2026/10/4

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/15
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。Cost Meterdsh-cost-meterDeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(13 家,含 OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询)、自定义 Provider

README

dsh-opencode-go

Live OpenCode Go and Zen catalogs for DeepSeek Harness, including current token rates, zero-rate filters, protocol selection and Session affinity headers. 简体中文

Compatibility and installation

Version 0.1.2 supports DeepSeek Harness 0.2.0-rc.2 and 0.2.1-alpha.3 through public provider APIs; see Host compatibility and current-host verification. Version 0.1.0 required local Host extensions. Node must satisfy ^22.19 || >=24.

Build and pack this source revision, then install the verified tarball into the target Host. This validation does not publish a registry release:

npm run build
npm pack
dsh plugin --profile web add /absolute/path/foreveryu-dsh-opencode-go-0.1.2.tgz

The unscoped npm name belongs to a different author. This project publishes only under @foreveryu/dsh-opencode-go. For an existing Go/Zen configuration, run the migration script from the installed package after reviewing its dry run.

Build using dependencies from that built checkout during local development:

node scripts/link-host.mjs /absolute/path/to/deepseek-harness
npm run check
npm test
npm run build
npm run pack:check

Install using the target checkout's dsh launcher and the intended DSH_HOME:

dsh plugin --profile web add link:/absolute/path/to/dsh-opencode-go
node /absolute/path/to/dsh-opencode-go/scripts/migrate.mjs --home /absolute/path/to/.dsh --profile web
node /absolute/path/to/dsh-opencode-go/scripts/migrate.mjs --home /absolute/path/to/.dsh --profile web --apply

The migration requires an existing llm-pi-ai profile patch. It moves configured opencode-go and opencode routes, retaining credential references, request settings and capability overrides that differ from current discovered metadata. Removed/unsupported model overrides remain stored but are not offered as live models. It backs up the exact original profile, detects intervening edits, and replaces the patch atomically. It never reads API key values. A dry run refreshes only the public catalog cache. Custom provider endpoints or protocol overrides require review before migration. Install into a dedicated home first when rebuilding the Host.

For a new installation, configure opencode-go.providers with opencode-go: { apiKeyEnv: OPENCODE_GO_API_KEY } and/or opencode: { apiKeyEnv: OPENCODE_API_KEY }. Remove these routes from the generic llm-pi-ai.providers settings. Do not add excludedProviders: the official Host does not support it. Resolve those credential references through DSH credentials or the Host environment. An unconfigured plugin is dormant. The plugin's generated settings page exposes configuration; built-in OpenCode directory entries still point to native settings, so edit plugin-owned credentials and tuning through this plugin's settings instead; existing credential references continue to work.

Use

Open Settings → Models → OpenCode Go / Zen. Refresh explicitly, search by model ID/name, or enable the zero-rate filter. Provider models appear automatically after a successful refresh; model descriptions also carry the rates. Separate Zen and Go tabs show compact price lists. Hover or keyboard-focus a model row for its ID, protocol, capacity, source, and access restrictions; unsupported entries carry a warning marker. New entries are discovered at startup and every six hours by default. refreshIntervalMs: 0 disables periodic refresh; sourceTimeoutMs defaults to 30 seconds.

Go and Zen use separate /models lists under the documented /inference/go/v1 and /inference/v1 endpoints. Saved catalogs using the previous /zen endpoints remain readable until a successful refresh replaces them. Exact provider/model identity is joined with the official protocol table, Models.dev capacity metadata and the installed pi-ai catalog. Unverified chat protocols or capacities are not invented. Inference requests carry x-opencode-session from the actual Session ID; standalone calls receive a new UUID. HTTP transport, streaming, tools, images and reasoning conversion use DSH's PiAiAdapter.

Rates are USD per million tokens: input, output, cache read and cache write. Unknown rates show —. A model is marked free only when both input and output are explicitly zero and known cache/tier rates do not charge. Go reference rates describe metadata, not subscription quota. Zen zero-rate models can require OpenCode's own client; the plugin reports that restriction and does not impersonate another client. Account credit, remaining quota and future promotional availability are not inferred.

The cache at $DSH_HOME/plugins/dsh-opencode-go/catalog-v1.json contains public metadata only. A failed refresh keeps the last validated snapshot and exposes the error and observation time. Abort and timeout cancel owned requests; unload withdraws provider, discovery and HTTP registrations. The authenticated Host exposes GET/POST /api/opencode-go/catalog; POST refreshes the catalog. No credential is sent to public metadata services or returned to the browser.

Screenshots

Captured from an empty Session in an isolated, compatible DSH Host. Counts and rates are a point-in-time view, not account entitlement.

Zen model settings

Go model settings

Model details

Conversation model picker

Model Experience

OpenCode inference

What the model sees

The selected model receives DSH's existing pi-ai conversion of the Session messages, system prompt, tools and admitted images. This plugin adds no prompt, tool or hidden instruction. Session affinity is transmitted in an HTTP header. Catalog descriptions and prices are user-facing metadata.

Token effect

No additional prompt tokens. Discovery and pricing refreshes are public HTTP requests, not model inference. The selected provider determines billed tokens.

KV Cache effect

Session IDs stay stable across requests in one Session. This may support provider-side affinity but does not guarantee cache hits. Changing model, protocol or explicit capability overrides can change request conversion and invalidate prefix reuse.

Verification and limitations

npm test covers fixed-source discovery, zero/unknown pricing, protocol routing, real HTTP request headers, cache failure/abort behavior, and a file-backed Loader composition with disposal. npm run pack:check inspects the distributable. Real-host evidence is recorded in verification. Online access varies by account; discovery does not prove entitlement for every listed model.

The public documentation table is parsed as static HTML. An incompatible upstream table change fails refresh rather than silently reverting to a stale built-in list. There is no account-quota API integration, OAuth login flow, or automatic purchase. Only text/image input supported by DSH is advertised. Non-chat Jev /systemone entries remain diagnostic rows.

Runtime invariant: no companion is published. Adapter metadata and the HTTP/UI views derive from one committed catalog snapshot; there is no separately maintained event projection to compare. Validation, atomic cache publication and disposal tests enforce the owned behavior.

Skill and removal

The accompanying skill describes refresh, repair and migration. Enable it by linking that directory under $DSH_HOME/skills/dsh-opencode-go, after checking an existing target. It is not enabled merely by being present in the package.

To roll back, restore the migration's exact cordis.patch.yml backup while the Host is idle, then remove the plugin with dsh plugin --profile web remove @foreveryu/dsh-opencode-go. Restoring the backup reassigns the canonical provider routes without changing Host source. Keep the backup until verification is complete; do not restore over unrelated later profile edits without merging them. The public cache can remain or be deleted independently.