Introduction¶
DeepSeek Harness (DSH) adopts a “everything is a plugin” philosophy, extending its capabilities through plugins. When running DSH locally, we often want to reuse existing conversation histories from the web interface rather than starting fresh or manually reorganizing them. However, DSH natively lacks the ability to pull history from the web. The dsh-deepseek-history plugin reads the browser session token, organizes the history on chat.deepseek.com into date-grouped Markdown files, and then imports them as native DSH Sessions, enabling history reuse.
Plugin Overview¶
- Name: dsh-deepseek-history
- Maintainer: loveainty-glitch
- Category: Memory
- Core value: Imports DeepSeek web conversation history into DSH, supporting token-based connection, incremental sync, and Agent tools.
Core Features¶
- Web account connection: Paste your
userTokenin the panel; after validation, it is stored in the DSH credential store (DEEPSEEK_WEB_TOKEN). - History sync: Fetches all sessions and messages, exports them as Markdown organized into date-based folders, and imports them as native DSH Sessions.
- Incremental deduplication: Sessions that have already been imported and remain unchanged will not be recreated.
- Agent tools: Provides four commands:
deepseek_history_status,deepseek_history_list,deepseek_history_sync, anddeepseek_history_open_panel.
Installation & Activation¶
According to the official README, the installation command is as follows:
dsh plugin add github:loveainty-glitch/dsh-deepseek-history
After installation, refresh the page and click the “🕘” button in the bottom-right corner to open the plugin panel.
Typical Usage¶
- Open the plugin panel, click “Open Login Page,” and sign in to
chat.deepseek.comin your browser. - On that page, press F12 to open Developer Tools, switch to the Console tab, and run:
JSON.parse(localStorage.userToken).value
Copy the returned value, paste it into the plugin panel’s input field, and click “Connect.”
3. Once connected successfully, click “Start Sync.”
The post-sync Markdown archive directory is located at: <DSH_HOME>/deepseek-history/export/.
Use Cases & Caveats¶
- Ideal for developers and researchers who need to import web conversation history into DSH.
- The plugin runs with the current dsh process privileges. Please review the source code and license before installing and using it.
- The official DeepSeek API does not provide history storage; web history can only be read via the browser session token.
- Tokens expire. After expiration, you must re-obtain and reconnect with a new token from the browser.
- Only sessions under the currently logged-in account are synced; image/file attachments are not imported (text and thinking process only).
- Using a web login session with a third-party tool carries account risk. Please assess it yourself and comply with DeepSeek’s Terms of Service.
Summary¶
dsh-deepseek-history organizes web conversation history into DSH, making local reuse and long-term archiving convenient. When you need to sync history from the web interface, this plugin is the way to go. The plugin homepage and source code are available on GitHub:
- https://github.com/loveainty-glitch/dsh-deepseek-history
- https://www.skillhub.cn/plugins/loveainty-glitch/dsh-deepseek-history