wpc0323/deepseek-web-import

Plugin插件 Native原生 ⭐ 4 MIT Sessions & Context会话与上下文

DeepSeek Web 对话导入

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that imports conversation history from the official DeepSeek web chat (chat.deepseek.com) into DSH as persistent, resumable sessions. To install the plugin, you just run the command dsh plugin add wpc0323/deepseek-web-import in your terminal, then restart DSH to activate it. Once installed, you will see a new entry labeled "DeepSeek Conversation Import" in the DSH settings sidebar, where you can paste your DeepSeek userToken to get started. To get your userToken, you open chat.deepseek.com in your browser, open the developer tools with F12, navigate to Local Storage under the Application tab, and copy the full value of the userToken entry. The plugin will automatically extract the value field from the copied content, so you do not need to edit it before pasting.

This plugin is designed for users who switch between DeepSeek's web chat and DSH, or want to move existing web conversations to DSH to continue working on them. After pulling your conversation list, you can select any conversation, choose a target DSH workspace, and import it as a new session in one click. Imported sessions are stored persistently in DSH's ~/.dsh/sessions/<workspace>/ directory, so they remain available after you restart DSH. Unlike manual imports that can cause active session errors, this plugin writes directly to persistent storage, so you can open and resume any imported session immediately. After you finish importing, you will need to refresh the DSH web page for the new session to appear right away in your workspace list.

This plugin is released under the open source MIT license, so it is free to use and modify. It relies on non-public internal APIs from DeepSeek's web chat, which means the plugin can stop working if DeepSeek changes their website structure. When that happens, you can use the built-in diagnostic area to view the raw API response and troubleshoot the issue. There are several known limitations: you can only pull up to 100 conversations at a time, userTokens expire after a few hours to days, and password login is often blocked by DeepSeek's AWS WAF human verification. You should never share your userToken or DeepSeek account credentials publicly in issues, chat messages, or anywhere else online.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,功能是将 chat.deepseek.com 网页端的历史对话导入为 DSH 的正式会话。项目自带符合规范的 dsh.bundle 清单,可通过 DSH 内置的 dsh plugin add wpc0323/deepseek-web-import 命令直接安装。安装完成并重启 DSH 后,设置面板侧边会新增「DeepSeek 对话导入」入口,粘贴 DeepSeek 的 userToken 即可一键拉取对话列表,还能为每条对话选择目标工作区完成导入。

如果你经常同时使用 DeepSeek 网页端和 DSH,或是需要将网页端已有的对话迁移到 DSH 中继续会话,这个插件可以帮你省去手动复制粘贴对话的麻烦。导入后的会话会正常显示在 DSH 左侧工作区列表中,保留原对话标题,可直接打开查看完整历史,还能选择模型继续对话,不会出现 DSH 常见的「无法在会话活跃时准备会话」报错。插件支持自动提取 userToken 中的 value 字段,用户直接复制整段内容粘贴即可,无需手动提取处理。

本插件采用 MIT 许可开源免费使用,它依赖 DeepSeek 网页端的非官方内部接口,功能可能随 DeepSeek 网页改版而失效,出现问题可通过插件内置的诊断区查看原始响应排查。目前已知限制包括:一次最多拉取 100 条对话,userToken 存在时效性,有效期从数小时到数天不等,失效后需要重新复制粘贴。导入完成后需要手动刷新 DSH 网页,新导入的会话才会立刻显示在左侧工作区列表中。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin add wpc0323/deepseek-web-import

把 wpc0323/deepseek-web-import 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DeepSeek Web 对话导入(DeepSeek Harness 插件)

将 chat.deepseek.com 网页端的历史对话导入为 DeepSeek Harness (DSH) 的正式会话:导入后会话出现在左侧工作区列表中,可以打开、查看完整历史,并选择模型继续对话。

本项目是一个可安装的 DSH 插件包(dsh.bundle manifest:host 半部 + web client 半部),可通过 dsh plugin add 安装。安装方式见下文「安装」。


✨ 功能

  • 设置面板新增 「DeepSeek 对话导入」 页面
  • 粘贴 userToken 后一键拉取对话目录(仅显示标题 + 日期,不展开正文)
  • 每条对话可选目标工作区,一键导入为 DSH 会话
  • 导入的会话:
    • 显示 DeepSeek 里的原标题
    • 可在其中选模型继续对话(走 DSH 正常 resume 路径,不会报 cannot prepare session while it is live)
    • 持久化在 ~/.dsh/sessions/<工作区>/ 下,重启 DSH 后仍在
  • 自动提取 userToken 中的 value 字段(兼容 {"value":"...","__version":"0"} 格式)
  • 内置「诊断」区,接口变更时可直接 GET 原始响应排查

⚠️ 重要提示

导入对话后请刷新网页(F5),左侧工作区才会立即显示新导入的会话。

若不刷新,新会话可能要到下次会话列表刷新/重连后才出现。


安装

插件声明了 dsh.bundle(见 package.json),可通过 dsh plugin add 安装:

dsh plugin add wpc0323/deepseek-web-import

说明:安装后重启 DSH,设置 → 左侧会出现 「DeepSeek 对话导入」 页面。仓库中的 lib/index.js 是 host 半部(提供同源 JSON 路由),lib/client.js 是 web client 半部(设置页 UI);二者通过 webServer 路由 + fetch 通信。


使用

  1. 打开 设置 → DeepSeek 对话导入。
  2. ① 登录态:粘贴 userToken → 保存。
    • 获取:浏览器登录 chat.deepseek.com → F12 → Application → Local Storage → 复制 userToken 的值。
    • 插件会自动提取其中的 value 字段,直接复制整段即可。
  3. ② 对话目录:点「获取对话目录」→ 显示最近 100 条对话(标题 + 日期)。
  4. 每条对话旁:选择工作区 → 点「导入为会话」。
  5. 导入对话后请刷新网页,然后在左侧工作区点开新会话 → 选模型 → 继续对话。

示例

1. 打开设置 → DeepSeek 对话导入
2. 粘贴 userToken → 保存(状态变为「已配置」)
3. 点「获取对话目录」→ 看到你的 DeepSeek 对话列表(标题 + 日期)
4. 在「sharp加载失败解决」那一行选工作区 dsh-work → 点「导入为会话」
5. 刷新网页 → 左侧工作区出现「sharp加载失败解决」→ 点开即可继续对话

导入只写持久化(sessionPersistence),不进入 live store,因此导入的会话可以被正常打开、续聊(不会报 cannot prepare session while it is live)。


会话日志损坏(corrupt session log)排查与修复

这是 DSH 自身的恢复游标问题(session/end-seed 由活动会话单独 append、重启后游标漏算导致 seq 复用),与本插件无关;插件的导入方式(整批写入)恰好避开了触发。现象、根因、修复方法见 docs/TROUBLESHOOTING.md。


兼容性(DSH Session 格式 v0–v4)

DSH 每个版本写入一种会话格式(v0…v4),插件按运行中的版本自适应,实测矩阵:

DSH 版本 Session 格式 状态
0.1.1-rc.2 – 0.1.2-rc.1 v0 ✅ 真实后端实测
(未发布) v1 ✅ 按 v0 建模 + 运行时方言证据
0.1.3-alpha.2 v2 ✅ 真实后端实测
0.1.5-rc.2 – 0.1.6-alpha.2 v3 ✅ 真实后端实测
0.1.7-rc.2+ v4 ✅ 真实后端实测

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-python-env 下一个 Next dsh-tool-chaos →