Clarklevis1995/dsh-plugin-mobile-gateway
DeepSeek Harness 的设备鉴权移动网关,支持会话与实时事件、排队消息同步及编辑/删除/Steer、Session 归档和重命名的双向同步、停止当前生成并稍后继续、任务列表和当前 Goal 同步及管理、服务端驱动的命令和技能菜单、Human-in-the-loop、图片及文件传输。安装后,Harness WebUI 左侧边栏会出现“移动设备”入口,可直接开启网关、生成配对二维码和管理可信设备。
catalog descriptioncatalog 简介 / catalog description:以websocket为通信方式的dsh网关插件,支持在同一网域内移动端的接入,实现移动端的dsh app
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that acts as an authenticated mobile gateway for remote access to DSH from mobile devices. It supports bidirectional sync of sessions, message editing, deletion, and steering, session archiving and renaming, stopping generation and resuming later, goal management, human-in-the-loop interactions, and file transfers. After installation, it adds a “Mobile Devices” entry to the DSH WebUI sidebar, where users can start the gateway, generate pairing QR codes, and manage trusted devices. It is built specifically for DSH 0.1.5-rc.2 and newer, and does not support older DSH releases.
This plugin is designed for users who want to access their DSH instance from a mobile device, and it pairs with an official companion iOS client available in a separate sibling repository. It supports multiple connection scenarios, including local LAN pairing, Tailscale tunneling, temporary Cloudflare quick tunnels, and public Linux server deployment. To connect, users set the gateway running mode in the DSH WebUI, generate a one-time use QR code, then scan it with the iOS client to complete authentication and pairing. Each QR code can only be used once and expires after 5 minutes, so users must generate a new one if pairing fails.
This plugin is released under the open-source MIT license, and installation requires a working DSH CLI installation and the pnpm package manager. Users can install it directly via the dsh plugin add command, and public server deployment can use the provided init script to automatically configure system helpers and Nginx reverse proxy. When setting up connections, users must configure firewall rules correctly, and each gateway instance requires a separate state file to store authentication and identity data. Users must retain the state file during upgrades and migrations to avoid re-pairing all connected mobile devices.
这是一个专为DeepSeek Harness(DSH)开发的原生插件,提供设备鉴权移动网关能力,支持会话同步、消息编辑删除、会话归档重命名、停止生成续跑、任务目标管理、人机协作以及图片文件传输等功能。安装完成后,会在DSH的WebUI左侧边栏添加“移动设备”入口,可用于开启网关、生成配对二维码和管理可信设备,仅适配DSH 0.1.5-rc.2及以上版本。
该插件面向需要在移动设备(目前配套官方iOS客户端)远程连接DSH桌面端的用户,支持局域网配对、Tailscale内网穿透、Cloudflare临时隧道以及Linux公网服务器部署等多种连接场景。用户只需要在DSH WebUI的移动设备面板设置网关运行模式、生成一次性配对二维码,再用配套的iOS客户端扫描即可完成授权配对。
该插件采用MIT许可证开源,安装依赖DSH CLI和pnpm包管理器,可通过dsh plugin命令直接安装,公网部署还可通过提供的初始化脚本一键配置系统Helper和Nginx反向代理。使用时需注意配置防火墙规则,配对二维码5分钟后过期,每个网关实例需使用独立状态文件,升级迁移需保留身份配置避免重新配对。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-mobile-gateway(Clarklevis1995/dsh-plugin-mobile-gateway)
仓库:https://github.com/Clarklevis1995/dsh-plugin-mobile-gateway
本站详情页:https://www.yhbd.top/plugins/clarklevis1995-dsh-plugin-mobile-gateway/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 57 · 最近提交 2026-09-30 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-plugin-mobile-gateway@latest
把 Clarklevis1995/dsh-plugin-mobile-gateway 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-mobile-gateway
DeepSeek Harness 的设备鉴权移动网关,支持会话与实时事件、排队消息同步及编辑/删除/Steer、Session 归档和重命名的双向同步、停止当前生成并稍后继续、任务列表和当前 Goal 同步及管理、服务端驱动的命令和技能菜单、Human-in-the-loop、图片及文件传输。安装后,Harness WebUI 左侧边栏会出现“移动设备”入口,可直接开启网关、生成配对二维码和管理可信设备。
当前源码以 DSH 0.2.0-rc.2 为适配基线,使用 Session format 4;旧版历史游标需重新取得基线。
实时流已改为独立
assistant-stream帧,移动端需要按 rc.2 接入说明 更新订阅、缓存与分页处理。当前修改尚未发布。v0.9.0(当前源码):新增 DSH 0.2.0-rc.2 插件管理能力;PC 端可在面板开启、重启 Cloudflare Quick / 命名 Tunnel,使用插件私有缓存中的
cloudflared并校验文件;配对面板增加局域网与外网入口选择指引;工具菜单可重启网关或停止 DSH Web,重启时不再打开新标签页。v0.7.3:优化移动网关运行模式下拉框的箭头间距。
v0.7.2:新增独立对话/控制连接、空 Session 创建、停止生成与稍后继续、排队消息同步及编辑/删除/Steer,以及 Session 归档和重命名的双向同步。
协议与 DSH 兼容层
移动端连接的是本项目维护的 dsh-mobile-v1,不是 DSH 的内部 Remote 协议。插件内部通过独立 Host Adapter 对接 DSH 0.2.0-rc.2 的 Remote Gateway;Session、Workspace、Settings、Commands、Goals、Schedule、Permission Presets、Plugin Manager 等 namespace 和严格参数只存在于该适配层。插件管理的请求帧及 DSH Mobile 页面方案见 RC2 插件管理对接方案。
配对鉴权和 dsh-mobile-v1 / hello.protocol = 3 保持不变。新版实时 token 不占用持久事件的 seq:客户端显式订阅 assistantStream: true,接收原子的 session-snapshot 和独立增量;普通 event 只携带持久事件。未接入新订阅的客户端只能收到持久消息。
历史响应包含 historyFormatVersion 和 cursor。客户端格式变化时应清理历史缓存、重新安装基线;携带 beforeSeq 的分页或携带 atSeq 的 fork 必须同时发送 historyFormatVersion: 4。
当前协议接入与验收见 rc.2 移动端接入说明;早期迁移记录见 Remote Gateway 重构实施计划。
- WebSocket:
/ws/mobile - 局域网:
ws://<局域网 IP>:3081/ws/mobile - Linux 服务器公网:
wss://<公网 IP>/ws/mobile - 协议文档:PROTOCOL.md
当前源码新增会话模式选择:App 创建空白 Session 后,可查询并修改该 Session 的 Agent preset;首次对话后锁定。通过 session-agent-preset 能力发现接入,详见 App 接入说明。App 界面需按此说明接入,本次源码尚未发布。
多网关第一阶段(当前源码)
插件提供稳定 gatewayId、可配置 gatewayName、配对候选地址列表,以及可持久化的“关闭 / 临时开启 / 常驻开启”运行模式。一个 App 可以分别配对不同机器上的网关;客户端多网关管理仍需按 App 对接说明 实现。本次源码尚未发布新的 npm 版本。
在“移动设备”面板选择“常驻开启”,网关会持续接受已授权设备连接,重启后保持。常驻需要 DSH 进程运行、机器未休眠且网络可达,不提供自动发现或网络中转。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
shaobeichen/dsh-pocket
ningbainb/deepseek-harness-desktop
chokwinlee/deepseek-harness-desktop
SCSpotato/dsh-remote
dclichang2022/dsh-green-meter
omdsh-dev/dsh-notification
mrRisega/dsh-remote
Phant0Meow/dsh-meow-smooth