DeepSeek Harness Plugin

jaychang1989/dsh-webchat

Stars ★ 14 Downloads (30d) 2,224 Category Browser & Web Added 2026-10-11 npm @jaychang1989/dsh-webchat

Opens the official DeepSeek web app (chat.deepseek.com) inside DeepSeek Harness: one sidebar entry renders the real page in the center column through the desktop shell's native browser guest, and keeps you signed in across restarts. The official client keeps its model picker, deep think, smart search, history and attachments. Falls back to opening a window where no guest bridge exists.

Install

# from npm (prebuilt)

dsh plugin --profile web add @jaychang1989/dsh-webchat

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

dsh plugin --profile web add github:jaychang1989/dsh-webchat

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

Introduction

Opens the official chat.deepseek.com web app inside DeepSeek Harness Desktop: click "Chat" in the sidebar and the real page renders in the center column of the DSH window, like any other full-page view.

Install

dsh plugin --profile desktop add @jaychang1989/dsh-webchat

Or straight from this repository:

dsh plugin --profile desktop add github:jaychang1989/dsh-webchat

Restart the desktop app after installing.

Use

  1. Click "Chat" in the sidebar — the page loads in the center column; there is no second click.
  2. Sign in to DeepSeek once — restarts will not ask again.
  • Clicking again collapses the panel. Switching to another panel (Plugins, Automation Tasks, a session …) only hides the guest, never unmounts it, so coming back neither reloads the page nor drops the session.
  • External reply links (citations and sources that would open a new window) now open in the system default browser — before, clicking them did nothing.
  • The shell hands every browser guest a process-lifetime partition (a fresh random name per run), so this plugin carries the session itself: the page's localStorage and its own cookies travel through the page, and the partition's cookies (HttpOnly included) travel through the host half wherever Electron is reachable. Without Electron, the first two still work.
  • To sign out: fully quit DSH, then delete the snapshot file. It lives at %USERPROFILE%\.dsh\dsh-webchat\session.json by default, or <DSH_HOME>\dsh-webchat\session.json when DSH_HOME is set. Legacy credentials are migrated once and the old file is retained for backup; it can be removed manually. Keep the credential-free session.migrated marker to prevent the old login from being imported again.

Press F5 or Ctrl+R (⌘R on macOS) while Chat is selected to refresh the official page and fetch conversations created on another device. No extra refresh button or app restart is needed. The bindings can be customized in the shell shortcut settings.

Login compatibility

  • The user agent only drops the Electron/<version> token; everything else passes through byte-for-byte. This dodges the site's literal "electron" substring check (the 使用环境异常 dialog) without the version-fingerprint mismatch that once worsened WAF challenges and Google sign-in.
  • All automatic saves wait for login restoration and its reload to finish. Failed restoration preserves the previous snapshot. Page credentials are only accessed on the official chat origin, and OAuth-site cookies are excluded.
  • Automatic snapshots exclude AWS WAF cookies and storage. Old WAF storage is skipped during restore. Explicitly imported cookies are still restored as supplied, but WAF cookies are not automatically saved afterwards.
  • Some DSH Desktop 0.2.0-rc.2 environments expose no Electron cookie API. Page storage can still carry the login, but HttpOnly cookies cannot be saved or restored there. /api/dsh-webchat/state reports availability through session.electron.
  • These fixes do not guarantee that an embedded browser passes site challenges. Real sign-in, Google authorization and restart survival still depend on the host and site.

Requirements

  • DeepSeek Harness 0.2.0-rc.2 or a newer 0.2.x
  • Node.js >= 22
  • The desktop app: only it provides the native guest bridge; plain dsh web uses the window fallback

Development and tests

node --test

License

Apache-2.0

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.