DeepSeek Harness Plugin

ECNU/EduWork#dsh-remote-access

Stars ★ 410 Downloads (30d) 2,132 Category Remote & Mobile Added 2026-11-25 npm @eduwork/dsh-remote-access

Access a running DSH host from a phone or another browser through a self-hosted HTTPS/WebSocket relay, with end-to-end encryption, host-confirmed pairing and device revocation; includes the relay server and deployment guides.

Install

# from npm (prebuilt)

dsh plugin --profile web add @eduwork/dsh-remote-access

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:ECNU/EduWork#path:/packages/dsh-remote-access

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

简体中文

@eduwork/dsh-remote-access lets you use DeepSeek Harness (DSH) on another computer from a browser on your phone or a second computer: view and start conversations, continue or cancel tasks, approve, answer questions, and view and download results. The connection passes through a self-hosted relay server and is end-to-end encrypted, so the relay cannot read it. Each device connects only after you compare a pairing code and confirm it on the computer, and you can remove it at any time.

The package has two parts:

  • DSH plugin: runs on the computer being accessed. Its settings page switches remote access on and off and adds and removes devices.
  • Relay service: runs on a server with a public address. It forwards ciphertext and serves the page you open on your phone.

Use

Deploy the relay

You need Node.js 24.22.1 or later and a reverse proxy that serves HTTPS for the relay's domain and forwards WebSockets.

RELAY_URL=https://remote.example.edu/ RELAY_ACCESS_KEYS=replace-with-a-random-key \
  npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay

RELAY_URL is the public address users reach the relay at; RELAY_ACCESS_KEYS are the comma-separated access keys you give to computer owners. The relay listens on 127.0.0.1:8787 by default; change it with HOST and PORT. <RELAY_URL>healthz answers ok for monitoring.

For servers, the Docker deployment guide provides a Dockerfile and Compose setup that builds from a pinned npm version and starts with docker compose up -d --build. The relay deployment guide also covers key generation, Windows PowerShell commands, HTTPS/Nginx, path prefixes, persistent systemd operation, organization sign-in, iframe integration, verification and troubleshooting.

The relay can also share a domain under its own path, such as RELAY_URL=https://example.edu/eduwork-remote/. Preserve the prefix in proxy requests and enter the same complete URL on the computer. Paths do not isolate browser privileges: the operator must accept the shared trust boundary between the site's applications and paired computers (see Security). A site-wide Service Worker must also leave this path alone.

A school or company can instead let its members use the relay with their own sign-in, without handing out access keys: set RELAY_OIDC_ISSUER to the issuer of the organization's OpenID Connect sign-in (for example https://sso.example.edu) and RELAY_OIDC_CLIENT_IDS to the desktop application's client IDs in it, separated by commas. Computers register with the ID Token their sign-in issued; the relay checks it against the keys the issuer publishes and keeps only the user's identifier, never the token. Computers switch to a new token before theirs expires; if one expires without being renewed, the relay ends that computer's remote connections. When the organization sign-in has lapsed and needs signing in again, the computer stops connecting to the relay and the settings page asks the user to sign in again. Both ways can be enabled together.

The relay lets each account register at most 5 computers at a time and each computer accept at most 60 device connections a minute; an address with 10 refused registrations in a minute has to wait. Behind a reverse proxy, set RELAY_CLIENT_IP_HEADER to the header in which the proxy passes the client's address (for example x-real-ip); otherwise all users share the proxy's address.

By default no other page may embed the relay's page. When an organization's site needs to embed it in an iframe, list the origins of the pages allowed to in RELAY_FRAME_ANCESTORS, separated by spaces: self for pages of the relay's own origin, or an origin such as https://portal.example.edu for others. Shells and env files strip quotes, so self and 'self' are the same; quote the whole value when it lists several, for example RELAY_FRAME_ANCESTORS="self https://portal.example.edu". Do not give the iframe a sandbox attribute: the relay's page runs scripts, registers a Service Worker and downloads files. The embedding page should be on the same site as the relay (the same registrable domain, such as portal.example.edu and remote.example.edu): embedded across sites, Safari and other WebKit browsers cannot load the computer's interface in it.

Turn it on on the computer

Install the plugin in DSH and restart it:

dsh plugin --profile web add @eduwork/dsh-remote-access

Open Settings → Remote access, enter the relay server and the access key, and select "Allow remote access". Once it shows "Connected", you can add devices. Remote access is off by default. "Test connection" tells separately whether the relay can be reached and whether it accepts this computer, also before remote access is on; when the connection fails, "Retry" starts it again.

An organization's distribution can preset its relay and sign-in (plugin setting organization: { relay, oidcProfileId }, where oidcProfileId names the organization's dsh-oidc profile). The settings page then uses the organization's account by default: it shows whether you are signed in and lets you sign in, after which you select "Allow remote access". Signing out stops remote access. The distribution decides the relay; the settings page neither shows nor changes it. Users can still choose "Use your own relay server" and enter a relay and an access key.

Organization sign-in also requires @eduwork/dsh-oidc@0.3.1 or a later compatible version on the host, providing identityToken(profileID); the older 0.3.0 does not include this API. Standalone deployments using an access key do not depend on the OIDC plugin.

Add and remove devices

  1. On the computer, choose "Add a device". A QR code and a link appear; the link works once, for 10 minutes.
  2. On the phone, scan the code or open the link, enter a device name and choose "Pair".
  3. Check that the phone and the computer show the same 6-digit pairing code, then choose "Allow" on the computer.

From then on, opening the relay address on that device connects to the computer, and it reconnects by itself after a drop. iPhone and iPad need iOS / iPadOS 16.4 or later; add the page to the Home Screen first, open it from there and paste the pairing link: a pairing made only in Safari is lost after 7 days without use.

Choose "Remove" under "Paired devices" on the computer to disconnect a device at once and keep it from connecting again.

What remote devices can do

They can choose an existing workspace, view and start conversations, continue and cancel tasks, approve or answer questions, and view and download results. Studio results and the calendar are also available when those plugins are installed on the host.

A phone shows DSH's own interface. From DSH 0.2.2, DSH fits it to phone screens itself: the session list opens as a drawer from the top-left corner and closes once you pick a session or a panel, and settings fill the screen with the sections as a row of tabs. Settings are view only on remote devices. Conversations show durations, retries, approvals and questions as on the computer.

Remote devices cannot directly call APIs that open local windows or programs or show notifications, register or remove workspaces, change settings, manage accounts, plugins, credentials, skills, memories or remote access, or access terminal and code-execution APIs. Tasks submitted through the Agent can still execute commands under the session's permission and approval rules; blocking direct terminal APIs does not disable Agent tools. The full list is in src/gate/gate.ts; anything not listed is refused.

Security

  • Traffic between the computer and the device is end-to-end encrypted; the relay only forwards ciphertext. The pairing link pins the computer's public key, so the relay cannot impersonate the computer.
  • The browser generates the device key as non-extractable; the computer stores only its public key. Every connection is signed with the device key.
  • An access key or an organization sign-in only decides who may use the relay; neither can be used to connect to someone else's computer. The access key is kept in DSH's credentials (EDUWORK_REMOTE_ACCESS_KEY), not in the plugin's settings; the ID Token of an organization sign-in goes only to the relay the distribution preset, which the settings page cannot change.
  • The relay serves the page you open on your phone, so whoever runs the relay can change it. Use only relays you trust.
  • The DSH interface on your phone comes from the paired computer and shares the relay's origin. Browsers isolate data by origin (scheme, host and port), not path, so one computer's interface can use this browser's pairings with other computers to connect to them. Pair only with your own computers.
  • Likewise, sites sharing the relay's origin can use its pairings, and the interface of any paired computer can access those sites as the user and read browser data available to scripts. A separate domain narrows this trust boundary. Same-origin path integration accepts the shared boundary; neither path prefixes nor ordinary iframes provide isolation.
  • Pages allowed to embed the relay's page can show it within their own and cover parts of it to trick users into clicking (approving a command, say). Allow only pages you trust.

See the protocol document (Chinese) for details.

Contribution origins

@JunieXD implemented this plugin in #192, building on @Paraso42's remote-access prototype in #180: mapping DSH host integration points, endpoint allowlists and refusal reasons, the device trust and revocation model, and validation scenarios for reconnection, avoiding duplicate execution, and deployment across networks. @Paraso42 is a co-contributor to remote access; #192 defines the current protocol and implementation.

Development

From this package directory:

npm ci
npm run check
node scripts/check-web.ts

check-web.ts goes through pairing, loading, requests, reconnection and device removal in Chromium and WebKit. It needs Playwright's browsers installed locally and does not run in CI.

Package maintenance and publishing · Changelog · License · Third-party notices

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.