dsh-desktop-embed
Embed the desktop DSH UI inside DSHA's WebView instead of handing it to the system browser: a loopback reverse proxy on the phone plus an iframe shell page.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lzlrt/dsh-desktop-embed說明文件
閱讀完整 README ↗第一次使用:填两个值
点侧栏的「桌面版」按钮会先打开 /embed/setup(纯表单,没有 JavaScript):
| 字段 | 填什么 |
|---|---|
| 中转地址 | dsh-desktop-link 那套 bridge.py 的地址,例如 http://192.168.100.2:8791 |
| 中转密钥 | bridge-secret.txt 里的那串 hex |
| 代理端口 | 留空用默认 8799;被占用就换一个 1024–65535 |
提交后插件会立刻向桥要一次配对链接(GET /link)、跟一次 /pair-accept,把 dsh_pair 拿在手里,然后 303 跳到 /embed。
配置落在 $DSH_HOME/dsh-embed.json(权限 0600)。也可以用环境变量覆盖:
export DSH_EMBED_BRIDGE_URL=http://192.168.100.2:8791
export DSH_EMBED_BRIDGE_KEY=
export DSH_EMBED_PORT=8799