Web GUI enhancement bundle: a standalone password gateway (optional HTTPS via your own certificate or a self-signed local CA) for LAN and remote access without `?token=`, PWA install with icon and app name, desktop and mobile Web Push notifications for task/approval events, and optional session-id request-header injection for third-party OpenAI-compatible routes, all configured from a settings page.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-enhancement
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:feng-yifan/dsh-plugins#path:/packages/dsh-enhancement
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
A standalone password gateway for DSH Web, plus everything needed to use DSH like an app on your phone: PWA installation, desktop notifications, and mobile push.
Set a password, open the gateway URL, and log in to DSH without carrying around the ?token= URL printed by dsh web. Add DSH to your phone's home screen and get notified when a task finishes or needs your approval—tap the notification to return to the right session.
Features
| Feature | What it does |
|---|---|
| Password gateway | Access DSH through a dedicated port and password instead of ?token=, suitable for LAN or remote use |
| HTTPS | Upload a certificate, sign with your own CA, or let the plugin create a local CA |
| PWA | Install DSH on the desktop or phone home screen, with custom app name, theme color, and icons |
| Desktop notifications | System notifications for task completion, questions, approvals, and background jobs |
| Mobile push | PWA Web Push notifications on your phone; tap to return to the matching session |
| Session header | Send a DSH session-id request header on third-party API routes too, so a gateway can correlate requests by session |
| Delete session | Delete a session from its menu or its row-hover button (physical delete, master switch and confirmation available, running sessions stopped automatically) |
Password gateway
- Off by default; listens on port
3088by default, configurable to another free port. - A password must be set before the gateway can be enabled. Only a hash of the password is stored.
- After login, the gateway keeps its own session; DSH's
?token=is not needed. - Choose which network interface to listen on.
- Works with normal DSH chat, files, terminal, WebSocket, and live streams.
- Configurable login session lifetime; changing the password invalidates all gateway sessions.
- The gateway session cookie name is scoped by protocol and port, so multiple profiles/gateways on the same host never overwrite each other; changing the port requires logging in again.
HTTPS
PWA installation, Service Workers, and mobile push require HTTPS (localhost is exempt). Three options are available:
| Option | When to use it |
|---|---|
| Off (HTTP) | Temporary local/trusted-network use; PWA and push are unavailable |
| Use an existing certificate | You already have a domain certificate; upload the chain and private key |
| Sign with a CA | Upload your own CA, or let the plugin generate a local CA and issue a certificate for the current address |
For a self-signed/private CA, install and trust the CA certificate on each device:
- iOS: Settings → General → VPN & Device Management to install the profile, then General → About → Certificate Trust Settings and enable full trust.
- Android: Settings → Security → Encryption & credentials → Install a certificate.
The certificate must cover the hostname or IP you actually use (SAN), otherwise browsers will still show a certificate error.
PWA
- Takes over DSH's manifest, icons,
apple-touch-icon, Service Worker, and install prompt. - Customize the app name, short name, theme color, and replace desktop/Android/iOS icons separately.
- Chromium / Edge show an install prompt; iPhone / iPad use Safari's “Share → Add to Home Screen”.
- Installed apps open without browser chrome; HTTPS is required for installation, Service Worker, and push.
Session header
DSH only sends x-deepseek-harness-session-id when talking to the official DeepSeek API; third-party routes through OpenAI-compatible gateways (llm-pi-ai) carry no session identifier at all. With this feature on, the plugin injects the current session id as a request header so your gateway can correlate requests by session.
- Off by default; the default header name matches the official DeepSeek one:
x-deepseek-harness-session-id. - The header name is configurable for gateways with their own convention; the value is always DSH's raw session id.
- Applies only to third-party API adapters (
llm-pi-ai); official DeepSeek routes already send it and are untouched. - Takes effect on the next model request after saving — no restart needed.
- An existing header of the same name set upstream is never overwritten.
Panel status
The settings page shows the current mount status:
| Message | Meaning | What to do |
|---|---|---|
| Mounted on N third-party API adapters | Working | — |
| No third-party model routes registered | No OpenAI-compatible provider configured yet | Add one under Settings → Models, or declare providers for llm-pi-ai in this profile's cordis.patch.yml |
| N adapters registered, none is a third-party API adapter | Only official DeepSeek routes | Same as above: add a third-party provider |
| Host llm service unavailable or reshaped | Version drift | Plugin has bypassed itself; requests are unaffected |
Delete session
Two entry points can delete a session: the “Delete session” item in the sidebar session menu (above “Archive session”), and a delete button that appears at the end of a session row on hover. Deleting physically removes the session's persisted files and cannot be undone.
- “Enable session deletion” is the master switch and is on by default; when off, neither entry appears and the delete endpoint rejects requests.
- The row-hover delete button is off by default and can be turned on in settings; hoverless (touch) devices do not see it, so use the “…” menu entry there.
- Any session can be deleted; a running session is stopped automatically before deletion.
- Deletion first unloads the in-memory live session (cancels the turn, flushes buffered events, and makes every client drop the row) before removing the on-disk directory; the session disappears from the list immediately instead of collapsing into “Ungrouped”.
- “Confirm before deleting a session” is on by default and applies to both entry points: the first click turns the control into “Confirm delete”, a second click performs the deletion. This can be turned off in settings.
- Only
<sessions root>/<project>/<session id>is removed, and the directory must actually contain a session log file (session.v*.jsonl*), so other files cannot be deleted by mistake. - The “automatic purge on uninstall” behavior has been removed: upgrading (uninstall then install) no longer loses plugin configuration.
| Setting | Default | Notes |
|---|---|---|
| Enable session deletion | On | Master switch; when off, neither the menu item nor the row button appears and delete requests are rejected |
| Confirm before deleting a session | On | Applies to both entry points; when off, one click deletes directly |
| Show delete button on session row hover | Off | When on, hovering a session row shows a delete icon; touch and other hoverless devices use the “…” menu |
Notifications
Supported events, all enabled by default and individually selectable:
- Task completed
- Waiting for your answer
- Waiting for approval
- Approval denied
- Subagent finished
- Goal completed or blocked
- Background job finished (not every command)
Desktop notifications and mobile push share the event selection but can be enabled independently.
Clicking a desktop notification opens the matching session. On Linux and Windows, if DSH is already open, it focuses the existing page and switches to that session; on macOS the system notification opens the link. On Linux, the system notification service must support actions (common desktop environments do); if notifications appear but clicks do nothing, check that notify-send and an action-capable notification service are available.
Mobile push
- Standard Web Push with one subscription per device.
- PWA must be enabled first: the Service Worker (
/sw.js) is served by the PWA feature, so push cannot be subscribed while PWA is off. - Click “Subscribe this device” in settings; the browser asks for notification permission, which must be triggered by your click.
- iOS / iPadOS 16.4+ is required, and DSH must be added to the Home Screen; regular Safari tabs cannot receive push.
- Unsubscribe at any time, or send a test push to verify the setup.
Install
dsh plugin --profile web add dsh-enhancement
Restart DSH Web after installation. The plugin brings in the portrait-layout dependency automatically; do not install or enable it separately.
Getting started
- Open DSH → Settings → Plugins →
dsh-enhancement. - Under “Access control”, set a password and save. The gateway enable switch becomes available after a password is set.
- Under “Gateway”, choose the listen address and port (default
3088), enable the gateway, and save. - If you need HTTPS, choose a certificate option in the same section and save. For a self-signed CA, install and trust the CA certificate on your devices.
- Open the gateway URL on your phone or another computer and log in with the password; DSH's
?token=is not required. - To use it as an app, install the PWA in your browser; on iOS use “Share → Add to Home Screen”.
- Under “Notifications”, select the events you want and click “Test desktop notification”. For mobile push, enable push and click “Subscribe this device”.
Tips
- Use HTTPS and a strong password before exposing the gateway to the internet.
- Do not reuse DSH's own port (default
3080) for the gateway; choose another free port if needed. - Self-signed certificates are best for devices you control; use a proper certificate when sharing with others.
- If you only use DSH locally, leave the gateway off; the normal DSH access path is unaffected.
Limitations
- The gateway, PWA, and push are off by default and require setup; the gateway cannot be enabled before a password is set.
- PWA installation, Service Worker, and Web Push all require HTTPS.
- iOS push requires 16.4+ and installation on the Home Screen.
- A self-signed/private CA must be installed and trusted on every device.
- Linux notification click support depends on the notification service implementing actions.
- Changing the password invalidates all gateway sessions, so you will need to log in again.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10715
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★ 10715
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★ 4154
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★ 1045
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.
WNLUO/dsh-mobile-plugin★ 571
The DeepSeek Harness app lets you use the DeepSeek Harness on this computer or server from your phone. Phones and tablets both work, on Android and iOS. On your phone you can keep chatting, look at files and manage plugins, and the machine you are using can also connect to DeepSeek Harness on your other machines and open each one separately.
uumit-ai/dsh-uumit-remote★ 537
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.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.