Preface¶
When working on projects in DSH, workspace files often remain local: to back them up, transfer them to cloud storage, or have an Agent upload newly generated artifacts, the common approach is to install another set of cloud drive clients or write custom scripts to call open platform APIs. Using the 123pan open platform requires an appid and secret, which isn’t always convenient for individuals or small teams.
Here, we introduce the community plugin dsh-123pan (maintainer cny919191): it integrates 123pan into DSH, allowing login via phone number or email plus password. It enables browsing, uploading, downloading, and managing files within the host, and supports incremental backup of the workspace to the cloud. Network requests, MD5 verification, 16MB chunked uploads, CDN downloads, and token encryption are handled by the bundled C++ static core 123pan-core.exe; the plugin layer uses Node.js for parameter assembly and UI. The README specifies no Python dependency or additional runtime requirements.
What is this¶
The architecture can be summarized as follows:
dsh plugin ──Tools/Settings──▶ 123pan-core.exe (C++ Static Link) ──▶ 123pan Cloud
The plugin registers Agent tools and local HTTP routes within DeepSeek Harness, providing a “123 Cloud Disk” panel in the left sidebar and a “Settings → 123 Cloud Disk” configuration page. The current core transmission and encryption implementation targets Windows (Winsock, DPAPI, system certificate store); the README notes that porting to Linux/macOS requires replacing the connection layer and platform tool parts.
- Directory Page: skillhub.cn/plugins/cny919191/dsh-123pan
- Source Code & Docs: github.com/cny919191/dsh-123pan
- License: MIT (see repository
package.json) - Version in current materials: 1.3.5.1
Core Features¶
The following capabilities are derived from the feature table and descriptions in the repository README.
| Capability | Description |
|---|---|
| Login | Phone / Email + Password (password is only used to exchange for token, not stored on disk); also supports pasting client JWT or using apiToken config for password-less login |
| Session | Token is locally encrypted using Windows DPAPI; status automatically refreshes it |
| File Ops | List directory, paginate, search by filename, recycle bin; upload (MD5 instant upload + 16MB chunks); download (direct link + single stream write); temporary signed direct links |
| Management | Rename, move, delete (defaults to recycle bin, can permanently delete) |
| Backup | Workspace incremental backup: skips unchanged files, preserves directory structure, supports dry runs (dryRun) |
| UI | Sidebar cloud icon for browsing; drag-drop upload (or file picker); inline “Download” button; click filename for online preview of text / image / video / audio / PDF; settings page and sidebar follow host light/dark themes |
Sidebar drag-drop uploads are subject to browser limitations: the panel reads the File as base64, sends it to a temporary file via POST /api/dsh-123pan/uploadBytes, and then hands it over to the core for upload. The single file size limit is controlled by maxFileBytes (default 200MB).
Download directory priority (higher priority first): out in request → dir → config downloadDir → Current session workspace root. The panel footer allows changing the download directory, which defaults to the workspace; it updates when switching workspaces.
Installation and Activation¶
Before installation, please review the repository source code and MIT license yourself; the plugin runs with the permissions of the current DSH process and will launch local subprocesses to access the cloud drive and session files.
Method 1: Download Release (Recommended in README)¶
Download dsh-123pan-vX.Y.Z.zip from Releases and extract it to a fixed directory (e.g., D:\plugins\dsh-123pan). This zip is the plugin directory, not an installer.
- Link it to the profile’s
node_modulesusing a directory junction (example for Windows, no administrator rights needed):
cmd /c mklink /J "%USERPROFILE%\.dsh\profiles\<profile>\node_modules\dsh-123pan" "D:\plugins\dsh-123pan"
- Edit
%USERPROFILE%\.dsh\profiles\<profile>\package.json. Add entries in bothdependenciesanddsh.profile.bundles:
{
"dependencies": { "dsh-123pan": "file:D:/plugins/dsh-123pan" },
"dsh": { "profile": { "bundles": ["...", "dsh-123pan"] } }
}
- Completely exit DSH (check Task Manager to ensure
DeepSeek Harness.exehas ended) and then reopen it. Confirmdsh-123panis enabled in “Settings → Plugins”, then open “Settings → 123 Cloud Disk” to log in.
Method 2: From Source¶
First build the core in the plugin directory (README states MSYS2 ucrt64 g++ is required), then install it into the specified profile:
cd native/core
./build.sh
dsh plugin --profile <profile> add /absolute/path/to/dsh-123pan
Refer to the repository’s docs/USAGE.md for more detailed troubleshooting steps.
Configuration¶
The following items can be overridden in the profile’s cordis.patch.yml (all have default values):
- id: dsh-123pan
config:
defaultRemoteDir: dsh-backup/my-project
maxFileBytes: 209715200
maxFiles: 5000
ignoreDirs: ['.git', 'node_modules']
ignoreGlobs: ['*.log', '*.tmp']
storeDir: ''
corePath: ''
apiToken: ''
If apiToken is not empty, the API Key can be used directly as the session, eliminating the need to log in via the UI.
Typical Usage¶
Daily Use: Sidebar and Settings Page¶
- Click the cloud icon in the left sidebar: browse the current cloud directory, drag files to upload, or select files to upload.
- “Settings → 123 Cloud Disk”: Log in, view capacity, configure backup, view info.
Backing up Workspace via Agent in Session¶
README example prompt:
Back up the current workspace to
dsh-backup/pythonon 123pan, do a dry run first.
Corresponding tools include pan123_backup_workspace (supports dryRun), pan123_backup_status, pan123_scan_workspace, etc.; see the “Tools for agents” section in the README for the full list.
Local HTTP API (Scripts / Agents)¶
The plugin registers http://127.0.0.1:<port>/api/dsh-123pan/*. The README emphasizes it only accepts local loopback and POST requests, and validates Origin / Sec-Fetch-Site.
Batch upload by local path:
curl -X POST http://127.0.0.1:<port>/api/dsh-123pan/uploadBatch \
-H 'content-type: application/json' \
-d '{"files":["D:\work\a.zip","D:\work\b.txt"],"parentId":0}'
Download to a specified directory (falls to workspace root if out/dir not passed):
curl -X POST http://127.0.0.1:<port>/api/dsh-123pan/download \
-H 'content-type: application/json' \
-d '{"fileId":123,"name":"a.zip","dir":"D:\work"}'
Log in once with client JWT and reuse the session:
curl -X POST http://127.0.0.1:<port>/api/dsh-123pan/loginToken \
-H 'content-type: application/json' \
-d '{"token":"eyJhbGciOiJIUzI1NiIs..."}'
When an Agent uploads files it generated itself, the repository suggests reading AGENT.md to avoid generating redundant Python relay scripts.
Scenarios and Notes¶
Who it’s for: Individual developers already using 123pan who want to complete uploads, downloads, and incremental backups within the DSH workflow; those who need the Agent to directly call local APIs or pan123_* tools rather than hand-writing cloud drive scripts.
Limitations to know:
- The interface uses the client’s private API, not the stable open interfaces in the open platform documentation. The README suggests using it for low-frequency personal use; high frequency may trigger risk control.
- The core
123pan-core.exemay carry a Low integrity label within the workspace, preventing writes to certain system directories; when a download fails, it first lands in.dsh-123pan-staging\under the workspace, then Node moves it to the target path. - The HTTP bridge only listens locally; the token ciphertext is in
$DSH_HOME/dsh-123pan/session.dat, bound to the current Windows user DPAPI, and should not be treated as a portable plaintext credential.
The DeepSeek Harness ecosystem is “everything is a plugin”; the plugin directory on SkillHub is maintained by the community and has no official affiliation with DeepSeek / High-Flyer. Please review the source code and release packages yourself before selecting a plugin.
Conclusion¶
dsh-123pan integrates 123pan’s login, transmission, and incremental backup into a single chain within DSH: the sidebar and settings page are for humans, the HTTP routes and pan123_* tools are for Agents, and the C++ core handles protocol and encryption details. For installation or version checks, refer to the GitHub Releases and README; the plugin introduction page is at skillhub.cn/plugins/cny919191/dsh-123pan.