Enable or disable model providers, search models in the selector, and rename provider display names.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zuojinxin/dsh-provider-switch
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
为 DeepSeek Harness 的模型选择器加上供应商启停开关、模型搜索和供应商重命名。
功能
- 供应商启用 / 禁用 — 设置 → 模型页,每个供应商行前有开关。禁用后该供应商的模型从输入框选择器和
/model弹层中隐藏,且会话不会再调用它的模型:llm/stream被拦下并直接报PROVIDER_DISABLED(403),不重试、不静默换供应商。 - 模型搜索 — 输入框模型选择器顶部有关键字搜索,同时匹配模型名、模型描述和供应商名,多个词按空格分开取交集。
- 供应商重命名 — 设置 → 模型页展开供应商编辑卡片后,点卡片标题即可内联改显示名;清空则回落到原始名称。
- 打开即定位 — 弹窗打开时直接滚到当前选中的模型,不用自己往下找。



安装
dsh plugin --profile desktop add 'github:zuojinxin/dsh-provider-switch'
装完重启 DSH 桌面版生效。
验证
启动日志出现 [provider-switch] own row "provider-switch" (persisted), disabled=[...],且设置 → 模型页每个供应商行前出现开关,即挂载成功。
开关状态持久化在 profile 的 cordis.patch.yml(命名空间 provider-switch)。如果日志里写的是 memory only 或 not writable,说明当前 profile 组合里这一行不可写,开关只在本进程内生效——重启即丢。
兼容性
面向 DeepSeek Harness 0.2.2-rc.1(桌面版实测)。插件按 dsh.client / dsh.bundle.patch 约定挂载,不依赖宿主的私有接口;宿主升级后若模型选择器的槽位名或设置页类名变化,会按下文「已知限制」里的方式降级,不会导致宿主报错。
卸载
dsh plugin --profile desktop remove dsh-provider-switch
文件
lib/index.js— Host 侧:settings 命名空间读写、llm/stream拦截、/api/provider-switchHTTP 端点lib/client.js— 浏览器侧:模型选择器(shadow 官方conversation.input.model槽位)、设置页开关、重命名、样式cordis.patch.yml— 安装挂载层,安装时由 DSH CLI 合并进 profile
已知限制
- 选择器是 shadow 接管,不是替换。插件以
priority: -1注册同一槽位,数据面刻意复用官方注册项自己的inject:这样其他插件对官方模型列表的隐藏/投影仍然生效,本插件只在其上叠加禁用过滤。找不到官方注册项时回落直接读modelDirectories,行为退化成「和官方一致 + 多一层过滤」。 - 开关和重命名基于 DOM 注入。DSH 升级改类名时这两块会消失(静默降级,不影响模型选择器本身)。
- 禁用只拦模型调用,不隐藏设置页里的供应商行,也不改供应商自身的登录态。
- 只拦
llm/streamwaterfall。绕过该 waterfall 的直连调用不在拦截范围内。 - 「DeepSeek 账号」是账号态派生的伪供应商(provider id
deepseek-account)。禁用只拦它的模型调用,官方页面仍显示「已登录」;要彻底移除请到「账号与余额」登出。 - 上游 provider 的目录加载失败会以横幅形式显示在选择器里。文案由那个 provider 自己产生(例如 Jet Hub 的渠道凭据失效),本插件只负责原样渲染、并保证它不挤占模型列表的可滚动空间;要消掉横幅得去对应 provider 的设置页修凭据。
许可
MIT
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 65496
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 1299
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 893
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 573
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
Mars-Sea/dsh-commandcode-provider★ 463
Unofficial Command Code LLM provider: registers a `commandcode` route with a live model catalog and reasoning-effort support.
XDTrees/dsh-workbuddy-xdpool★ 460
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.