DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

napa3um /

napa3um/dsh-no-auth

Verified

DeepSeek Harness plugin that skips the Web client's launch-token check, so the GUI opens without a ?token= URL — convenient for devcontainers and local proxies.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@cb7d8328

dsh-no-auth

A DeepSeek Harness plugin that skips the Web client's launch-token check, so the GUI opens in a browser without a ?token=… URL. It exists for devcontainers and local proxies, where the tokenized URL the server prints never reaches the browser that opens the published address — the UI answers 401 instead.

This plugin weakens the Web authentication gate. It removes the one-time token exchange for hosts DeepSeek Harness already trusts. Keep the Harness port on loopback, or inside a private container network, and never expose it to an untrusted network. Read Security model before installing.

Third-party plugin. It is not part of DeepSeek Harness and is not published by DeepSeek.

Why you would want it

When Harness starts, it prints an authenticated URL of the form http://127.0.0.1:3080/?token=…. Opening that URL once exchanges the token for a signed cookie and redirects to the clean address. Two situations break the exchange:

  • A devcontainer or dev VM. The app publishes an address such as http://my-dev.orb.local:3080/. The tokenized URL points at the container's own loopback, and a browser outside the container cannot use it, so the clean address answers 401 unauthorized.
  • A local reverse proxy or port forward that strips the query string or terminates TLS on another hostname.

dsh-no-auth makes the clean address work directly: a browser request from a Host that Harness already trusts receives the same signed session cookie the token exchange would have minted, and a redirect into the app.

Requirements

  • DeepSeek Harness 0.2.2-rc.5 or newer within the 0.2.x line (engines.dsh).
  • The Web surface (dsh web, or the Desktop app). The plugin has no CLI or agent-tool surface.
  • No build step: the package ships plain JavaScript, so a git install needs no build-script permission.

Install

# Web app profile
dsh plugin --profile web add github:napa3um/dsh-no-auth

# Desktop app profile
dsh plugin --profile desktop add github:napa3um/dsh-no-auth

Then restart the Harness (or the Desktop app) and open the plain address, without a token. Pin the commit you reviewed if you prefer:

dsh plugin --profile web add github:napa3um/dsh-no-auth#<commit-sha>

Uninstall

dsh plugin --profile web remove dsh-no-auth

Then restart. The next browser session needs the tokenized URL again.

Usage

Install it, restart, and open the app's clean address. There is nothing to click: the plugin only answers the initial index request.

The default is "any host DeepSeek Harness itself trusts". To narrow that, give the row a host allowlist in your profile's cordis.patch.yml:

- id: no-auth
  name: dsh-no-auth
  config:
    allowHosts:
      - my-dev.orb.local

allowHosts accepts full host:port values or bare hostnames, case-insensitively, as a list or a single string. Loopback (localhost, 127.0.0.1, ::1) always works, so a narrow list cannot lock you out of the machine-local UI.

To turn this host restriction off, use the wildcard:

config:
  allowHosts: ["*"]

"*" (alone or beside other entries) disables the plugin's own allowlist — the same as omitting allowHosts. Another address still has to be trusted by the server itself: admit it with dsh web --trusted-host <host>, or its API answers 403.

How it works

The Web server turns an index request into one of three outcomes: serve the UI (valid cookie), exchange the launch token (tokenized URL), or 401. The plugin wraps ctx.connection.authorizeIndex — the single entry point the static frontend calls — and asks ctx.connection.admit(request) which outcome applies:

  • a peer is returned → the browser is already authenticated, so the stock handler runs;
  • 403 → the Host/Origin fence rejected the request, so the stock handler runs;
  • 401 → the host is trusted but this browser has no session: the plugin mints the v1 session cookie for the request's normalized audience, exactly as the token exchange would, and answers 303 to ./.

The cookie is signed with the running server's own secret and carries the same lifetime, so the rest of the browser session (API, RPC, streams) authenticates normally.

Security model

  • The Host/Origin fence stays in force. admit applies Harness's trusted-host rules first; an untrusted Host header still gets the stock refusal. The plugin never accepts a host that Harness would reject.
  • The bypass reuses the server's signing secret. It mints a real session cookie, not a fake one, so nothing downstream needs to trust the plugin.
  • allowHosts: ["*"] does not widen that fence. It only turns off the plugin's own allowlist.
  • This removes a credential check. Any client that can reach the port with an accepted Host header becomes the owner peer without a token. That is acceptable on loopback, inside a private container network, or on a machine-local proxy — and unacceptable on a publicly reachable port. Put it behind your container's network boundary and keep allowHosts narrow when the address is stable.
  • It reads private members. DSH has no public cookie-minting API, so the plugin reads connection.browserAuth.secret and .maxAgeMilliseconds. If a future release changes them, the plugin logs a warning and leaves the token gate enabled instead of guessing.

Compatibility

  • Written and tested against 0.2.2-rc.5. The plugin relies on the internal browser-auth owner and the connection.authorizeIndex/admit service methods; a release that changes them leaves the gate enabled and the log carries one warning from dsh-no-auth.
  • It unloads cleanly: disabling the bundle restores the stock authorizeIndex.

Development

├── index.js           # the Host plugin: patches connection.authorizeIndex
├── cordis.patch.yml   # bundle layer mounting the row
├── test/              # node:test unit tests for the cookie and the decisions
├── locale/*.json      # plugin card metadata
├── icon.svg           # plugin icon
└── README.md
node --test test/no-auth.test.mjs
node --check index.js

License

MIT — see LICENSE.

—/ 5

No ratings yet

Verified DSH bundle

Commit cb7d83282e76

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout