**This is the plugin for DeepSeek Harness.** Once installed, you can reach your DeepSeek Harness over the network — browse sessions, keep chatting, manage files and workspaces, with progress synced live. It raises your productivity and frees you from being tied to the production environment.
What sets it apart from most DeepSeek Harness plugins: **this app is not a web wrapper. It is built for real production work — not designed for gimmicks or novelty; everything is guided by raising productivity.**
It connects to **your own DeepSeek Harness**, not to some cloud service.
## Features
### Sessions and workspaces
- Create, resume, rename, and search sessions — or fork any of them into a branch that runs on its own.
- Create, rename, delete, pin, and archive workspaces from the phone; the order you set there syncs back to the desktop.
- Replies stream in chunk by chunk, so you see the text while it is still being written, and tool calls land in real time.
- Reading a session on the phone clears its unread dot on the desktop; sidebar expansion state stays in sync.
### Everything you would otherwise walk back for
- **Approvals and questions**: the same cards that pop up on the desktop show up on the phone — permission requests, single choice, multi-select, and free-form answers are all tappable.
- **Queue a line mid-run**: add something while a turn is running and it lands right after the current step.
- **Git**: status and diff, stage, commit, push, switch branches; let the model draft the commit message.
- **Files**: browse directories, read files, and send files from the phone back to the computer, where they land in a fixed inbox directory.
- **Plugins**: search, install, update, and remove plugins from the marketplace on the phone; the plugin can also upgrade itself.
- **Models**: switch models at any time, see which channels and models are available, and configure locally defined channels from the phone.
- **Schedules and subagents**: list scheduled tasks, create and edit them, pause, resume, run one now, or delete it; watch running subagents, interrupt one, or send it a line.
### Connection
- Several ways in, and the phone tries them one by one and picks one that works: back over the relay v2 tunnel from anywhere, straight through the LAN proxy on the same Wi-Fi, or a self-hosted tunnel's direct address, IPv6 direct, TCP direct, and peer-to-peer direct.
- The LAN default port is **51887**; existing configurations keep their saved port. When it is taken, the plugin retries the original port first; only when every paired phone supports LAN discovery and nothing depends on a fixed entry does it move to a free port and save it. Public entry points use a dedicated loopback ingress managed by the plugin instead of relying on the LAN default port; when it is taken the plugin routes around it, and shows an in-panel prompt when it cannot.
- When using external tunneling software, turn on "fixed port" in the port settings. Tunnels configured inside the plugin and manually entered fixed addresses keep their port automatically; when the port is taken the plugin prompts you to free it. The built-in tunnel waits for the real listener to be ready and follows manual port changes to update its local target.
- With address reporting on, the plugin sends its current address to the directory encrypted. The app keeps subscribing while in the foreground, verifies the new entry after the address changes and reconnects, and refetches the latest snapshot when returning to the foreground or when the directory reconnects. Only line modes that explicitly disable the directory — plain LAN and the like — keep their original scope.
- Pairing codes with an optional pairing policy; device credentials can be revoked one by one or all at once.
- iOS offline push is handled by the directory (the Apple key is configured only on the directory host); neither the plugin nor the relay needs it.
The mobile API exposes only what the phone needs (`/api/mobile/v1/*`) — no shell, no system settings, no arbitrary file writes.
## Remote computer
When you would rather not carry your main computer around, you can drive its full DSH web interface from another computer. Generate a one-time binding on computer A, tap once on computer B, and A's full web interface opens through a local address — no domain, no phone involved.
The window opens in the desktop display shell the plugin ships, laid out like the official desktop app on Mac; each visit lasts an hour and renews automatically. In the display shell, keyboard shortcuts match the desktop app and are saved on your own machine for that remote window only; opening the page in a regular browser still uses the web shortcuts. Details and how to revoke are in [docs/remote-computer.md](docs/remote-computer.md).
## Security and privacy
On mobile protocol v2, each session encrypts every request end to end with a session key derived from the device's master key (`deviceKey`): requests and replies are both ciphertext, and the signature covers the ciphertext too. Along this path the relay forwards only ciphertext and cannot see session content.
The app ships with default relay addresses run by the project, so it connects out of the box, and you can also point it at a relay you host yourself. So that the phone's high-frequency reads (session lists, workspaces and the like) do not hit the main process on the computer every time, the session list and workspace mirror snapshots are pushed through the relay and cached at that layer for read isolation. In other words, those list snapshots do pass through the relay; the contents of v2-encrypted sessions are not on that shortcut and still travel as ciphertext.
You pick the permission tier on the computer when pairing:
- **Full**: can install plugins and any npm package, read and write registered workspace paths, and change models, channels and other configuration.
- **Approve**: can view sessions and files and answer approvals and questions for you, but cannot write files or change configuration directly. One approval can let the model make write actions within that session.
- **Read-only**: can only view session content and files — no sending, no approvals, no changes.
## Install and update
Installing the phone app is only the first step; the plugin on this side is what connects it.
In DeepSeek Harness, open **Settings → Plugins**, search for and install `dsh-mobile-plugin`, then open **Settings → Mobile → Open configuration page** to pair. The pairing QR code, the current listening address and the relay status all live on that page, and everything the phone does starts there. The plugin updates automatically; an update usually does not need a DeepSeek Harness restart.
To run on a server with no display, see [headless deployment and config endpoints](docs/headless-deploy.md) — local endpoints, the mobile API and session cleanup are documented there.
### Automatic updates and update verification
The plugin updates itself by default; to stop it updating on its own, turn it off in the plugin panel. It is on by default so the plugin keeps pace with the DSH version — when DSH makes a major upgrade, an outdated plugin is easy to leave behind and can simply stop working, and staying current avoids that trap.
Before installing a desktop full-package OTA update, the client first verifies an Ed25519 signature: the publisher signs the version, platform, channel, the package's sha256 and the download URL with a private key, and the client checks it against a built-in public key — if the signature does not verify, the update is not installed. The signing private key is kept offline, never alongside the release server, and the relay never has it.
## Why I built this
DeepSeek Harness runs on my computer, and I am not always sitting in front of it. Out of the house, in another room, lying in bed — when I want to know how far a task got, or it is stuck on an approval waiting for me to tap, the only option used to be walking back.
The starting point is that narrow: this does not squeeze the whole DeepSeek Harness onto a phone screen. It lets you see, keep talking, and tap the thing that needs tapping after you leave the desk.
That made two constraints hard. One is networking: no public IP, no port forwarding on the router, no DDNS set up just to use it once — the plugin dials out from the local network and the phone comes back along that tunnel. The other is capability: the phone gets only the openings it needs — sessions, approvals, file transfer, some configuration — but not a shell and not arbitrary file writes. If the phone is lost or picked up by someone else, the damage is bounded and knowable.
## Alternatives
**Opening the DeepSeek Harness web interface in a mobile browser**: nothing to install, but you have to remember the address every time, the layout is sized for a desktop, and you navigate by pinch-zooming and dragging. No push notifications either, so the moment you leave the page you know nothing — and approvals are the worst of it, since they need a precise tap.
**Remote desktop**: you are still operating that screen, with the phone as a monitor. Lose the network and you get a black screen, and on a small display every action starts with zooming in.
**The mobile apps from AI assistant vendors**: those run on the vendor's servers, and your sessions, files, and quota live there. This connects to the DeepSeek Harness on your own computer, with models you configured and files on your own disk.
## Contact
If that is awkward, email or . If it works well for you, a star on the repository is the most concrete way to help.
Privacy policy: [PRIVACY.md](PRIVACY.md). Support and FAQ: [SUPPORT.md](SUPPORT.md).
## Sponsorship & partnership
Companies or products that want to support the project's long-term maintenance can see the [sponsorship & partnership page](https://ai-hub.wnluo.com/sponsor) — or email about working together. Sponsorship funds ongoing maintenance and releases; it buys acknowledgement and a channel to talk, not feature unlocks and not special privileges, and it does not imply any affiliation with, or endorsement by, DeepSeek. Individuals who want to help can star the repository, use the "Donate" entry in the app's settings, or support via [Afdian](https://ifdian.net/a/AI-HUB) (WeChat Pay / Alipay).
## Repository map
For people (and AI) reading this repository: locate things here first, then open the file that matters.
### Layout
- `host.js`, `lib/index.js` — plugin entry and Cordis wiring.
- `lib/impl.js` — runtime assembly: state, host services and each transport module are mounted here.
- `lib/routes/` — HTTP endpoints. `mobile-api.js` is the phone-facing `/api/mobile/v1/*` route table and heartbeat; `control-plane.js` is the local API behind the desktop panel. Endpoint changes touch both sides of the contract.
- `lib/mobile/` — what the phone receives: streaming events, session projection, approvals, push, pairing.
- `lib/relay/` — relay registration, address reporting to the directory, the route list, config and state on disk.
- `lib/remote/` — remote computers: binding, route selection, windows.
- `lib/zeronews/`, `lib/jdxb/`, `lib/frpc/`, `lib/cloudflared/`, `lib/p2p/`, `lib/tailcat/` — the routes already wired in; copy their shape for a new one.
- `lib/panel/` — built desktop panel; the source lives in `React/`. Change the source and commit both.
- `config/` — presets, bundled skills, extension catalog.
- `test/` — `node --test`, one file per area; filenames work as search keywords.
- `docs/` — contracts and integration guides, listed below.
### Docs
- [Mobile API contract](docs/mobile-api-contract.md): read this before writing your own client — pairing, sealed envelopes, endpoint list.
- [Integrating a route](docs/line-integration.md): what to change for a new route.
- [Mobile extension authoring](docs/extension-authoring.md): writing an extension page, how the package is laid out, how it talks to the App.
- [Headless deployment](docs/headless-deploy.md): running on a server with no display, and the local endpoints.
- [Keeping the chat top bar](docs/chat-embed.md): how a web plugin keeps the top bar on the phone's chat page.
- [Remote computers](docs/remote-computer.md): opening this machine's full web UI from another computer.
- [Update continuity](docs/update-continuity.md): what each platform and route does during a self-update.
### Where to start debugging
- Phone cannot connect, or route selection looks wrong: start with what `lib/relay/` reports to the directory and how candidates are ordered; the directory only stores ciphertext, so do not try to read the addresses there.
- An endpoint returns 404 or rejects a parameter: compare `lib/routes/mobile-api.js` with the App's path constants and change both.
- The phone is missing content, or traffic looks wrong: see the trimming rules under `lib/mobile/` for which event fields are not sent.
- A route or toggle does not show up in the panel: the local route and the `React/` panel both need the change; state alone does not render.
## Development
```sh
pnpm install --frozen-lockfile
npm test
```
Adding a route? Read [Integrating a route](docs/line-integration.md) first.
If you changed anything under `React/`, run `pnpm run build` there first and commit the generated `lib/panel/index.html` together with the source.
If a web plugin needs to keep the web top bar on the phone's chat page, see [keeping the chat top bar](docs/chat-embed.md).
## License
MIT, see [LICENSE](LICENSE).