dsh-qq-relay: Connecting DeepSeek Harness to QQ Private Chats

Introduction

DeepSeek Harness (DSH) interactions typically take place within desktop sessions. If you want to send messages to the same Harness session via QQ on the go and receive replies, the common approach involves writing custom bridge scripts or setting up private gateways, along with manually handling images, files, and media pipelines.

dsh-qq-relay is a community-maintained plugin that acts as a client for DSH (maintained by HDHKVT; see the directory page on SkillHub). It leverages the official QQbot from the QQ Open Platform to inject private messages into your designated DSH sessions and automatically sends the model’s responses back to QQ. The README provides specific instructions for handling text, images, GIFs, stickers, files, videos, and Bilibili links.

The following sections explain its usage, covering positioning, capabilities, installation, activation, and important notes. The DSH ecosystem adheres to the “everything is a plugin” philosophy; directories like SkillHub are community sites and are not officially affiliated with DeepSeek or High-Flyer.

What is this?

In short: It is a Node host plugin that connects to the QQ Open Platform gateway independently, acting as a bidirectional relay for messages and media between a “locked” DSH session and QQ private chats.

  • Repository: HDHKVT/dsh-qq-relay
  • Runtime Requirements: engines.node in package.json must be >=20
  • Code License: MIT (see the repository assets/ and CC BY-NC-SA 4.0 notes for character assets)

Core Features

Text and Receipts

When a QQ message enters DSH, the plugin can send a “received” receipt back to QQ to prevent the message from appearing undelivered due to long processing times. The settings page allows you to toggle receipts, restrict them to specific scenarios (like images or files), and customize the receipt text.

Images and GIFs

  • GIFs: Captures multiple frames at intervals to create a montage. The frame count can be adjusted under “QQ Relay → Images → GIF Frame Count,” helping DSH understand multi-frame content.
  • Burst Images: Uses the “Burst Merge” time window to combine multiple images sent consecutively on QQ into a single DSH session message.
  • Image Library: incoming serves as a temporary library (configurable for auto-cleanup); stickers is the sticker library (not auto-deleted).

Sticker Collection and Sending

Collect images into the sticker library using custom “codes” (secret codes). Supported methods include: saying the code in a reply to an image, sending the image and code in the same message, or sending an image followed by a separate code message within 120 seconds. Automatic naming is available after collection; active sending frequency can be adjusted in the settings.

Files

Supports bidirectional file transfer (QQ → DSH and DSH → QQ). The maximum size for a single file is configurable in the settings.

Videos and Bilibili

  • When sending videos or Bilibili links via QQ, the plugin can utilize a video understanding pipeline (requires optional Python 3.12 + venv + Whisper).
  • Modes: fast (default base model + VAD, ~12x real-time according to README) and accurate (large-v3-turbo, ~2.4x real-time); supports frame extraction, subtitle pagination, and result caching.
  • Without Python/venv configured, analyze_video will throw an error, but text, images, files, and Bilibili downloads remain functional (see the “Functional Degradation Table” in the README).

Architecture Overview

QQ Open Platform  ⇄  dsh-qq-relay (Node Host Plugin)
                    ├─ lib/qq-direct.js   token / gateway / heartbeat / reconnect
                    ├─ lib/delivery.js    owner gate → dedup → inject into session
                    ├─ lib/qq-reply.js    correlate answers by turn, slice and send back
                    ├─ lib/vision.js · gif.js · files.js · stickers.js
                    └─ video/video_processor.py   ASR + frame extraction + montage (optional)

The lib/client.js on the browser side provides the “QQ Relay” settings page. The plugin also retains the transport: "mailbox" protocol (frozen, for legacy config compatibility) but defaults to the direct connection.

Installation and Activation

Installation

Install via natural language in DSH. The method provided in the README is:

Install this plugin: https://github.com/HDHKVT/dsh-qq-relay

It is recommended to review the repository source code and license before installing. The plugin runs with the permissions of the current DSH process and will read/write local configuration and media directories.

First-time Use

  1. Register an official QQ Bot on the QQ Open Platform and obtain the AppId and AppSecret from the console.
  2. Open the DSH settings page → “QQ Relay” → fill in the AppId and AppSecret and save.
  3. Click the “Lock” button in the target session (as illustrated in the README). Messages cannot enter if the session is not locked, and a no-session prompt will appear.
  4. Send a message to the bot in a private QQ chat. Follow the README to let the bot obtain your Owner OpenID and fill it back into the settings page.

If appId / appSecret / ownerId are not configured, the gateway will not connect, the settings page will report an error, and QQ will not respond.

Video Understanding (Optional)

For video ASR, prepare a Python 3.12 virtual environment in the data directory and install dependencies (the README example uses Windows PowerShell):

py -3.12 -m venv video\.venv
video\.venv\Scripts\python -m pip install -r video\requirements.txt

The default Whisper base model is approximately 145MB and will be downloaded automatically to <data_directory>\hf-cache upon the first analysis. You can manually place large-v3-turbo and specify the “Video → Model Directory” in the settings. For domestic networks, the README notes that HF_ENDPOINT=https://hf-mirror.com is used by default.

Typical Usage

  1. Lock a frequently used DSH session, send text or images in a private QQ chat as you would to an assistant, and wait for the DSH processing to complete. You will receive a plain text reply in QQ (QQ side limits are plain text, under 900 characters, no Markdown; see the “Conventions and Pitfalls” section in the README).
  2. To make DSH remember a specific meme: Collect it into stickers using the code rules. Later, the plugin can proactively send it to QQ based on frequency or model tools.
  3. Forwarding Bilibili links or local videos: Uses analyze_video if the video environment is configured; Python installation is not required if you only need downloads or text-based conversation.

Use Cases and Notes

Target Audience: Developers already using DSH for local Harness development who want to interact with the same session via mobile QQ private chat; developers needing image/file/sticker/video pipelines without setting up a private QQ gateway.

Privacy: The README states that data resides in the local plugin data directory; logs only record CDN hostnames; biliCookie is stored only in the local relay.json, and the interface does not expose plaintext to the browser.

Known Limitations (Excerpted from README):

  • Only supports private chat; group chat (GROUP_AT_MESSAGE_CREATE) is not implemented.
  • Video ASR may “hallucinate” subtitles in purely musical scenarios; Bilibili support currently focuses on 720P single files and pure audio; 1080P is restricted by login and DASH limitations.
  • No GPU; ASR runs on CPU int8.
  • The legacy “Engine Mailbox” link is retained but frozen.

Conclusion

dsh-qq-relay bridges QQ official bots with the DSH session locking mechanism, covering text receipts, rich media, and optional video understanding. It is suitable as a personal QQ access point. For further details on functionality and secondary development, please refer to the repository README. Installation and classification information can also be found on the SkillHub Plugin Page.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye