The design philosophy of DeepSeek Harness (DSH) is “Everything is a plugin.” When running an Agent locally, interacting via mobile phone, sending messages, or handling approvals are common requirements. The dsh-remote-bridge plugin solves this problem: it connects the DSH host machine to a relay via an outbound WSS connection, enabling the mobile App to remotely list sessions, send messages, and handle approvals.
Core Concepts¶
The plugin is installed on the DSH host machine (not the relay server) and is loaded by DSH as a plugin. It acts as the active dialer in the link.
The architecture path is: Mobile App → Relay → Plugin → DSH. Because it utilizes an outbound connection, the host machine does not need to open any inbound ports on the firewall, making it usable for users with public IPs or home NATs. The plugin has zero runtime dependencies.
Prerequisites¶
- Environment Requirements: The host machine has Node.js installed, with a version requirement of
>=22.19. DSH must provide thedsh plugincommand. - Relay Service: The DSH-Remote-backend relay service is deployed.
- Credentials: The relay has issued a connectorToken.
- Permissions: Anyone holding the mobile token is equivalent to having command execution capabilities on this machine and must be treated with the same level of sensitivity.
Installation and Enablement¶
Perform the following steps on the host machine:
- Create a directory and clone the code:
sudo mkdir -p /opt/dsh-remote-bridge
sudo chown "$USER" /opt/dsh-remote-bridge
git clone https://github.com/AKHYui/DSH-Remote-plugin.git /opt/dsh-remote-bridge
- Register the plugin in DSH:
dsh plugin --profile desktop add link:/opt/dsh-remote-bridge
Configuration¶
The plugin automatically inserts a remote-bridge entry into the desktop profile. You need to configure the following keys in ~/.dsh/profiles/desktop/cordis.patch.yml:
serverUrl: Required. The attach endpoint of the relay, formatted aswss://<host>:<port>/api/v1/attach.connectorToken: Required. The token issued by the relay; can also be set via the environment variableDSH_REMOTE_BRIDGE_TOKEN.deviceId: Required. A unique identifier for the host machine, used for mobile addressing.tlsCaFile: Optional. If the relay uses a self-signed certificate issued by a custom CA, specify the CA file path (PEM format).autoConnect: Whether to dial immediately after loading. Defaults totrue.
Configuration changes usually take effect within a few seconds without requiring a DSH restart; however, source code changes require a DSH restart.
Core Features¶
The plugin provides the following capabilities:
- Session Management: List sessions and follow real-time event streams.
- Message Interaction: Send messages (text, inline images, upload files for receiptId).
- Model Control: Switch models and abort turns.
- Approvals & Questions: Answer approvals and handle
ask_user_questionprompts.
Notes¶
- Security Boundary: Holding the mobile token grants command execution permissions on the host machine; keep it secure.
- Network Topology: Relies solely on outbound connections; no firewall inbound rules need to be configured on the host.
- Version Requirements: Ensure the host machine’s Node.js version satisfies
>=22.19.