DSH Music: Full-page playback of NetEase Cloud Music in the Harness main region

Preface

When using agents or having daily conversations in DeepSeek Harness, you often need to look up information while listening to music, or ask the assistant to search for songs by name and fetch lyrics. Switching the system browser to the NetEase Cloud Music web page and toggling back and forth with the DSH window easily breaks the context. DSH Music turns the player into a desktop plugin: it occupies the main area, data flows through the host’s local route, and audio is played via a same-origin proxy, eliminating the need to install a standalone player client on the machine.

What is this

DSH Music (npm package name dsh-plugin-music, repository caimc21069065-prog/dsh-my-music) is published by the maintainer caimc21069065-prog and is categorized as a Client plugin on SkillHub. The description is: A full-page NetEase Cloud Music player for DeepSeek Harness.

On the host side (Node / cordis), it uses netease-cloud-music-api-alger as the data layer and provides a local webserver for data APIs, audio stream proxying, and download-to-disk functionality. The client is built with React, mounted on the full page of the DSH main area, and the interface is a 1:1 replica of AlgerMusicPlayer 5.1 (MIT) with the original branding removed, running as a native DSH plugin. The current version is 1.0.3, License MIT; requires Node >=20 and DSH >=0.2.0-rc.0.

Core Functions

Browse & Discovery

The client covers: Discovery, Playlist Square, Rankings, New Albums, Search, Playlist Details, Albums, Artists, Recent Plays, My Music, Settings, and a persistent playback bar at the bottom.

The Discovery page includes daily recommendation cards, recommended playlists, popular artists, new albums, and new song express; after login, the right side shows Personal FM, while logged-out users see a wall of popular playlist covers. The Playlist Square allows browsing by category with scroll-to-load support; Rankings and New Albums can switch by region.

Player

Supports playback queues, as well as list loop, single loop, and shuffle play; volume floating slider, playback speed, favorites, downloads, play history, immersive lyrics page, right-click menus, and keyboard shortcuts (e.g., spacebar for play/pause, arrow keys for seek and volume adjustment). Favorites and play history are persisted locally; after login, favorites can sync to “My Liked Music” on NetEase Cloud Music.

Account & Quality

Settings → Account → Scan QR code to login; the login state is written to ~/.dsh/music-cookie.json and applies to APIs and audio proxying without needing a restart. Logged-out users can play standard quality/previews; VIP tracks require a logged-in membership account.

Download

Downloads can be triggered from the playback bar, song rows, and right-click menus. The host resolves the direct link via /music/api/download and saves the file via Node. The default directory is ~/Music/DSH, which can be changed to an absolute path via configuration; VIP tracks may only be preview snippets when not logged in or without membership, and filenames and prompts will be marked (Preview).

Agent Tools

Four tools can be called directly within chat: music_search, music_song_url, music_lyric, music_playlist_tracks, facilitating searching songs, getting links, fetching lyrics, and listing playlist tracks within conversations.

Installation & Activation

The current README indicates that the package is not yet published to npm, so manual installation is recommended.

  1. Edit ~/.dsh/profiles/desktop/package.json, add the dependency, and register the plugin in dsh.profile.bundles:
"dependencies": {
  "dsh-plugin-music": "file:C:/path/to/dsh-my-music"
},
"dsh": {
  "profile": {
    "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-plugin-music"]
  }
}

Change the file: path to the directory where you cloned or extracted the plugin on your local machine (the example uses a Windows path; use absolute paths for Linux/macOS similarly).

  1. Run pnpm install in that profile directory and fully restart DeepSeek Harness; a “Music” icon will appear in the left icon bar.

Once published, the command provided by the official documentation is:

dsh plugin --profile desktop add dsh-plugin-music

Configuration

You can add configuration for the plugin music in ~/.dsh/profiles/desktop/cordis.patch.yml (snippet from README):

- id: music
  config:
    cookie: 'MUSIC_U=xxxxxxxx'   # Optional fallback; ignored after UI login/logout
    requestTimeoutMs: 15000
    defaultLevel: standard       # Default audio quality for proxy
    downloadDir: 'C:/Users/you/Music/DSH'  # Client download directory, must be absolute path; defaults to ~/Music/DSH if empty

cookie is only an optional fallback; the UI login state takes precedence after QR code login or logout.

Typical Usage

Listening in the UI

After restarting, click “Music” on the left, select songs in Discovery or Search, and control playback via the bottom playback bar; enter the immersive playback page for full-screen lyrics. To sync “My Liked” or play full VIP versions, scan the QR code to login to NetEase Cloud Music in Settings first.

Calling Tools in Conversation

When the assistant has the corresponding tool permissions, it can call music_search to search songs, music_song_url to get playback links, music_lyric to get lyrics, and music_playlist_tracks to list tracks in a playlist; specific parameters depend on the plugin source code and DSH tool registration.

Refreshing after Local UI Modifications

The README explains: The client bundle carries long-term cache. After modifying lib/client.js, you should fully exit DSH (Tray → Exit) before opening it again; you can check the version number (e.g., v1.0.3) by hovering over the progress bar in the playback bar or via Settings → About to confirm if the new package is loaded.

Architecture Highlights

DSH Desktop
├─ Host Plugin lib/index.js
│   ├─ /music/api/*        Data APIs
│   ├─ /music/stream/:id   Audio Stream Proxy (Range Passthrough)
│   └─ 4 Agent Tools
└─ Client lib/client.js(React)
    └─ Communicates with Host via Same-Origin; Audio via Local Proxy

The <audio> element points directly to /music/stream/:id to avoid mixed content issues; the data layer retries twice for network-related errors to alleviate occasional blank sections.

Use Cases & Notes

Suitable for users who wish to listen to music, manage playlists, and link conversations within the same DSH desktop window; also suitable for scenarios where song search, lyrics, and playlist queries need to be exposed to the agent.

The plugin runs with the current DSH process permissions and will access NetEase Cloud Music-related APIs and the local download directory; please read the GitHub Repository source code and the MIT license yourself before installation. The README disclaimer states: The UI structure is replicated from AlgerMusicPlayer; the data relies on a community-maintained third-party API library, intended for personal study and research only. Music copyrights belong to NetEase Cloud Music and the copyright holders. Please comply with local laws, do not use for commercial purposes, and note that it does not include audio source unlocking components.

The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; the SkillHub Directory Page is a community site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

DSH Music embeds a full-page NetEase Cloud Music-style playback experience into the Harness main area, uses the host proxy to handle playback and downloads, and provides four music-related tools for the agent. To view screenshots, development commands, and the complete API table, please refer to the repository README.

  • Directory Page: https://www.skillhub.cn/plugins/caimc21069065-prog/dsh-my-music
  • GitHub: https://github.com/caimc21069065-prog/dsh-my-music
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye