---
title: "用 DSH Mobile 配对手机并访问同一工作区与会话"
seo_title: "DSH Mobile 配置：局域网 HTTPS、设备配对与 Android"
description: "在 DeepSeek Harness（DSH）中安装 Mobile，配置局域网 HTTPS、设备配对、移动布局和 Android WebView，并限制远程工作区权限。"
canonical: https://52dsh.com/tutorials/saya-ch-dsh-mobile-install-config/
authors: ["52DSH 编辑部"]
published_at: 2026-08-22
updated_at: 2026-08-22
verified_on: 2026-08-22
maintenance_status: community
verification_level: source_reviewed
risk_level: high
plugin_id: saya-ch-dsh-mobile
tutorial_kind: plugin_configuration
related_plugin_url: https://52dsh.com/plugins/saya-ch-dsh-mobile/
---

# 用 DSH Mobile 配对手机并访问同一工作区与会话

在 DeepSeek Harness（DSH）中安装 Mobile，配置局域网 HTTPS、设备配对、移动布局和 Android WebView，并限制远程工作区权限。

为 DSH 提供经过配对的局域网 HTTPS 网关、移动端布局和 Android WebView，让可信手机访问同一工作区与会话。

如果你的目标是通过配对的局域网 HTTPS 网关和 Android WebView 访问 DSH，本教程会说明如何在 DeepSeek Harness（DSH）中准备、安装、配置、验证和回退 dsh-mobile。本文锁定作者仓库提交 `218cd8b470cd`；已复核固定提交的原始资料，未进行运行实测。

> 对应插件：[查看 dsh-mobile 的功能、权限与兼容性说明](/plugins/saya-ch-dsh-mobile/)。先确认它适合你的工作流，再执行安装。

## 先确认是否适合你

- **分类**：通知远程
- **风险等级**：high
- **核验证据**：source_reviewed
- **兼容性边界**：清单覆盖 DSH 0.1.0-rc.5 至 rc.7 的相关 Host 组件；本站完成固定提交静态审阅，未进行真实手机配对测试
- **主要权限关注**：开启后监听局域网；已配对设备可操作电脑上的 DSH，host.mjs 扩展以桌面用户权限运行，移动脚本具有页面同源权限

如果你准备在重要工作区使用，先阅读插件详情页的权限和数据流说明；“源码已审阅”或“资料已整理”都不等于安全认证。

## 安装前准备

1. 安装 Node.js 22.19、Node.js 24 或项目当前声明支持的更高版本，并确认 `pnpm` 可用。
2. 使用独立的 `web` Profile 和可丢弃测试工作区，不直接连接生产目录。
3. 备份当前 Profile 配置，并记录安装前的 `--dump-config` 输出。
4. 核对固定来源中的外部服务、账号、运行时和平台限制。
5. 作者资料未显示明确的插件专属环境变量；如果运行时要求凭据，不要根据同类插件猜测变量名。

## 安装 dsh-mobile

52DSH 使用目录中记录的精确安装目标，避免直接跟随可能变化的默认分支：

```bash
npx --yes @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web add github:saya-ch/dsh-mobile#218cd8b470cd
```

GitHub 源码插件如果被 pnpm 拦截构建脚本，先检查终端提示的具体包和脚本。只在 `web` Profile 中放行确实需要的构建项，不要全局放行未知依赖。

作者文档还出现了以下命令。它们用于核对功能或开发流程，不应替换上面的锁定安装命令，也不要一次全部执行：

- `dsh plugin --profile web add dsh-mobile@alpha`
- `dsh plugin --profile web exec dsh-mobile setup`
- `dsh --profile web`
- `dsh plugin --profile web add dshmarket`

## 插件专属配置

固定提交没有独立的完整配置章节。52DSH 不猜测字段名，先按最小权限完成 Profile 配置，再用下方检查确认插件实际入口。

**本类插件的最小权限设置：**使用测试账号或私有频道，限制允许的用户、群组、工作目录和命令权限。

### 作者配置片段（README.md）

来源：[固定提交中的 README.md](https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/README.md)。复制前先替换占位符并删除不需要的权限。

```powershell
dsh plugin --profile web add dsh-mobile@alpha
dsh plugin --profile web exec dsh-mobile setup
dsh --profile web
```

### 作者配置片段（README.md）

来源：[固定提交中的 README.md](https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/README.md)。复制前先替换占位符并删除不需要的权限。

```powershell
corepack enable; pnpm install
pnpm dsh plugin --profile web add dsh-mobile@alpha
pnpm dsh plugin --profile web exec dsh-mobile setup
pnpm dsh --profile web
```


## 配置验证与成功结果

1. **确认 Bundle 已加载**

   ```bash
   npx --yes @deepseek-ai/dsh@0.1.1-rc.2 --profile web --dump-config
   ```

   期望结果：组合配置中出现 `dsh-mobile` 或仓库声明的 Bundle 名称。

2. **启动 Web Profile**

   ```bash
   npx --yes @deepseek-ai/dsh@0.1.1-rc.2 web
   ```

   期望结果：DSH Web 正常启动，浏览器控制台和终端没有持续重复的插件加载错误。

3. **执行插件专属最小任务**

   从允许账号发送一条只读请求，再从未授权账号尝试访问。

   期望结果：允许账号收到结果，未授权账号无法进入 Session 或工作区。

## 第一次使用

- 从测试账号请求列出独立工作区文件，不允许修改或执行脚本。
- 只验证一个核心能力，保存输入、输出和日志；确认无异常后再扩大权限或数据范围。

## 数据、权限与凭据

**数据流：**手机 App 或浏览器 → 配对后的 HTTPS 设备会话 → DSH Mobile 网关 → 回环 DSH Web/Host → 会话、工具与事件结果返回手机。

**权限关注：**开启后监听局域网；已配对设备可操作电脑上的 DSH，host.mjs 扩展以桌面用户权限运行，移动脚本具有页面同源权限

**数据存储：**作者资料没有形成统一存储结论。测试时检查 web Profile、工作区、用户目录以及所连接的外部服务，并记录新增文件或远端数据。

真实 Token、API Key、Cookie 和账号 ID 不应写进 Git 仓库、网页截图或公开 Issue。测试结束后撤销临时凭据。

## 卸载、回退与清理

1. 停止正在运行的 DSH Web。
2. 从同一个 Profile 移除插件：

   ```bash
   npx --yes @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web remove dsh-mobile
   ```

3. 再次运行 `--dump-config`，确认对应 Bundle 已消失。
4. 检查测试工作区、插件声明的数据目录和外部服务，手动删除测试数据并撤销测试凭据。卸载依赖不会自动删除这些数据。

## 常见问题

### 安装成功但页面或命令没有出现

先运行 `--dump-config` 确认 Bundle 已进入 `web` Profile，再重启 DSH Web 并硬刷新浏览器。不要通过反复扩大权限来解决加载问题。

### 插件运行后没有得到预期结果

把问题缩小到本页的最小验证任务，检查作者文档要求的变量、外部服务和平台限制。保存终端错误原文，并核对当前安装目标是否仍对应本页固定提交。

作者固定资料中未识别到独立故障章节。遇到插件特有错误时，应先停止 DSH、保留日志并回退插件。

## 固定来源证据

以下资料是本文配置结论的依据：

- [README.md](https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/README.md)
- [SECURITY.md](https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/SECURITY.md)
- [apps/mobile/README.zh-CN.md](https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/apps/mobile/README.zh-CN.md)
- [apps/mobile/README.md](https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/apps/mobile/README.md)

继续查看：[返回 dsh-mobile 插件详情页](/plugins/saya-ch-dsh-mobile/)，重新核对兼容性、权限、同类插件和来源状态。

## 原始来源

- https://github.com/saya-ch/dsh-mobile
- https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/README.md
- https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/SECURITY.md
- https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/apps/mobile/README.zh-CN.md
- https://github.com/saya-ch/dsh-mobile/blob/218cd8b470cdbd43fc44db2219fd950ab3d743b9/apps/mobile/README.md
