快速开始
前置要求
- DeepSeek Harness(支持 bundle 的版本)
- frpc 已开启
webServer(admin API),即frpc.toml里有:
webServer.addr = "127.0.0.1" # 建议本机回环,别绑 0.0.0.0
webServer.port = 7400
webServer.user = "admin"
webServer.password = "…"
- 想用 store 后端:frpc ≥ 0.68,并在
frpc.toml加[store] path = "./db.json"
安装
以下命令中的 web 是 profile 名,按你的实际 profile 替换;dsh 若不在 PATH,用 node <DSH安装目录>/node_modules/@deepseek-ai/dsh/lib/bin.js plugin … 代替。
底层都是 pnpm add,所以 dsh plugin … add <目标> 接受 pnpm 支持的目标: npm 包名、本地目录、git URL、tarball URL。
方式一:npm(发布后,推荐)
dsh plugin --profile web add dsh-frp-manager
方式二:本地目录(开发/试用)
git clone https://github.com/chansanya/dsh-frp-manager.git
cd dsh-frp-manager
dsh plugin --profile web add .
或图形界面:Settings → Plugins → Add plugin → 选本地目录。
方式三:GitHub 直装(git URL)
dsh plugin --profile web add github:chansanya/dsh-frp-manager
# 指定 tag:
dsh plugin --profile web add github:chansanya/dsh-frp-manager#v0.1.0
方式四:GitHub Release 的 .tgz
本地 npm pack 打出 dsh-frp-manager-0.1.0.tgz,上传到 GitHub Release,然后:
dsh plugin --profile web add https://github.com/chansanya/dsh-frp-manager/releases/download/v0.1.0/dsh-frp-manager-0.1.0.tgz
配置
安装后,打开 Settings → FRP 隧道管理,填写:
| 字段 | 说明 |
|---|---|
mode | auto(推荐)/ store / file |
frpcAdminUrl | frpc admin API 地址,如 http://127.0.0.1:7400 |
adminUser / adminPassword | 对应 webServer.user / webServer.password |
frpcConfigPath | 仅 file 后端;填 Windows 路径,如 E:\tools\frp\frpc.toml |
protectedNames | 禁止删除/覆盖的隧道名,逗号分隔 |
可点 「检测现有隧道并填充保护名单」 按钮,自动把现有隧道填进保护名单,再按需删减后保存。
使用
配置好后,直接在对话里对 agent 说人话:
列出 frp 隧道
加一条 5173 端口的 http 预览隧道,子域名 preview
删掉 preview 隧道