Hand a task to DSH on another computer in the same LAN. Both sides run the same bundle, discover each other over UDP, and dispatch over plain HTTP with the attached files streamed and sha256-checked. The remote DSH runs the agent turn in its own session, publishes live progress back, and returns the answer plus every produced file to the conversation that dispatched it. Includes approval tokens, a shared secret, resume of half-transferred jobs, disk-free pre-check, fan-out to several machines, and an offline USB package path for air-gapped peers. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/zztand/dsh-lan-bridge/releases/latest/download/dsh-lan-bridge.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zztand/dsh-lan-bridge
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Hand a task to DeepSeek Harness (DSH) running on another computer in your LAN, and get the answer and the output files back in the conversation you started from.
Zero configuration, zero dependencies, no pairing ceremony, no YAML editing. Install the same bundle on both machines, and they become peers: either side can dispatch work to the other.
中文文档见 README.md · 详细说明 docs/detail.zh.md / docs/detail.en.md
Why
You have a fast desktop and a small always-on box, or a laptop at home and a workstation in the lab. DSH is good at doing work, but it only knows about the machine it runs on. This bundle makes two DSH installations one team:
- say "dispatch this to the lab desktop" in a normal conversation — the model finds the files it needs and sends them along;
- the remote machine creates its own agent session, does the work, and streams progress back;
- the answer, the transcript, and every produced file come back into your conversation and into
out/.
Nothing to configure: no shared folder, no SSH keys, no tokens to copy (unless you want them).
What it does
| Dispatch with files | Files and folders travel with the task (streamed, sha256 checked on both ends). The model picks the relevant paths from the conversation; you can also drag files into the panel or paste absolute paths. |
| Live progress | Transfer progress bar with speed and ETA, then the remote agent's live activity: which tool it is calling, what it is thinking, how many files it produced. |
| Results come back | Verdict text, agent transcript, and a recursive collection of every produced file into %USERPROFILE%\.dsh\dsh-lan\out\<task>-<id>\. Outputs written into in/ subfolders are collected too. |
| Fire and forget | Tasks under 90 s answer inline. Longer ones move to the background; you can close DSH or shut the machine down, and the remote side keeps working. Ask later — "did that task finish?" — and it pulls the state and the artifacts. |
| Many machines | Fan-out one prompt to several machines (wait: all / any / none), grouped per batch in the task list. |
| Survives interruptions | Resume a half-transferred job: same task re-dispatched reuses the remote job and skips files whose sha256 already matches. Disk-full is refused up front instead of half-way. |
| Sidebar UI | A "LAN dispatch" icon in the DSH sidebar with three tabs: dispatch, tasks, hosts. Plus a per-conversation Remote tasks tab next to Conversation / Trajectory / Context. No extra browser window, no extra port. |
| Remote sessions are kept | Every dispatched task leaves a session on the worker machine, grouped into a workspace you can rename, so you can audit what it saw and did. |
Install
Both machines need DSH 0.2.x, Node 22.19+ or 24+.
1. Copy this folder (or unzip a release) onto the other machine.
2. In that machine's DSH, ask: 「用 plugin_manager 安装 <absolute path of this folder> 这个本地 bundle」
(plugin_manager install_bundle with that directory as target).
3. Restart DSH, and allow 19390/TCP + 19389/UDP on the private network in Windows Firewall.
4. Nothing else: the bridge listens on 19390, discovery uses UDP broadcast 19389.
Build a zip for other people with npm run package → dist/dsh-lan-bridge-<version>.zip.
Once both sides run 1.6.4+ you never have to touch the other machine again: the host list has an "Update plugin" button (or ask the agent → lan_upgrade), which streams the newest dist/*.zip to the peer over PUT /api/upgrade. The peer's own DSH main process unpacks and overwrites itself — that is why it is not blocked by the agent sandbox. Restart DSH on that machine to pick it up.
Usage
From a conversation
把这个任务派给实验室台式机:把 D:\data\2026 里的 CSV 合并,算每月均值,写一份 report.md。
The model calls lan_dispatch with the target and the files it recognised. Nothing else needed.
If you do not name a machine, the plugin auto-picks only when exactly one host is online; with two or more online it always asks you, and the machine you used last time is merely listed first. Naming a machine is the fastest path.
From the sidebar panel
LAN dispatch → Dispatch: pick a host (saved or discovered), write the prompt, drag files or paste paths, choose network or USB transfer → Dispatch. Tasks shows every job with progress and results; Hosts has two sub-tabs: "this machine as master" (host list, scanning, progress reporting) and "this machine as worker" (security, work folder, default permissions).
From the conversation tab
The Remote tasks tab is read-only, scoped to the conversation you are in: counters (running / done / failed / total), filters, per-job cards with state, targets, progress, live remote activity, verdict and result folder, and parallel batches grouped together. It refreshes every 2.5 s and asks the peers once when you open it.
Security: who may use this machine
Scanning and adding a host only probes /api/hello — it grants nobody anything. Dispatch rights are decided on the machine that does the work, in Hosts → Worker → Security:
| Mode | Behaviour |
|---|---|
| Ask me once (default) | A stranger's first dispatch is held; your panel shows "1 computer wants to use this machine". Approve once → it gets a token, no more prompts. Reject → the caller is told. Tokens can be revoked at any time. |
| Pairing code | The caller must send the 6-digit code shown on this machine (rotatable). |
| Open | Anyone on the LAN — red warning in the UI, only for a fully trusted network. |
An optional shared secret is stronger and independent of the mode: when set, every request must carry it. /api/hello, /api/ping, /api/pair/status are the only unauthenticated endpoints (so a caller can learn that it needs approval).
Traffic is plain HTTP on the LAN by design; do not expose port 19390 to the internet. There is no TLS and no cloud relay.
Protocol
Tiny HTTP + UDP, no dependencies:
GET /api/hello identity, version, security mode, disk free
POST /api/jobs create job (bytesPlanned checked against free space)
PUT /api/jobs/:id/file?rel=&sha256= stream one file; identical sha256 is skipped (resume)
POST /api/jobs/:id/start start the agent turn
GET /api/jobs/:id state, phase, percent, live activity, answer
GET /api/jobs/:id/file?rel= ask whether a file is already there (resume)
GET /api/jobs/:id/artifact?rel= download a produced file
POST /api/jobs/:id/cancel cancel
POST /api/import import an offline package (verifies manifest sha256)
PUT /api/upgrade self-upgrade from a zip (host process, not the agent)
GET /api/pair/status?requestId= poll an approval request
Job directory on the worker: <workDir>/<YYYYMMDD-HHmmss-task-name>/, with the received files under in/. The agent's session cwd is the workspace root, and workingDirectory.set moves the actual working dir to the job folder, so conversations stay grouped while outputs never mix.
Develop
npm test # 10 suites: smoke, trust, progress, panel-render, upgrade, autopick,
# artifacts, sessionjobs, diskresume, buttons
npm run package # dist/dsh-lan-bridge-<version>.zip + install notes
Tests need no DSH and no network: they boot fake runtimes, fake React renderers, and a real HTTP peer on localhost.
Notes worth knowing before you change anything:
- A sub-agent created by a plugin must mount an agent preset explicitly, otherwise it has no file or shell tools:
agentLoop.createAgent(ctx, { sessionId, meta: { cwd, agentPreset: 'standard' }, setup: async (c) => ctx.get('agentPresets').mount(c, 'standard') })thenpresets.select(agent, 'standard'). approval.setPolicy(agent, 'never')is required on the worker, or the turn waits for a human forever.- Listen to
ctx.on('agent/error'):kick()swallows turn errors. - Deliver with
agent.followup({ content, source: { kind: 'cordis-host-runner' } }); talk back to the master withsource: { kind: 'agent-message' }andawait agent.whenIdle()first. - Panel routes must be registered one by one with
kind: 'exact'; aprefixregistration only matched the prefix itself in practice. - Reload after editing:
plugin_manager set_plugin target="include:lan-bridge" enabled=falsethenenabled=true; refresh the browser after touchingclient.js.
Runtime data lives in %USERPROFILE%\.dsh\dsh-lan\ (state.json, jobs.json, out/, jobs/, bridge.log).
Layout
| Path | Contents |
|---|---|
index.js |
Entry: HTTP service, UDP discovery, panel API, prompt section, tool registration |
client.js |
Sidebar icon + three-tab panel + the per-conversation Remote tasks view |
src/service.js |
The single business implementation used by both tools and UI |
src/api.js / src/remote.js |
Peer protocol server / master-side client |
src/target.js / src/master.js |
Worker side (receive, run, collect) / master side (dispatch, track, finish) |
src/runner.js |
Runs one job through DSH's agentLoop, with a headless CLI fallback |
src/hosts.js / src/discovery.js |
Host book / UDP presence |
src/trust.js |
Approval tokens, pairing codes, shared secret |
src/upgrade.js |
Self-upgrade from a zip |
src/uiapi.js |
/dsh-lan/* JSON endpoints for the panel |
src/tools.js |
The lan_* tools |
License
MIT.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10645
Remote control of a dsh web workspace from phone or PC: QR-code pairing through a token-gated channel, SSE real-time sync, and separate mobile and full desktop GUI modes.
zhu1090093659/dsh-web#packages/dsh-ssh★ 10645
SSH ops panel for DSH: web terminal, SFTP transfer with progress, local port forwarding, and one-command cluster execution across hosts; agents share the same host config.
liguobao/ds-harness-remote★ 3780
Multi-device remote access for DeepSeek Harness and supported coding workspaces through an end-to-end encrypted channel, with adaptive Relay/WebRTC transport, device authorization, workspace files, read-only previews, terminals, and optional Codex Remote.
saya-ch/dsh-mobile★ 1006
Access DeepSeek Harness from the Android app or a mobile browser with secure LAN and remote connections, persistent device pairing, and a customizable mobile interface.
uumit-ai/dsh-uumit-remote★ 531
Open dsh web from your phone or another computer through a UUMit account, without running your own server or installing another program: a built-in tunnel client connects to UUMit's hosted tunnel, and a panel in the sidebar handles pairing and who can use it (only you, people you invite by link or phone number, or everyone), with revocation. Requires dsh web on DSH >=0.2.1-rc.2.
ZSeven-W/dsh-ios★ 485
A live iOS Simulator or USB-connected iPhone inside the conversation: 22 agent tools for booting, building, driving the UI by accessibility identity or OCR text, list-row actions and SwiftUI preview hot reload, plus a streaming sidebar panel you can tap and drag on.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.