DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-opencode-models

Opencode Models

在 settings.yaml 中管理 OpenCode Zen 免费层级和 Go 层级模型:从 opencode.ai 获取实时模型列表,查看每个路由的已配置与实时状态差异,并通过四个代理工具及 OpenCode Models 设置部分进行添加/移除。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:wyouwd1/dsh-opencode-models#3783acac043f158ca0f23470aea7f29ee3f9ec99
README兼容性版本

兼容性与来源证明

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

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

版本

0.1.0stable
2026/8/24

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。Ui Usage Billing@kenz1117/dsh-ui-usage-billingDeepSeek Harness 的用量计费仪表板:侧边栏成本指标和完整的仪表板模态窗口,依据当前多提供商目录定价,并汇总会话日志中的实际用量。Codex Subscriptiondsh-codex-subscription通过 OAuth 在 DeepSeek Harness 中使用 ChatGPT 和 Codex 订阅,支持配额管理、安全重置、网页搜索、图像和快速模式

README

dsh-opencode-models

English | 中文

Manage OpenCode Zen free-tier and Go-tier models in DeepSeek Harness: fetch the live model listings from opencode.ai on demand, compare them with what your routes actually serve, and add or remove entries — through four agent tools and an "OpenCode Models" settings page. The free tier is an explicit official allowlist from the OpenCode Zen docs pricing table (big-pickle, ox-alpha-free, mimo-v2.5-free, hy3-free, nemotron-3-ultra-free, nemotron-3.5-lightning-free, muse-spark-1.2-contributor-free): paid ids the free endpoint also advertises never count, drift or get offered, and suffix-only ids outside that table are not adoptable either.

dsh plugin --profile web add github:wyouwd1/dsh-opencode-models

What it does

DeepSeek Harness serves OpenCode Zen through two llm-pi-ai provider routes configured in ~/.dsh/settings.yaml:

RouteTierEndpointModel ids
opencodeFree (PI_AI_API_KEY)https://opencode.ai/zen/v1usually -free-suffixed
opencode-goGo subscriptionhttps://opencode.ai/zen/go/v1unsuffixed

The listing endpoints disclose ids only — no context windows, output caps, modalities, or reasoning levels — and the lists change over time (limited-time models get delisted). This plugin keeps the two layers honest against each other. The same model often has different ids per tier (x-preview-f-free vs x-preview-f); it never mixes them.

Agent tools

ToolWhat it does
oc_model_statusFetches both listings live and reports per tier: configured count, live count, online-but-not-configured ids, delisted-but-still-configured ids. Read-only.
oc_model_addAdds entries to one route. Pass ids copied verbatim from a status report or full models entries. Ids whose capacities the listing hides require assumeDefaults: true (contextWindow 128000, maxTokens 32000, input text) — every assumption is reported so you can correct it later. An id present only in the other tier's listing is refused with the two-tier id rule explained.
oc_model_removeRemoves configured ids from one route; reports not-found ids and skips the write when nothing matched.
oc_model_syncPreviews drift for both tiers by default. With apply: true it adds every online-not-configured id (assumed capacities flagged); with pruneStale: true it also removes delisted ids.

Model-list edits take effect on the next request — no restart. This plugin never adds or removes whole routes; declaring a new route (apiKeyEnv/baseURL) stays on the Models page and still needs a restart.

"OpenCode Models" settings section

A section pinned to the TOP of the web settings sidebar shows exactly two cards in order — OpenCode Zen free tier, then Go tier — nothing else. Every configured row has a checkbox and a bulk delete-selected bar trims any mix of models across the two lists in one confirmation, removing them from the conversation model list on the next request: configured entries with a "delisted" flag on stale ones, checkboxes over online-not-configured ids, per-row remove, and a two-click sync (preview → confirm). It reads and writes exclusively through the existing configuration-page contracts — settings.describe / settings.update with expectedRevision, and llm.discoverModels for the live listings — and refreshes only while open when pushed invalidations arrive.

Writes are guarded by the settings revision: if the Models page or another session writes first, this plugin re-reads once instead of overwriting it, and schema-invalid candidates are refused before anything persists.

Install

From a checkout:

dsh plugin --profile web add /path/to/dsh-opencode-models
dsh --profile web

From GitHub (sources install without any build step — the shipped lib/ artifacts are plain ESM):

dsh plugin --profile web add github:wyouwd1/dsh-opencode-models

Requirements: DeepSeek Harness ≥ 0.1.1-rc.1 (the llm-pi-ai adapter family, settings seam, and web app), Node ≥ 22.

Configuration

No config keys. The two tier definitions (route keys, base URLs) follow the official OpenCode Zen endpoint layout and the shared credential comes from each route's existing apiKeyEnv (PI_AI_API_KEY). Missing credentials surface the endpoint's 401 message verbatim in tool output and in the panel.

Assumed capacities

The zen listing discloses nothing but ids, so any entry adopted by id needs capacities from somewhere. This plugin's policy:

  • Explicit models entries win — pass real figures when you know them.
  • Otherwise assumeDefaults: true (tools) or accepting the panel's checkbox flow fills contextWindow: 128000, maxTokens: 32000, input: ["text"].
  • Every assumed value is reported back by name; correct them via oc_model_remove + a full re-add whenever you learn better numbers.

Assuming wrong capacities degrades context filing and output caps; it never blocks requests.

Development

npm test          # node:test suites over lib/shared.js, lib/writer.js, lib/tools.js

The host face (lib/index.js) imports no @deepseek-ai/* package: tools register as plain definitions and all services resolve through the cordis context at call time. The browser face (lib/client.js) ships as the closure-factory artifact the module loader expects and requires only platform-seeded modules (react, dsh-client-ui-primitives).

Verification

Reproduce the install smoke test against an isolated DSH home (no effect on your real ~/.dsh):

DSH_HOME=/tmp/ocmm-home dsh plugin --profile web add /path/to/dsh-opencode-models
DSH_HOME=/tmp/ocmm-home dsh --profile web --dump-config | grep opencode-model   # shows the "# == dsh-opencode-models" layer
DSH_HOME=/tmp/ocmm-home dsh --profile web --port 3101 --no-open                 # then open http://127.0.0.1:3101
curl -f http://127.0.0.1:3101/plugins/dsh-opencode-models/client.js             # the served browser half

License

MIT