返回目录
模型与 MCP 插件

dsh-fingerprint-relay

Wilfred-wei/dsh-fingerprint-relay

DSH plugin: managed local fingerprint relays so DSH can reach providers that gate on the client's TLS fingerprint

Stars
0
Forks
0
Issues
0
更新
3 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:Wilfred-wei/dsh-fingerprint-relay

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

DSH Fingerprint Relay

Lets DSH reach providers that gate on the client's TLS fingerprint (for example agentrouter.org).

The plugin runs a local Python egress process that the upstream allow-lists, and forwards DSH's requests through it.

中文说明

When you need it

The provider works in a browser or its official CLI, but DSH gets unauthorized client detected or a 403.

Requirements

  • DSH Desktop (framework 0.1.0-rc.8)
  • Python 3.11+

Install

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

The script installs the plugin, creates a Python venv, installs its dependencies, writes the interpreter path into your profile, and verifies the result.

Then restart DSH Desktop.

Without the script: two manual steps
# 1. install the plugin
dsh plugin --profile web add dsh-fingerprint-relay

# 2. create the Python environment
$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"

Then point the plugin at that interpreter in %USERPROFILE%\.dsh\profiles\web\cordis.patch.yml:

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

Usage

  1. Settings -> Fingerprint relay -> Add relay
    • Upstream URL: https://agentrouter.org
    • Local port: 7187
  2. Press Start; the status becomes running / healthy
  3. Under Providers through a relay, point an Anthropic provider (such as agent-claude) at it
  4. Chat as usual

The API key stays where it already is — in the provider's own configuration. The relay stores no keys.

Limitations

  • Anthropic Messages channel only; on new-api style gateways set the provider's protocol to anthropic-messages even for GPT models (the gateway converts them). Native OpenAI endpoints are not supported.
  • The egress process listens on 127.0.0.1 only
  • Accepted on Windows

Troubleshooting

Symptom Fix
No "Fingerprint relay" section in Settings Restart DSH Desktop; dsh --profile web --dump-config should list fingerprint-relay-host
Start fails: missing Python packages Re-run .\scripts\install.ps1, or pip install fastapi uvicorn httpx anthropic for that interpreter
Start fails: port in use Pick another local port
Requests return 401 That provider has no API key configured
Long stall, then no stream data for 120s The upstream stalled; the relay already retried once — send again
Config change had no effect Press Stop then Start in Settings

Building from source

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

Architecture and behaviour specs live in docs/.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: anthropic、deepseek-harness。