Preface¶
The core design philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When debugging or running agents, developers often need to view the Agent’s reasoning chain on their phones, send screenshots, or issue temporary commands. Constantly watching the computer screen is inefficient. The dsh-plugin-mobile-bridge plugin starts a web service on the computer, allowing mobile browsers to directly take over the DSH console. It doesn’t require installing a native app—browser access alone is sufficient.
Installation and Activation¶
This plugin is an extension for DSH and requires the following prerequisites:
* DSH version: 1.8.2 or above.
* Node.js: Version 22 or above.
* Git: Required when installing via the github: protocol.
Run the installation command:
dsh plugin --profile web add github:jxboop/dsh-plugin-mobile-bridge
Restart DSH after installation. After restarting, the log will output the listening address and PIN code:
[mobile-bridge] listening on 0.0.0.0:3081, PIN 123456
[mobile-bridge] phone url: http://192.168.1.20:3081/ab12cd34ef56ab78/
Configuration File¶
The plugin generates a configuration file ~/.dsh/mobile-bridge.json in the user directory (Windows path: %USERPROFILE%\.dsh\mobile-bridge.json).
{
"version": 1,
"port": 3081,
"pin": "123456",
"pathSecret": "ab12cd34ef56ab78",
"tokenTtlHours": 12,
"bindTokenToIp": false,
"elevationMinutes": 60
}
pin: Login password; do not share externally.pathSecret: Route signature key; all routes require this value, otherwise 404 is returned.elevationMinutes: The number of minutes the unlocked state (PIN restriction lifted) remains valid.
Core Features¶
File and Media Transfer¶
- Send images from phone: Supports screenshots, photos, GIFs, videos, and arbitrary files. Images are automatically compressed, and large files are uploaded in chunks.
- Agent obtains paths: After file upload, the Agent can directly obtain file paths in tool calls instead of raw binary streams that the model cannot read.
- Computer media return: Images, videos, or exported files generated by the Agent automatically display thumbnails in the conversation; long-press to save to the local gallery.
Session and Task Control¶
- Task dispatch: Supports creating new tasks, sending commands, and canceling running tasks.
- Real-time interaction: Click the “Interject” button during execution to insert into the queue without interrupting the current turn.
- Message management: Supports message recall (can recall while queued), session pinning, frequent marking, and session deletion (requires PIN confirmation).
- Session list: Supports filtering by model, showing all sessions (including Agent sub-sessions), and deleting sessions.
Interface and Personalization¶
- Custom backgrounds: Supports images, GIFs, or videos as backgrounds, with one-click restore.
- Cyberpunk theme: Built-in pure CSS cyberpunk style (including neon horizon, perspective grid, scan lines, etc.), with one-click animation mute.
- Glassmorphism style: Panels adopt a semi-transparent blurred design for a unified visual style.
External Network Access¶
- LAN priority: Supports USB tethering, Bluetooth PAN, personal hotspot, and automatic LAN address sorting.
- External tunnel: Requires Tailscale installation. Recommended to use
tailscale funnelto open an external entry point and generate a fixed HTTPS address. - Cloudflare: Provides a quick tunnel script as a temporary solution.
Other Features¶
- Permission management: Default is read-only without requiring a PIN. Lifting permissions requires entering the PIN. Permission levels can be pre-selected when creating new tasks.
- Generate HTML install page: Supports generating a standalone HTML install page for easy sharing.
- Clipboard history: Locally retains the last 20 computer clipboard contents, which can be individually refilled into the input box.
- Mobile image generation: Requires the
image_generatetool to be installed on the computer, generating images by calling this tool in the current session. - Scheduled wake-up: Only supports S3 sleep mode (system still alive); complete shutdown is not supported.
- Bluetooth disconnection: Can attempt to disconnect specific Bluetooth devices, but reliability may vary depending on system services.
Usage¶
Add to Home Screen¶
After opening the URL in a mobile browser, it is recommended to add it to the home screen for a native app-like experience:
* iOS (Safari): Tap the share button → Add to Home Screen.
* Android (Chrome): Tap the menu → Install App / Add to Home Screen.
* Generate icons: To customize icons, run node tools/make-icons.mjs.
External Access Configuration¶
To access in environments without a LAN, configure Tailscale Funnel:
tailscale funnel --bg 3081
Record the generated https://<machine-name>.<tailnet>.ts.net address and set publicUrl in the configuration file.
Notes¶
- Security: PIN and
pathSecretare randomly generated; never share them through unsecured channels, as this is equivalent to a backdoor to the computer. - Dependency requirement: The mobile image generation feature depends on the
image_generatetool plugin being installed on the computer. - iOS limitation: On iOS,
data:links cannot be directly saved to photos via long-press. - Version requirement: Versions below DSH 1.8.2 are missing
lib/addresses.js, causing the mobile page to fail to open. - Bluetooth reliability: The Bluetooth disconnection feature may not be fully reliable, and it cannot unpair devices—only disconnect them.