airainal/dsh-edge-companion ↗★ 3
dsh-edge-companion
Connects DeepSeek Harness to the user's logged-in Microsoft Edge: local bridge, MV3 side panel, and real-tab control over CDP.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:airainal/dsh-edge-companion四、使用
在侧边栏里
| 操作 | 说明 |
|---|---|
| 输入指令 | 例如「打开 bilibili.com 看看热门,挑三条告诉我」 |
| 顶部会话下拉 | 选择真实 DSH 会话接力,或 + 新建(客户端立即可见) |
| 模型/推理选择器 | 客户端同款二级菜单:根页「模型 / 推理等级」;模型页按 provider 分组(DeepSeek 账号、zai-coding-cn…)带勾选;推理页为当前模型档位 |
| 双端同步 | 侧边栏改模型/推理 → 客户端会话立即生效;客户端改 → 2 秒内同步回侧边栏 |
| 新 API 自动出现 | 目录每 20 秒自动刷新;打开选择器时强制刷新,无需改代码 |
| 发送键变形 | 执行中同一个按钮变成红色停止方块,点它停止;结束后恢复向上箭头 |
| DSH · Codex | 顶部标签只显示客户端 Codex 状态,不在插件里新增开关 |
| 思考 / 工具折叠块 | 点击展开看完整参数与结果;执行中思考实时增量显示 |
在终端 / 脚本里
bin\edge.cmd status
bin\edge.cmd tabs
bin\edge.cmd open https://example.com/
bin\edge.cmd snapshot 123 --interactive
bin\edge.cmd click 123 42
bin\edge.cmd fill 123 42 @nick.txt
bin\edge.cmd eval 123 @expr.js
bin\edge.cmd cdp 123 Page.navigate @params.json
bin\edge.cmd questions 123
bin\edge.cmd fill-answers 123 @answers.json
bin\edge.cmd shot 123 out.png
约定:参数以 @ 开头表示从该 UTF-8 文件读取,这是 Windows 下传中文/长文本/代码最稳的方式。
五、配置
bridge\engines.json(改完重启桥接生效):
{
"mode": "dsh",
"dsh": {
"exe": "",
"profile": "headless",
"storeAuth": true,
"provider": "deepseek-account",
"model": "deepseek-flash",
"models": [
{ "id": "deepseek-flash", "label": "DeepSeek-V4.1-Flash" },
{ "id": "deepseek-v4-pro", "label": "DeepSeek-V4-Pro" }
],
"timeoutMs": 1800000,
"cwd": "",
"extraArgs": []
}
}
| 字段 | 说明 |
|---|---|
mode | dsh = 自动唤醒无头 DSH;queue = 只排队,由在线会话 POST /session/claim 领取 |
exe | DeepSeek Harness.exe 路径;留空自动探测(环境变量 / PATH / 注册表卸载信息 / 常见目录 / 自带 node 反推) |
profile | 无头任务使用的 DSH profile,默认 headless |
storeAuth | 复用桌面版已登录账号(headless 默认关闭托管凭据,桥接自动生成 --patch overlay 打开) |
provider / model | 模型路由;底部下拉切换会写回这里 |
models | 模型下拉候选 |
timeoutMs | 单次唤醒上限(默认 30 分钟) |
环境变量:DSHEDGE_PORT、DSHEDGE_TOKEN、DSHEDGE_AUTO_WAKE=0、DSHEDGE_MODEL、DSHEDGE_DSH_EXE、DSHEDGE_TIMEOUT_MS、DSHEDGE_CWD。