Skip to content

PWA and proxy login ​

Install DSH as a PWA or sign in via a reverse proxy.

@lukstei/dsh-client-pwa

What it does ​

  • Serves a web app manifest and icons so you can install DSH as a standalone app from Chrome or Safari.
  • Adds the manifest and home-screen icon links to the DSH page automatically.
  • Optionally signs you in without a token when a reverse proxy you control vouches for you with a header and a trusted IP range.
  • The proxy login is off by default; standard token login stays active.

How to use ​

  1. Install the plugin. The shipped patch already enables the manifest and icons, so a localhost install needs no config.
  2. Open DSH in Chrome (or Edge) and use the install icon in the address bar, or the menu entry "Install DeepSeek Harness".
  3. On iOS Safari, tap Share, then "Add to Home Screen".
  4. Open the installed app. It starts at /login in a standalone window without browser chrome.
  5. Optional: set up proxy login (see below) so a phone on your private network signs in without a token.

Example 1: Localhost PWA ​

No cordis.patch.yml entry is needed after installing the plugin. Standard DSH token login stays active.

Example 2: Tailscale Serve (optional, my own setup) ​

This is an example from my own setup for reaching local DSH from a phone. You do not need Tailscale or reverse-proxy login for desktop use. Any authenticating HTTPS proxy works if you match its header and IP range.

Expose local DSH on your tailnet:

sh
tailscale serve --service=svc:dsh --https=443 http://localhost:3080

Then override client-pwa in your profile cordis.patch.yml:

yaml
- id: client-pwa
  config:
    auth:
      userHeader: 'tailscale-user-login'
      trustedCidrs: ['127.0.0.1', '::1', '100.64.0.0/10', 'fd7a:115c:a1e0::/48']
      authRoutes: ['/login', '/auth/tailscale', '/auto-login']
      loginRedirectPath: '/login'
    pwa:
      pathPrefixes: ['/tsctl'] # optional: only needed when mounted under a subpath

Tailscale terminates HTTPS at https://dsh.<tailnet>.ts.net and injects tailscale-user-login. Requests from your tailnet sign in without a token, and Safari or Chrome can add DSH to your home screen.

Security warning ​

Trusted-proxy login is safe only if a reverse proxy you control sets the header and strips it from outside requests. Anyone who can spoof that header or reach DSH from a trusted IP range gets in. The plugin trusts the header and x-forwarded-for as sent, without a signature.

Controls & gestures ​

The plugin adds no clickable UI of its own. What you get on an installed app comes from other plugins.

WhereGestureResult
Installed app icon (dock or home screen)none (automatic)Badge shows the count of sessions with pending interactions plus recently active sessions in review (needs dsh-client-notify)
Viewport narrower than 768pxnone (automatic)Kanban stacks into one column and split view shows one session at a time (from dsh-client-kanban and dsh-client-split-view)

Settings you might change ​

Change the app name shown on the home screen:

yaml
- id: client-pwa
  config:
    pwa:
      name: 'DeepSeek Harness'
      shortName: 'DSH'

Proxy login fields (auth.*) and manifest colors are listed in the package README.

Works with ​

Good to know ​

  • The app badge needs the app to be installed; browsers ignore it otherwise.
  • The index login bounce only checks the user header and x-forwarded-for, so IP-range trust there needs a proxy that sets x-forwarded-for.
  • The auth redirect always targets https://.
  • Model Experience: adds nothing to the agent's context.

Install ​

sh
dsh plugin --profile <web|desktop> add @lukstei/dsh-client-pwa

Released under the MIT License.