Preface¶
In DSH, enabling models to “listen to, download, and modify playlists” often involves writing shell scripts or letting the agent assemble curl commands itself. NetEase Cloud Music interfaces require weapi encryption, direct links expire, and fields are inconsistent across different APIs—making it easy for models to stumble on paths, encryption, and retries.
Below is an introduction to the community plugin dsh-netease-music (Maintainer: XiaoMao-yty, Category: Network Tools). It integrates a zero-npm-dependency Node CLI nm.js and a supporting skill into DSH / Cordis: the Host registers the netease native tool, so the model does not need to remember CLI paths or use bash. Single tracks, MVs, lyrics, Cloud Village notes, playlist operations, and AI personal radio curation all utilize the same capability surface.
What is this¶
dsh-netease-music is a NetEase Cloud Music tool plugin designed for agent developers working within the DeepSeek Harness (Cordis) environment.
| Provided Asset | Description |
|---|---|
netease Tool |
Exposes CLI subcommands as DSH native tools |
skill netease-cloud-music |
Usage, sound quality tier decisions, known API pitfalls, curation workflows |
nm.js |
Stable path at $DSH_HOME/netease/bin/nm.js, also callable directly via bash |
The plugin version in package.json is 1.0.0, licensed under MIT. Community Directory: SkillHub - dsh-netease-music; Source Code: GitHub - XiaoMao-yty/dsh-netease-music.
Core Features¶
Capabilities are defined by the README and skill documentation, primarily including:
Media Fetching & Export
- Single Tracks: 128k / 192k / 320k MP3, Lossless FLAC, Hi-Res, Super HD Master; automatic tag and cover writing
- MVs: 240p / 480p / 720p / 1080p
- Lyrics: Export
.lrc, options for original / translation / romanization / merged bilingual, including[ti:]/[ar:]/[al:]tags - Cloud Village Notes (Mlog): Video, body text, images
Account & Library Operations
- Playlists: View, create, add songs, remove songs, rename, delete
- Search, Albums, Artist Homepages, User Homepages, Comments, Listening History Rankings, Top Charts, Favorites, Music Cloud Drive, Similar Songs, Daily Recommendations
- Original Images: Album covers, artist avatars and photos, MV covers, homepage backgrounds
AI Personal Radio
Read taste profile → Mix Daily Recommendations / Personal Radar / Similar Songs → Select tracks and write recommendations → Create private playlist; dj check autonomously detects if recommendations have refreshed (NetEase does not expose refresh times, relying on content fingerprinting for verification).
For complete subcommands and decision rules, refer to skills/netease-cloud-music/SKILL.md in the repository.
Installation & Activation¶
The installation command must use the original source text; do not construct dsh plugin add github:... forms yourself.
dsh plugin --profile web add https://github.com/XiaoMao-yty/dsh-netease-music/archive/refs/heads/main.tar.gz
After installation, you must restart dsh web. Only after a restart will the Host mount the plugin, register the netease tool, and sync the netease-cloud-music skill.
Uninstallation:
dsh plugin --profile web remove dsh-netease-music
Login & Session¶
First-time use requires QR code login:
node $DSH_HOME/netease/bin/nm.js login --qr # Generates code and copies QR to workspace
node $DSH_HOME/netease/bin/nm.js login --wait # Wait for scan (do not rerun the previous command, it changes the code)
If used with dsh-better-sidebar’s /sidebar/file media route, the QR code can be rendered inline in the chat window for scanning. The session is written to $DSH_HOME/netease/session.json (permission 600). This file is equivalent to account credentials—do not commit it to repositories or package it with the skill directory for sharing.
Configuration¶
Append to the profile’s cordis.patch.yml (common path ~/.dsh/profiles/web/cordis.patch.yml):
- id: dsh-netease-music
config:
cliPath: '' # Override CLI path; leave empty to use scripts/nm.js within the package
timeoutMs: 600000 # Timeout for single command, default 10 minutes (sufficient for MV downloads)
workspace: '' # Default working directory; leave empty to use session workspace
Runtime Dependencies¶
- Node ≥ 18 (Built-in modules + global
fetchonly, no npm dependencies) - python3 + segno: Used only for rendering login QR codes,
pip3 install segno - ffmpeg / ffprobe: Writing tags/covers, reading real resolution; skipped if missing without causing failure
It is recommended to place the download directory within the session workspace to facilitate inline display of album covers and login QR codes in the chat via dsh-better-sidebar (this route only serves files within the workspace).
Typical Usage Approach¶
With the installation and restart completed above, the netease tool can be called directly in conversations. The skill guides the model in selecting sound quality, handling lyrics languages, or following the AI radio curation process, eliminating the need for the model to maintain nm.js paths itself.
For manual debugging, the CLI can be called directly (e.g., the two-step login process above); specific download, playlist, and search subcommands should follow nm.js --help and SKILL.md.
Use Cases & Notes¶
Who is it for
- Agent developers working under the DSH web profile who need to fetch downloadable music resources from NetEase or manage playlists
- Those who wish to encapsulate “interface encryption, direct link expiration, field discrepancies” within the plugin and skill, rather than having the model write
curlevery time
Please be aware before use
- The plugin runs with the current dsh process permissions; please review the source repository and MIT license yourself before installation.
- Before modifying code or building custom call chains, the API pitfalls listed in the README (weapi encryption, deprecated search paths, direct links expiring in ~20 minutes, write operation rate limits, etc.) should be read in SKILL.md first.
- The DSH community plugin directory (such as SkillHub) is an independent ecosystem site with no official affiliation to DeepSeek / Huanfang; this article introduces a community-maintained network tool plugin.
Conclusion¶
dsh-netease-music consolidates NetEase fetching, playlist management, and AI personal radio curation into the DSH native netease tool and the netease-cloud-music skill, with zero npm dependencies, making it suitable for reproducible music workflows within the Harness.
- Directory Page: https://www.skillhub.cn/plugins/XiaoMao-yty/dsh-netease-music
- GitHub: https://github.com/XiaoMao-yty/dsh-netease-music