BreakFree003/dsh-clinepass-deepseekv4.1
Cline Pass for DeepSeek Harness (dsh): one pi-ai provider route pinned to the DeepSeek upstream channel, key entered on Settings → Models. Share-only snapshot — 分享性质,非长期维护。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that integrates Cline Pass gateway access directly into DSH. It pins all LLM requests to the official DeepSeek upstream channel through Cline Pass, with no fallback to other routes. Users enter their Cline Pass API key directly through DSH’s built-in Settings > Models page, and the plugin adds a usage meter to the model card that displays remaining quota for 5-hour, weekly, and monthly billing cycles. To install the plugin, you can run the one-liner dsh plugin --profile web add github:BreakFree003/dsh-clinepass-deepseekv4.1 which handles setup automatically if you have pnpm in your PATH.
The plugin works by injecting a wrapper around the global fetch object in-process, and only modifies the request body of chat/completions requests sent to the Cline Pass gateway. It adds the required gateway pinning field to the request body, leaves all other requests untouched, and automatically strips the transport-level prefix from model names in prompts to match official formatting. It also automatically provisions the Cline Pass provider profile: creating it if missing, updating the endpoint if an existing outdated profile is detected. It is targeted at DSH users who maintain an active Cline Pass subscription.
The plugin requires DSH version 0.1.6-alpha.1 or newer (the only version it has been tested against) and Node.js 20 or higher, and has no third-party dependencies, relying only on Node built-in modules. This is a snapshot of the author’s personal use plugin, released under the MIT license as-is, with no promise of ongoing maintenance or updates to match future DSH interface changes. If DSH changes its internal request handling logic, the plugin can stop working silently, so users should check the generated status file periodically to confirm the plugin hook is still active.
dsh-clinepass 是一个专为 DeepSeek Harness (DSH) 开发的原生插件,作用是将 Cline Pass 接入 DSH,并把所有 LLM 请求钉死在 DeepSeek 官方上游渠道,不会触发回退机制。用户可以直接在 DSH 的「设置 → 模型」页面填入 Cline Pass 的 API 密钥,插件还会在模型卡片上展示 5 小时、每周、每月的剩余用量条。插件默认不开启任何本地端口,全程以进程内注入方式工作。
插件采用进程内全局 fetch 注入的方式工作,仅修改发往 Cline Pass 网关的 chat/completions 请求体,添加渠道钉选字段,不对其他任何请求做修改。它还会自动处理提示词中的模型前缀,去掉网关要求的传输层前缀,保证提示词格式和官方一致,同时自动注册对应的 provider 配置:不存在就创建,已存在的旧兼容配置会自动更新地址。它面向使用 DSH 同时也订阅了 Cline Pass 服务的用户。
插件要求 DSH 版本不低于 0.1.6-alpha.1,Node.js 版本 ≥ 20,没有任何第三方依赖,单文件即可运行。项目是作者自用插件的公开快照,按 MIT 许可证分发,不承诺长期维护,也不保证适配 DSH 上游的接口变化。如果 DSH 内部修改了请求处理逻辑,插件会静默失效,用户可以通过状态文件检测插件是否正常工作。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-clinepass-deepseekv4.1(BreakFree003/dsh-clinepass-deepseekv4.1)
仓库:https://github.com/BreakFree003/dsh-clinepass-deepseekv4.1
本站详情页:https://www.yhbd.top/plugins/breakfree003-dsh-clinepass-deepseekv4-1/
本站登记:类型 bundle · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 5 · 最近提交 2026-09-30 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:BreakFree003/dsh-clinepass-deepseekv4.1
把 BreakFree003/dsh-clinepass-deepseekv4.1 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-clinepass
把 Cline Pass 接进 DeepSeek Harness(dsh),并把每条请求钉死在 DeepSeek 官方渠道上(不回退)。 API key 在 设置 → 模型 里直接填,卡片上还带一条 5 小时 / 每周 / 每月 的用量条(显示剩余量)。默认不开任何本地端口。
Cline Pass for DeepSeek Harness. One provider route, pinned to the DeepSeek upstream channel, with the API key entered on Settings → Models — plus a usage card for the 5-hour, weekly and monthly windows.
分享性质,非长期维护项目。 这是作者自用插件的公开快照:按 MIT 原样提供, 不承诺持续维护,也不承诺跟进上游 dsh 的接口漂移。插件依赖 dsh 的内部行为 (pi-ai 每次请求新建 client、不传自己的
options.fetch,因此真正发请求的是全局fetch);上游哪天改掉这一点,插件会静默失效——下面的状态文件 (hook: installed)就是为这件事准备的报警器。装之前建议先读「验证」一节。 能跑测试不代表上游永远不变。维护者发版走 RELEASING.md 里的清单 —— tag 和 GitHub Release 是两件事, 只推 tag 的话 Releases 页面会是空的。
它做了什么(架构)
四件事各由最合适的部分负责:
路由本身是一个普通的 pi-ai provider profile(
llm-pi-ai.providers.cline-pass):OpenAI 兼容协议 + 一个存在凭据库里的 key。 正因为如此,它才会**原生出现在「设置 → 模型」**里 —— key 输入框、模型目录、地址都是 dsh 自带的界面,不需要自写 UI,也不需要一个可能随 dsh 升级而漂移的手写流式 adapter。本插件只做一件事:给请求体加上渠道钉选字段。 Cline Pass 的钉选是请求体里的
providerOptions.gateway.only,而 dsh 刻意屏蔽了 pi-ai 的openRouterRouting/vercelGatewayRouting兼容开关 —— settings 里写不了。插件把这个字段加在出去的请求上,字节层面其它什么都不動,SSE / 工具调用 / 推理 / 用量 / 图片全部走 pi-ai 已验证的通路。提示词里的模型名去前缀(0.6.2 起)。网关要求请求体的
model是type/model形状(裸 id 会被拒:invalid model format. Expected format: modelType/model),而 dsh 把 catalog 的models[].id原样发给线上 —— 所以这条路由的 id 必须写成cline-pass/deepseek-v4.1-flash。前缀是传输层的要求,但{{model}}会把它当模型名渲染进 persona,而官方部署的提示词里是没有前缀的(官方deepseek路由的 id 本身就是裸 id)。 插件因此在提示词装配时把 persona 两段模板里的{{model}}换成deepseek-v4.1-flash:线上 id、 会话记录、选择器都不动,只改提示词显示。详见下面的plainModelId选项。Cline Pass 卡片上的用量条(0.7.0 起):5 小时 / 每周 / 每月三条,显示剩余百分比、重置倒计时和读取 时间,带一个刷新按钮。数据由宿主半边用凭据库里的 key 去问网关 (
GET https://api.cline.bot/api/v1/users/me/plan/usage-limits,与开源的 CodexBar 同一个端点),挂在一条同源路径上给浏览器读 —— 浏览器永远拿不到 key。详见下面的「用量条」一节。
dsh ──pi-ai──> https://api.cline.bot/api/v1 (进程内改写请求体,无监听、无端口)
注入方式是进程内的:包一层 globalThis.fetch,只改写发往本网关的 chat/completions 请求体。
依赖的是 pi-ai 的既有行为(它每次请求新建 client、不传自己的 options.fetch,所以真正承载请求的就是全局 fetch);万一将来 dsh 改成自带 fetch,就会静默失效 —— 下面的状态文件就是为此存在的。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
jingyunstudio/jingyun-dsh
yjh051108/dsh-super-injector
fangqian616/consensus-pipeline
feibi-mochi/deepseek-harness-control-center
ArvinQi/dsh-mcp
SummerSec/AI-Inner-Os
ciyuan1234/MCM_skills