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 内部修改了请求处理逻辑,插件会静默失效,用户可以通过状态文件检测插件是否正常工作。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 页面会是空的。


它做了什么(架构)

四件事各由最合适的部分负责:

  1. 路由本身是一个普通的 pi-ai provider profile(llm-pi-ai.providers.cline-pass):OpenAI 兼容协议 + 一个存在凭据库里的 key。 正因为如此,它才会**原生出现在「设置 → 模型」**里 —— key 输入框、模型目录、地址都是 dsh 自带的界面,不需要自写 UI,也不需要一个可能随 dsh 升级而漂移的手写流式 adapter。

  2. 本插件只做一件事:给请求体加上渠道钉选字段。 Cline Pass 的钉选是请求体里的 providerOptions.gateway.only,而 dsh 刻意屏蔽了 pi-ai 的 openRouterRouting / vercelGatewayRouting 兼容开关 —— settings 里写不了。插件把这个字段加在出去的请求上,字节层面其它什么都不動,SSE / 工具调用 / 推理 / 用量 / 图片全部走 pi-ai 已验证的通路。

  3. 提示词里的模型名去前缀(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 选项。

  4. 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 →

← 上一个 Prev deepseek-harness-background 下一个 Next dsh-agent-plugin-market →