DeepSeek Harness Hub
← 返回列表

Wilfred-wei/dsh-fingerprint-relay

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

让 DSH 连上那些按 TLS 指纹拦截客户端的供应商例如 agentrouter.org。

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/24 · 已提供中文文档

DSH 插件:受管理的本地指纹中继,使 DSH 能够访问那些根据客户端 TLS 指纹进行限制的提供商

综合分
27.3
GitHub 分
27.3
用户评分
★ Stars
0
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add Wilfred-wei/dsh-fingerprint-relay
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/19(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
依赖的 DSH / Cordis 模块
@deepseek-ai/schemastery@deepseek-ai/cordis@deepseek-ai/dsh-api-remotes@deepseek-ai/dsh-attachment@deepseek-ai/dsh-brand@deepseek-ai/dsh-client-connection@deepseek-ai/dsh-client-locale@deepseek-ai/dsh-client-runtime@deepseek-ai/dsh-client-ui-settings@deepseek-ai/dsh-client-ui-slots@deepseek-ai/dsh-invariants@deepseek-ai/dsh-llm
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

DSH 指纹中转

让 DSH 连上那些按 TLS 指纹拦截客户端的供应商(例如 agentrouter.org)。

插件在本机跑一个被对方放行的 Python 出口进程,DSH 的请求经它转发出去。

什么时候需要它

供应商在浏览器或官方 CLI 里能正常用,但 DSH 里报 unauthorized client detected 或 403。

前置条件

- DSH Desktop(框架 0.1.0-rc.8)
- Python 3.11+

安装

git clone https://github.com/Wilfred-wei/dsh-fingerprint-relay.git
cd dsh-fingerprint-relay
.\scripts\install.ps1

脚本会装插件、建 Python venv、装依赖、把解释器路径写进 profile,并校验安装结果。

装完重启 DSH Desktop。

不用脚本,手工两步

1. 装插件
dsh plugin --profile web add dsh-fingerprint-relay

2. 建 Python 环境
$relay = "$env:USERPROFILE\.dsh\profiles\node_modules\dsh-fingerprint-relay"
python -m venv "$env:USERPROFILE\.dsh\fingerprint-relay-venv"
& "$env:USERPROFILE\.dsh\fingerprint-relay-venv\Scripts\python.exe" -m pip install -r "$relay\resources\requirements.txt"

再把解释器写进 %USERPROFILE%\.dsh\profiles\web\cordis.patch.yml:

- id: fingerprint-relay-host
config:
pythonPath: C:\Users\\.dsh\fingerprint-relay-venv\Scripts\python.exe

使用

1. 设置 →「指纹中转」→ 添加中转
- 上游地址:https://agentrouter.org
- 本地端口:7187
2. 点启动,状态显示 running / healthy
3. 在「经由中转的供应商」里,把 Anthropic 供应商(如 agent-claude)指向这个中转
4. 正常对话即可

API key 仍然只在供应商配置里填写一次,中转不保存密钥。

限制

- 只有 Anthropic Messages 通道;new-api 类网关的其他模型(如 GPT)把供应商协议设为 anthropic-messages 即可使用(网关自动转换),原生 OpenAI 接口不支持
- 出口进程只监听 127.0.0.1
- 在 Windows 上验收

故障排查

| 现象 | 处理 |
| --- | --- |
| 设置页没有「指纹中转」 | 重启 DSH Desktop;dsh --profile web --dump-config 里应有 fingerprint-relay-host |
| 启动失败,提示缺少 Python 包 | 重跑 .\scripts\install.ps1,或对该解释器执行 pip install fastapi uvicorn httpx anthropic |
| 启动失败,提示端口被占用 | 换一个本地端口 |
| 请求返回 401 | 对应供应商没有配置 API key |
| 卡很久后报 no stream data for 120s | 上游卡住,中转已自动重试过一次,重发即可 |
| 改了配置没生效 | 在设置页点停止再启动 |

从源码构建

npm install --legacy-peer-deps
npm run build
npm test
npm pack --ignore-scripts

架构与行为规格见 docs/。

许可证

MIT

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群