dsh-gonic: Integrating Gonic/Subsonic Music Playback into DSH

Introduction

Providing agents in DeepSeek Harness (DSH) with the ability to interact with a user’s local music library is a common requirement. Existing solutions either only offer an API or rely on additional desktop/mobile clients, making it impossible to play music directly in the Web GUI. This article introduces a client plugin that connects a Gonic or Subsonic API 1.15.0-compatible music server to DSH Web, provides a player interface in the browser, and supplies agents with tools for searching, browsing, creating playlists, and initiating playback.

What It Is

dsh-gonic is a DeepSeek Harness client plugin maintained by omdsh-dev. It mounts a Gonic (or Subsonic API 1.15.0-compatible) music service into the DSH Web GUI, providing:

  • Browser-based player: browse artists, albums, genres, recently added, and random playlists; search and favorite songs; manage the playback queue (loop/shuffle), volume, and resume from last position; mini playback bar.
  • Host-side agent tools: gonic_status, gonic_search, gonic_browse, gonic_starred, gonic_playlists, gonic_playlist, gonic_create_playlist, gonic_play.
  • Settings panel: configure server URL, username, and password under “Settings → Gonic Player”, with connection testing supported.
  • Security isolation: credentials are stored on the Host side at ~/.dsh/dsh-gonic.json (permissions 0600); the browser holds them only in memory; playback commands are routed through the local loopback interface (/api/dsh-gonic/*), preventing cross-site or LAN-based credential reads or command injection.

Installation

Published releases ship with pre-built lib/ artifacts and can be installed without any build step:

# Install from the latest release
dsh plugin --profile web add "https://github.com/omdsh-dev/dsh-gonic/releases/latest/download/pkg.tgz"

For local development, you can use the link method:

npm install --legacy-peer-deps && npm run build   # First time: src/*.ts → lib/
dsh plugin --profile web add link:/path/to/dsh-gonic

After installation, restart dsh web for changes to take effect.

Configuration

  1. Open the “Gonic Player” section on the DSH Web settings page (or navigate directly to the player page), fill in the server address, username, and password, then click “Save and Test”. You can also simply ask the agent to configure it for you: “Help me configure Gonic, server http://192.168.1.10:4747, username …, password …”.
  2. Once configured, you can interact using natural language, for example: “Search for X in my library”, “Create a playlist called Y with these songs”, “Play my playlist Z”.

Note: The password is the full Subsonic credential for the library. Agent tools can read the library and create playlists, but cannot modify, delete, or star existing content.

Compatibility

  • Server: any server supporting Subsonic API 1.15.0 (using salt+token authentication with f=json). Example: Gonic.
  • Host: Node ^22.19.0 || >=24.0.0, DSH >=0.2.1-rc.2 <0.3.0.

Use Cases and Notes

  • Suitable for scenarios where you need an agent to access a local music library, create playlists, and play music in the browser.
  • The plugin runs with the permissions of the current dsh process. It is recommended to review the source code and license (MIT) before installing.
  • Playback requires the browser GUI to be open with a prior user interaction (autoplay policy); pause/next track/volume are still controlled via the player UI.

Summary

dsh-gonic integrates a Gonic/Subsonic music library into DSH Web, offering both a full-featured browser player and secure library access and playback initiation capabilities for agents. For more information or to access the source code, visit:

  • Catalog page: https://www.skillhub.cn/plugins/omdsh-dev/dsh-gonic
  • GitHub: https://github.com/omdsh-dev/dsh-gonic
羽毛球分组比赛记分
小程序二维码

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

Xiaoye