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.
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:3000or[::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-sidebarnothing 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.
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.