Introduction¶
When using models in DSH, if there is existing chat history on the web interface chat.deepseek.com, it is usually desired to import these chats into DSH to open them as formal sessions, view the full history, and continue the conversation by selecting a model. Below is an introduction to the capabilities, installation method, and important limitations of the wpc0323/deepseek-web-import plugin.
What is this¶
wpc0323/deepseek-web-import is a DeepSeek Harness (DSH) plugin used to import chat history from the web interface chat.deepseek.com as formal sessions in DSH.
- Maintainer:
wpc0323 - License: MIT
- Adds a “DeepSeek Chat Import” page to the DSH Settings panel after installation
Core Features¶
The plugin primarily provides the following capabilities:
- Adds a “DeepSeek Chat Import” page to the Settings panel
- Fetches the chat directory after pasting a
userToken, displaying only titles and dates without expanding the body text - Select a target workspace for each chat and import it as a DSH session
- Imported sessions display the original titles from DeepSeek
- Imported sessions allow selecting a model to continue the conversation using DSH’s normal resume path, avoiding the error
cannot prepare session while it is live - Imported sessions are persisted under
~/.dsh/sessions/<workspace>/and remain after restarting DSH - Automatically extracts the
valuefield from theuserToken, compatible with the following format:
{"value":"...","__version":"0"}
- Includes a built-in “Diagnostics” area to view the raw response directly if the API changes
Installation and Enablement¶
Install the plugin using the following command:
dsh plugin add wpc0323/deepseek-web-import
After installation, open DSH Settings, and the “DeepSeek Chat Import” page will appear on the left.
Typical Usage¶
The following is a step-by-step usage guide that can be executed directly:
- Open Settings -> DeepSeek Chat Import.
- Paste
userToken-> Save.userTokencan be copied from the browser Local Storage ofchat.deepseek.com; the plugin will automatically extract thevaluefield, so copying the entire string directly works as well. - Click “Get Chat Directory”. The directory displays the most recent 100 chats at a time, containing only titles and dates.
- Select a target workspace next to each chat and click “Import as Session”.
- Refresh the webpage (F5) after importing chats, then open a new session in the workspace on the left and select a model to continue the conversation.
Token storage uses the DSH credentials service, located at:
$DSH_HOME/.credentials.yaml
It does not write to session or settings documents.
Applicable Scenarios and Notes¶
This plugin is suitable for developers who already have chat history on chat.deepseek.com and wish to import these chats into a DSH workspace for continued use. Before use, please note the following:
- Please refresh the webpage (F5) after importing chats; if not refreshed, new sessions may not appear until the next session list refresh/reconnect.
- Relies on DeepSeek’s unofficial internal interfaces, which may become invalid with website updates. If invalid, you can use the “Diagnostics” area to view the raw response.
- Password login is intercepted by DeepSeek’s CAPTCHA (AWS WAF), so the
userTokenmethod must be used. - The chat directory fetches a maximum of 100 chats at a time; if there are more than 100, only the most recent 100 are returned.
userTokenhas an expiration time, roughly from a few hours to a few days; simply re-copy and save it after it expires.- The request is enabled with
rejectUnauthorized: false, which is an environmental limitation due to local TLS certificate verification failure. - Please do not leak account passwords or
userTokenin any chats, issues, or repositories. If you have posted a password in chat, please change your DeepSeek password immediately. - DSH plugins run with the permissions of the current
dshprocess; it is recommended to check the source code and license before installation. The license of this project is MIT.
Conclusion¶
The value of wpc0323/deepseek-web-import is straightforward: converting the chat history from the chat.deepseek.com web interface into formal, openable, and resume-able sessions in DSH.
Project URL: