DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Model Router — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@welsione/dsh-model-router

Model Router

Unified ModelID routing for DeepSeek Harness: one logical model id over multiple providers, first-token failover with cooldown, health-aware ranking, fallback reasoning efforts, purpose-based simple/complex task split, per-tier reasoning effort, and a set

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:welsione/dsh-model-router#b30a0b3d5adaafc51e9f691a99fc2eaa747070ec
READMECompatibilityVersions
对话窗口档位选择器设置面板路由管理

Compatibility and provenance

Model Router is published as @welsione/dsh-model-router and currently resolves to version 0.0.10. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/20/2026

Versions

0.0.10stable
9/11/2026
0.0.9stable
9/11/2026
0.0.8stable
8/27/2026
Show 7 more versionsCollapse versions
0.0.7stable
8/25/2026
0.0.6stable
8/25/2026
0.0.5stable
8/25/2026
0.0.4stable
8/25/2026
0.0.3stable
8/24/2026
0.0.2stable
8/23/2026
0.0.1stable
8/23/2026

Related plugins

Loading related plugins…

Latest
0.0.10
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 2
Weekly downloads
114
Last push
9/11/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a dedicated pet bubble for the current providerWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

dsh-model-router

dsh-model-router:一个逻辑 ModelID 汇聚多家供应商,按套餐三档候选链自动故障转移

统一模型路由插件:一个逻辑 ModelID 汇聚多家供应商的同名模型,按套餐组织候选链(每套餐三档 tier1/2/3)——首 token 前失败自动切换并冷却、健康度择优、每候选思考级别;对话窗口可手动选档,设置面板改路由与模型能力自动保存、即时生效。

📦 已发布 npm:@welsione/dsh-model-router

dsh plugin --profile web add @welsione/dsh-model-router

Screenshots / 界面预览

对话窗口 · 套餐与手动档位设置面板 · 路由管理
对话窗口档位选择器设置面板路由管理

左:对话窗口「套餐 · 档位」选择器——每套餐独立档位名(如 穷鬼套餐:夯 / NPC / 拉完了),点击即可手动选档,底部显示当前命中的 provider/model + 思考级别。 右:设置页「统一模型路由」管理面板——每套餐候选链 + 每候选失败/成功计数(健康度)、思考级别、切换统计(280 请求 · 切 9)、冷却与模型能力编辑,修改自动保存。

Overview / 简介

能力一句话
多套餐路由多个套餐(Route Group)并存,每套餐独立三档候选链与档位名,按需选用
自动故障转移主候选首 token 前失败(限流/配额/认证/网络/模型不存在/空响应)自动切下一候选;失败候选分级冷却(限流短、服务端中、认证长)+ 连续失败指数退避(封顶 30 分钟)
健康度择优候选按滑动窗口时间衰减 + 错误码加权评分重排——最近结果权重高,服务端类失败扣分重、限流类轻,稳定成功的提前、频繁失败的延后,可一键关闭
三档分级 + 手动档位每套餐 tier1 轻量 · tier2 标准 · tier3 强大,按 purpose 自动选档、档空逐级降档;对话窗口可会话级手动选档
思考级别每候选可配 reasoningEffort,保存时实际请求预检,只允许宿主真正支持的档位
档位名称每套餐独立自定义档位显示名(routes.<id>.tierNames),彩色胶囊点击即改名,对话窗口同步展示
模型能力写回管理面板可编辑自定义供应商模型能力(思考级别档位/contextWindow/maxTokens)并写回宿主 llm-pi-ai,热重载生效
管理面板DSH 设置页内置「模型路由」卡片,路由统计/冷却/健康度/能力编辑,修改自动保存;对话窗口套餐选择器实时路由状态
界面语言面板文案经宿主 locale 注册表(model-router 命名空间)提供 zh/en 双语,跟随界面语言免刷新切换;第三方语言包可对同一命名空间补充翻译
会话安全会话事件可恢复、跨 provider 自动清洗 replayState

Compatibility / 兼容性

  • DSH 0.1.0-rc.x – 0.1.5-rc.x(0.1.5-rc.1 实测,兼容 0.1.2 起的 settings.installSection 新 API)· Node.js ≥ 22(React 18/19)· 最后验证 2026-09-11。

Install / Uninstall · 安装 / 卸载

已发布到 npm(@welsione/dsh-model-router)。dsh plugin add 会自动从 npm 拉取:

dsh plugin --profile web add @welsione/dsh-model-router   # 安装
dsh plugin --profile web remove @welsione/dsh-model-router  # 卸载

npm 拉不动?可改走 GitHub 源:dsh plugin --profile web add github:welsione/dsh-model-router。

装好后设置页出现「模型路由」卡片;对话窗口模型选择器变为「套餐」选择器(三档切换)。详见 docs/usage.md。

Quick start / 快速开始

打开 设置 → 模型路由,添加统一 ModelID(如 deepseek-v4-flash),为 tier1/2/3 各配候选即可——修改自动保存、即时生效。最小配置与完整示例见 docs/usage.md。

Configuration / 配置

面板可视化编辑 enabled / cooldownMs / maxSwitchesPerStep / healthRanking / reasoningEffortsFallback / routes(含每套餐 tierNames)。完整配置表、模型能力写回宿主 llm-pi-ai 与面板 API 见 docs/usage.md。

Permissions & data / 权限与数据

不对外发请求、不读写工作区文件、不上报遥测、不接触 API key;运行时状态为内存态,手动档位持久化到宿主 settings。

Troubleshooting / 故障排查

设置页无卡片 / 候选不在目录 / 自动保存失败 / 一直切换 / 会话打不开 → 快速排查清单见 docs/usage.md。

Development / 开发

npm test                 # 单元测试(node:test,零依赖)
npm test && npm pack --dry-run   # 发布前四连

纯逻辑 lib/core.mjs + 接线 lib/index.js + Web UI lib/client.js;合规自检与证据见 docs/self-check.md。

发布新版本(自动发布到 npm)

打 v<version> tag 推送后,GitHub Action(npm-publish.yml)会校验 tag 与 package.json 版本一致,然后自动 npm publish:

npm version patch   # 升版本号(patch/minor/major,同步 CHANGELOG)
git push && git push --tags

发布需要仓库配置 NPM_TOKEN secret(npm 账号 welsione 的 Automation token)。

License & security / 许可证与安全

MIT。安全问题请通过仓库 issue 私下报告。