Preface¶
When building agents or doing daily development in DSH, users often need to switch back and forth between the IDE sidebar and the browser to chat on chat.deepseek.com. While opening a separate browser tab works, it results in a dual-window setup separate from the DSH workspace. The community plugin dsh-dschat (Maintainer: Jakcet, Category: Client) solves this by adding an entry point to the DSH Desktop sidebar. It loads the official webpage as-is using an Electron <webview> within the main panel, accompanied by a navigation toolbar and local login snapshots to reduce the burden of repeated logins after restarts.
The following sections describe what it is, what it can do, how to install it, and the host limitations you accept when using it.
What is this?¶
dsh-dschat integrates the DeepSeek web chat into the main panel of the DSH Desktop version. The sidebar gains a “DeepSeek Web Version” entry (blue whale bubble icon); clicking it opens a keyed main panel. The page source is https://chat.deepseek.com/; the plugin does not modify the page or inject scripts. Login is completed on DeepSeek’s own page, and the plugin does not touch passwords.
This capability relies on globalThis.dshDesktop.browser exposed by the DSH Desktop preload. In the DSH Web version, the panel will only display a prompt, and the webview cannot be used.
- Directory Page: SkillHub - Jakcet/dsh-dschat
- Source Code & Docs: GitHub - Jakcet/dsh-dschat
- npm Package Name:
dsh-dschat(The README indicates the current release version can be viewed via the npm badge; the version in package metadata is0.1.2) - License: MIT
Core Features¶
Sidebar and Main Panel¶
The sidebar icon list adds a DeepSeek web version entry, corresponding to a main panel that hosts the real DeepSeek Web application internally.
Toolbar¶
The main panel provides: Back, Forward, Refresh, Return to DeepSeek Home, Display Current Address, and Open in System Browser.
Loading Official Site As-Is¶
After dom-ready, it loads https://chat.deepseek.com/ via loadURL. Except for reading localStorage once after login for snapshot purposes, it does not alter the page.
Login Snapshot¶
The partition used by the DSH sidebar browser is an in-process memory partition; cookies are lost after the application restarts. After login, the plugin writes string values from localStorage with keys matching token / user / auth / session / login to a local file via a host route:
~/.dsh/dsh-dschat/storage.json
The file permission is 0600. On the next open, it backfills these keys first, then refreshes the page. Whether this allows skipping the login page depends on where the DeepSeek web version stores the session: httpOnly cookies are not included in the snapshot scope.
Security Boundary (Summary of Operation)¶
The plugin requests a guest via globalThis.dshDesktop.browser.acquire(workspace). The main process verifies the lease and partition during will-attach-webview before mounting the <webview>. It shares the lease verification, sandboxing, and navigation policies with the built-in sidebar browser; the plugin itself does not obtain Electron/Node permissions. When the panel is unloaded, it calls bridge.release(lease) to release the guest.
Installation & Requirements¶
Environment Requirements¶
- DSH Desktop (Required)
- DSH Version:
>= 0.2.1-rc.2(see package.jsonengines.dsh)
Installation¶
Search for dsh-dschat in the DSH plugin market to install, or install the package as a bundle into your DSH profile:
npm install dsh-dschat
Installing the plugin runs with the permissions of the current DSH process; it is recommended to review the repository source code and the MIT license before enabling it.
Typical Usage¶
- Confirm you are using DSH Desktop and the version meets
>= 0.2.1-rc.2. - After completing the installation as described above, click the “DeepSeek Web Version” icon in the sidebar to open the main panel.
- Log in within the embedded page following the official DeepSeek flow; login-related
localStoragewill be automatically backed up to~/.dsh/dsh-dschat/storage.json. - Use the toolbar for Back, Forward, Refresh, Return to Home, or to open the current site in the system browser if needed.
- If you need to clear the local snapshot, simply delete
~/.dsh/dsh-dschat/storage.json.
The plugin does not proxy, scrape, or forward chat content; it only renders the official page and retains the local snapshot file mentioned above. The snapshot may contain plaintext related to login, so please keep it secure like a cookie file and do not share it.
Use Cases & Notes¶
Who it is for: Users who want to use DeepSeek web chat directly within the same workspace of DSH Desktop and are willing to accept the “embedded webview + local localStorage snapshot” solution.
Known Limitations (from DSH host policies, the plugin cannot bypass these):
- Downloads initiated within the guest will be cancelled.
- Permission requests for notifications, microphone, clipboard, etc., are all denied.
- Requests to open new windows are converted to navigation within the same panel.
- The browser partition is rebuilt at every startup; relying solely on the public API cannot achieve a completely zero-login experience after a restart.
- Available on Desktop only.
Privacy: No reporting beyond the local snapshot; clearing the snapshot deletes the login-related backup saved by the plugin.
Repository Structure (For Source Code Reference)¶
| File | Purpose |
|---|---|
index.js |
host: Snapshot & log HTTP routes, client module list cache refresh |
client.js |
client: Sidebar icon, main panel, webview lifecycle, toolbar |
cordis.patch.yml |
bundle patch |
icon.svg |
Plugin icon |
Conclusion¶
The value of dsh-dschat is straightforward: it provides a fixed entry point with a toolbar for DeepSeek’s official web chat within DSH Desktop, and tries to maintain the localStorage side of the login state using ~/.dsh/dsh-dschat/storage.json. It does not replace a standalone browser, nor does it guarantee a login-free experience after restarts, but in the “everything is a plugin” DSH ecosystem, it is a lightweight way to bring a commonly used chat page into the workspace.
- Plugin Directory: https://www.skillhub.cn/plugins/Jakcet/dsh-dschat
- GitHub: https://github.com/Jakcet/dsh-dschat