Preface¶
DeepSeek Harness (DSH) sessions, tools, and workspaces typically run on desktop hosts. If you need to check progress on a mobile phone, create or sort sessions, or want a Linux machine to act as a background host without opening the desktop client, relying solely on SSH or self-written HTTP layers often requires manually handling details such as pairing, tunnels, and alignment with the DSH session model. dsh-mobile-plugin (repository WNLUO/dsh-mobile-plugin), released by maintainer WNLUO and categorized as a client plugin in the DSH plugin marketplace, connects to the AI-HUB mobile App via a relay v2 tunnel. It exposes a restricted /api/mobile/v1/* mobile API and supports LAN proxy and pairing policies. The same plugin can also run independently as a headless Cordis Host, without relying on a desktop shell or Electron.
What is this¶
In short: dsh-mobile-plugin is a mobile plugin for DSH responsible for the mobile API, remote connections (relay), and LAN proxying, designed to pair with the AI-HUB mobile App.
Maintainer and Source: GitHub repository https://github.com/WNLUO/dsh-mobile-plugin, npm package name dsh-mobile-plugin (version 0.1.96 in materials, MIT license). Community directory page: https://www.skillhub.cn/plugins/WNLUO/dsh-mobile-plugin (SkillHub etc. are independent plugin directories and have no official affiliation with DeepSeek / Hithink RoyalFlush).
The mobile client requires the AI-HUB App: Android can be obtained from app.wnluo.com or the ai-hub-android.apk in GitHub Releases; for iOS, see the App Store (id6821681438) or the TestFlight link (see repository README).
Core Features¶
The following capabilities are derived from the repository README:
- Connects to the mobile App via a relay v2 tunnel and supports LAN proxy.
- Provides a restricted
/api/mobile/v1/*mobile API (requires Bearer token). - Sessions: Supports creation, workspace attribution (
workspaceIdorcwd, with the former taking precedence), and synchronization of session sorting to the host workspace. - Device Events:
GET /api/mobile/v1/events/streamforwards host events via SSE. - Operations: Automatically archives idle sessions (hides only, does not delete logs); the
session_cleanuptool can archive or permanently delete archived sessions (deletion requires explicit confirmation, is queued for deletion, and disk cleanup occurs on the next host startup). - Local configuration interface and pairing authorization policy (default
codevia pairing code;denyrejects all new pairings).
In headless mode, the Web service listens on 127.0.0.1:3080 by default, and the configuration interface is restricted to local access only, not directly exposed to the LAN.
Installation and Activation¶
On DSH Desktop¶
The official method is to install via the DSH built-in plugin marketplace, rather than manually piecing together the dsh plugin add github:... command.
- Open DSH Settings → Plugins, search for and install
dsh-mobile-plugin. - After installation, go to Settings → Mobile → Open Configuration Page to configure connections and pairing.
- The plugin marketplace handles updates; typically, no DSH restart is required after an update (though the first time an npm package with “local debug OTA” capability is installed, a DSH restart is required, see README).
Please use the DSH plugin marketplace for official installation; the README explicitly advises against using npm install --legacy-peer-deps to install the plugin.
Headless Host (Linux)¶
Requires Node.js, pnpm, and available DSH plugin host dependencies. Execute in the plugin source directory:
pnpm install --frozen-lockfile
DSH_HOME=/opt/dsh-mobile/.dsh DSH_MOBILE_PROFILE=mobile node host.js
DSH_HOME: Data root directory, default~/.dsh.DSH_MOBILE_PROFILE: Profile name, defaultmobile.
For production deployment, manage the launcher and the plugin body separately: the launcher is synced to /opt/dsh-mobile/, and the plugin is installed within the profile, for example:
cd <DSH_HOME>/profiles/<profile>
pnpm add dsh-mobile-plugin@<version>
The host prioritizes mounting plugins installed in the profile; the device credential library is provided with the npm package and does not require separate installation.
Typical Usage¶
Viewing Relay Status and Pairing Info (Headless Local Machine)¶
Execute on the headless Host machine:
curl http://127.0.0.1:3080/api/relay/status
curl http://127.0.0.1:3080/api/relay/pairing
Managing Remote Connections (Local POST)¶
In headless mode, remote connections can be managed via local interfaces, for example:
POST /api/relay/toggle: Enable or disable remote control.POST /api/relay/regenerate: Regenerate the pairing code.POST /api/relay/config: SetrelayUrl,lanEnabled,lanPort,name, andpairingPolicy.POST /api/relay/reconnect: Reconnect the tunnel and LAN proxy.
Mobile API calls must carry a Bearer token; when creating a session, workspaceId or cwd can be passed to attribute it to a workspace.
Pairing requests may carry device metadata (the App side sends id, deviceId, name, platform, osVersion, appVersion, etc.; the LAN proxy and relay will supplement the observed mobile IP).
Use Cases and Notes¶
Who is it for
- Developers already using DSH who wish to use the AI-HUB mobile App to remotely view or lightly control the host, and synchronize sessions and workspace sorting.
- Scenarios requiring running a Cordis Host in a headless manner on Linux, and completing pairing and tunnel configuration via local relay interfaces.
Permissions and Security
- The plugin runs with the current DSH / host process permissions; before installation, you should read the source code and PRIVACY.md, SUPPORT.md, and confirm whether the license (MIT) meets your compliance requirements.
- In headless mode, Web and configuration interfaces bind only to the local machine by default; remote capabilities rely on relay and pairing policies, so pairing codes should be kept secure, and
pairingPolicyshould be set as needed. - Permanently deleting archived sessions is irrecoverable. The implementation aligns with the host constraint of “no runtime deletion of session files” to avoid crashing the host by directly deleting disk logs while the process is alive.
Ecosystem Notes
DSH adopts an “everything is a plugin” extension approach; dsh-mobile-plugin is distributed via npm and the plugin marketplace, working in conjunction with the AI-HUB App and relay services to complete mobile connections. Specific relay URLs and relay configurations are set via local interfaces such as /api/relay/config in headless scenarios.
Conclusion¶
dsh-mobile-plugin consolidates mobile connectivity, restricted mobile APIs, and headless Host entry into a single plugin: desktop users install it via the plugin marketplace and complete pairing in “Mobile” settings; server-side users can use host.js and the npm package within a profile for headless deployment, and use the relay API on local port 3080 to manage tunnels and LAN proxies.
- Directory Page: https://www.skillhub.cn/plugins/WNLUO/dsh-mobile-plugin
- GitHub: https://github.com/WNLUO/dsh-mobile-plugin