DeepSeek Harness Plugin

prgrmrwy/dsh-host-browsing

Stars ★ 1 Downloads (30d) 282 Category Remote & Mobile Added 2026-11-25 npm dsh-host-browsing

Adds a better-sidebar tab that opens loopback web services on the DSH Host machine (127.0.0.1, localhost, \[::1] ports) through a same-origin proxy on the DSH server, so a remote Host's local pages can be viewed without per-port SSH tunnels.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-host-browsing

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

dsh plugin --profile web add github:prgrmrwy/dsh-host-browsing

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

English · 简体中文

Left: the home page lists the Host's web services, each port followed by the actual process name on the Host. Right: one opened in the tab. Captured from an isolated test instance with a stand-in services list and a synthetic sample page.

Architecture: tab, proxied page and Service Worker in the browser, the existing DSH link, and the same-origin route, loopback proxy and service discovery on the Host

When DSH drives a remote machine, open that machine's own localhost services right in the sidebar, with no per-port SSH tunnels. The tab reaches the Host's 127.0.0.1:<port> through DSH's own web server, over the link DSH already uses.

Features

  • A home page listing the Host's web services (port and process name); one click opens one.
  • Type 127.0.0.1:5173, localhost:3000 or [::1]:8080; pages see the direct address.
  • Dev apps keep working: SPA routing, forms, cookies, HMR WebSockets.
  • Back, Home and Refresh in the toolbar; English and Chinese UI.

Install

dsh plugin --profile web add dsh-host-browsing

Needs DSH >=0.2.2-rc.1, the dsh-better-sidebar plugin and a Chromium-family browser.

Usage

Open the tab, click a listed service or type an address with an explicit port.

Input Address bar
localhost:5173/app?x=1 http://127.0.0.1:5173/app?x=1
[::1]:8080/ http://[::1]:8080/

Security and limits

  • Proxied pages share DSH's origin: only open services you trust. Every request needs a DSH session.
  • Chromium only; without dsh-better-sidebar nothing is registered.
  • Requests from Workers and nested iframes may reach loopback of your own computer.
  • Non-HTML responses (JSON, text, PDF) are not shown in the tab.
  • Only loopback HTTP targets on the Host; no HTTPS upstreams.

How it differs from dsh-tunnel

@mzzsfy/dsh-tunnel (we read its 0.4.0 source) opens a port in Settings and serves it at /p/<name>/ or <name>.* in a separate browser tab, with AI tools and a request log; its path mode strips the prefix and fixes redirect Location headers. dsh-host-browsing browses Host-local pages inside a sidebar tab via a same-origin proxy and Service Worker rewriting; the two can coexist.

Development

npm run build && npm run typecheck && npm test in this directory; npm run test:browser needs a local Chrome (DSHLS_CHROME).

Removal

Run dsh plugin --profile web remove dsh-host-browsing (in the ohmydsh repo: enabled: false, dsh build) and restart DSH. Routes and the tab disappear and the plugin unregisters its Service Worker; if a browser still holds it, unregister the /dsh-local-service/ scope in DevTools → Application → Service Workers.

Maintenance

Maintained in ohmydsh; this repository is the release mirror. MIT, see LICENSE; issues and PRs welcome.

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.