在 DSH 桌面版主面板里通过 Electron webview 嵌入 DeepSeek 网页版聊天(chat.deepseek.com),带后退/前进/刷新工具栏,并把登录相关的 localStorage 快照存在本地、下次打开时回填。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-dschat
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Jakcet/dsh-dschat
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
把 DeepSeek 网页版聊天(chat.deepseek.com)装进 DSH 桌面版的面板里。
侧栏会多一个「DeepSeek 网页版」图标,点开就是一个主面板,里面用 Electron <webview> 原样载入网页版,工具栏可以后退、前进、刷新、回首页、在系统浏览器打开。登录在 DeepSeek 自己的页面上完成,插件不接触你的密码。
这个面板需要
globalThis.dshDesktop.browser,它只由 DSH 桌面版的 preload 暴露;Web 版只会显示一行提示。
功能
- 侧栏入口 + 主面板:keyed panel,图标是蓝色鲸鱼气泡。
- 工具栏:后退、前进、刷新、回 DeepSeek 首页、当前地址、在系统浏览器中打开。
- 原样加载
https://chat.deepseek.com/,不改页面、不注入脚本(只在你登录后读一次localStorage做快照)。 - 登录快照:DSH 侧栏浏览器的 partition 是进程内内存分区,应用重启就丢 cookie。登录后插件把页面
localStorage里登录相关的键备份到~/.dsh/dsh-dschat/storage.json(权限0600),下次载入时先回填、再刷新页面。 能不能因此完全跳过登录页,取决于网页版把会话放在哪里:httpOnlycookie 不在快照范围内。
安装
在 DSH 插件市场里搜索 dsh-dschat 安装,或手动作为 bundle 装进你的 DSH profile:
npm install dsh-dschat
要求
- DSH 桌面版(依赖 preload 暴露的
globalThis.dshDesktop.browser)。 - DSH
>= 0.2.1-rc.2。
它是怎么工作的
- 主面板挂载时,client 半部向 DSH 桌面版的 preload 桥申请一个 guest:
globalThis.dshDesktop.browser.acquire(workspace)。 - 拿到
{ lease, partition }后创建<webview>,name填 lease、partition填 partition、src填about:blank#<lease>;DSH 主进程会在will-attach-webview里校验 lease 和 partition,通过后才真正挂载。 - pages 加载完成(
dom-ready)后loadURL('https://chat.deepseek.com/')。 - 登录态变化后,把
localStorage里键名匹配token/user/auth/session/login的字符串值 POST 给插件的 host 路由,写到本地快照文件;下次打开时先回填再刷新。 - 面板卸载时
bridge.release(lease)释放 guest。
因为走的是和内置侧栏浏览器同一套 lease 校验、sandbox 与导航策略,插件本身拿不到 Electron/Node 权限。
已知限制(来自 DSH 宿主策略,插件绕不过去)
- guest 内发起的下载会被取消。
- 通知、麦克风、剪贴板等权限请求一律拒绝。
- 窗口打开请求会转成同面板内导航。
- 浏览器 partition 每次启动重建,用公开 API 做不到「完全零登录」重启。
- 只有桌面版可用,Web 版不工作。
隐私
插件不代理、不抓取、不转发任何内容,只渲染官方页面并保留一份本地快照。快照里可能有登录相关数据的明文,请当作 cookie 文件对待,不要分享;删掉 ~/.dsh/dsh-dschat/storage.json 即可清除快照。
文件
index.js— host 半部:快照与日志的 HTTP 路由,以及一次性的客户端模块清单缓存刷新。client.js— client 半部:侧栏图标、主面板、webview 生命周期、工具栏。cordis.patch.yml— bundle patch。icon.svg— 插件图标。
License
MIT
English
Embed the DeepSeek web chat (chat.deepseek.com) in a DSH Desktop main panel.
A sidebar entry opens a keyed main panel that hosts the real DeepSeek web app inside an
Electron <webview> guest, requested from the DSH desktop preload bridge
(globalThis.dshDesktop.browser.acquire) so it goes through the same main-process lease
check, sandbox flags and navigation policy as the built-in sidebar browser.
What it does
- Adds a DeepSeek Web entry to the sidebar icon list and a main panel.
- Toolbar: back, forward, reload, home, current URL, open in system browser.
- Loads
https://chat.deepseek.com/unmodified. Sign-in happens on DeepSeek's own page; the plugin never sees or stores your password. - Login snapshot. DSH's sidebar-browser partition is a process-local in-memory
partition, so cookies are gone after an app restart. After you sign in, the plugin copies
login-related
localStoragekeys to~/.dsh/dsh-dschat/storage.json(mode0600) and restores them on the next load before reloading the page. Whether that is enough to skip the sign-in screen depends on where DeepSeek keeps the session:httpOnlycookies are not part of the snapshot.
Install
Install it from the DSH plugin market (search for dsh-dschat), or add this package as a
bundle to your DSH profile:
npm install dsh-dschat
Requirements
- DSH Desktop. The panel needs
globalThis.dshDesktop.browser, which only the desktop preload exposes. In the web build the panel shows a notice and does nothing. - DSH
>=0.2.1-rc.2.
Known limits (enforced by the DSH host, not by this plugin)
- Downloads started inside the guest are cancelled.
- Permission requests (notifications, microphone, clipboard) are denied.
- Window-open requests are turned into navigation in the same panel.
- The browser partition is recreated on every app start, so a fully zero-login restart is not possible with the public host API.
Privacy
The plugin does not proxy, scrape or forward anything. It renders the official page and keeps one local snapshot file. That file can contain login-related values in plain text; treat it like a cookie jar and do not share it. Delete it to forget the snapshot.
License
MIT
链接
同类插件
Tencent/BrowserSkill#dsh-plugin-browserskill★ 10886
BrowserSkill 的 DeepSeek Harness 浏览器自动化桥接插件,通过原生浏览器工具控制可见的 Chrome 和 Edge Agent Window,支持可访问性与 VOM 页面观察、截图、隔离的多会话控制和 Web UI 实时观察浮层。
DDDMUC/dsh-free-search★ 1889
DSH 免费搜索插件,共 42 个引擎:6 个免 key 引擎(DuckDuckGo、Bing、SearXNG、Degoog、AnySearch)、6 个 key 与免 key 双档引擎(Exa、Tavily、Keenable、Firecrawl、Parallel、You.com)、5 个 HTML 搜索页,以及从 Brave、百度到知乎、OpenAI、Claude 的各类需 key 供应商。支持失败分类回退与冷却、多 key 轮换、引擎白名单、可增删的回退链、中英语言池、Multi 并发合并、12 个 MCP 工具与独立 stdio server,设置页可按引擎填写 key。
omdsh-dev/dsh-browser#packages/browser/bridge-browser★ 1173
Chrome 侧边栏扩展,让 DSH 直接操控你的浏览器,无需视觉能力。
liustack/modsearch★ 1068
纯文本 agent 的联网搜索桥:搜索网页与 X,返回结构化 JSON 证据(search/fetch/引用)。
Fisfzy/dsh-ego-browser★ 603
用 35 个结构化工具从 DeepSeek Harness 驱动真实 Chrome/Chromium:导航、语义快照、点击、表单、JavaScript/CDP、截图、下载与标签页管理;右侧边栏实时镜像页面,并支持鼠标键盘直接接管。插件自带受管 CDP 运行时,跨调用保留登录状态,并可通过配套 Chrome 扩展从日常浏览器导入 cookie。
regrevia/Envoy#dsh-envoy★ 315
蒸馏一切链接,出摘要、Markdown、Wiki 或知识库。装法按宿主:DSH → envoy-dsh;Claude Code、Codex → envoy@envoy。抖音与 B 站视频、图文笔记、公众号、小红书、PDF、播客都在内。视频按时序读:关键帧配 ASR 转写,内容定到 \[mm:ss],上下文里是实际说过、看得见的东西,不是标题和推荐流。同一批题 60 轮对照:正常读完并把缺口说清 22% → 92%,跑到超时 68% → 0%(这组 A/B 是探索性的:两臂时限不同、未做人工正确性复核)。123 条真实链接里 80% 能直接当素材(能连上的页面里 93%)。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。