Introduction¶
When building agents in DeepSeek Harness (DSH), a common requirement is connecting conversations to instant messaging: a simple @ mention in a group or a private message should leverage the same set of Harness capabilities. Building a custom bridge often requires spinning up a separate service and managing protocols and message delivery paths yourself, which is inconsistent with DSH’s “everything is a plugin” and in-process mounting approach.
Below is an introduction to the community plugin dsh-onebot-qq (Maintainer: YUsaltyfish, Category: Client). It receives and sends QQ messages via the OneBot v11 protocol of NapCat, mounting into the current process as a native DSH plugin. It is cross-platform for Linux and Windows; once NapCat and the plugin are installed, simply fill in the connection details in the console to start chatting.
What is this¶
dsh-onebot-qq is a QQ bot plugin for DSH: featuring a microkernel plus pluggable sub-plugins, it is purely in-process with no standalone processes or systemd dependencies. The package declares itself via dsh.bundle.patch and mounts into Cordis with a single line.
Runtime dependencies include Node.js >= 22 and DSH >= 0.2.1-rc.2 and < 0.3.0 (see engines.dsh in package.json). On the QQ side, NapCat (QQNT + OneBot v11) is required, with Forward WebSocket and HTTP API enabled; you log in with a QQ account in NapCat (documentation suggests using a dedicated bot account), and this account acts as the proxy for sending and receiving messages.
The current npm package version is 0.1.1, licensed under MIT. The GitHub repository is at YUsaltyfish/dsh-onebot-qq; the community directory page is at skillhub.cn plugin page.
Core Features¶
The README summarizes the capabilities into the following categories (the following is derived from the repository description; specific boundaries for each feature in group or private chat contexts have not been individually verified).
DSH Integration
- Native Plugin: Declared via the included
cordis.patch.yml, mounting in-process. - Unified Outbound: Text uses
deliver(), media usessendMedia(); automatically handles[AT:], six types of data sanitization, and plugin decoration before sending and archiving.
Microkernel and Sub-plugins
- 13 Sub-plugins Included: Gate wake-up, commands, files, persona sentence pools, group join welcome, image generation, link parsing, emoji packs, simple group memory, and 4 optional items (anti-spam, private chat friend gating, watch video, watch video link); directory auto-discovery ensures a single sub-plugin failure does not affect the rest.
- QQ Console: 16 tabs, hot-configuration updates (atomic writes, backups, rollbacks); sub-plugins and pages generally correspond 1:1.
QQ Side and Persona
- Media & Generation: Receive/send images; text-to-image / image-to-image (
openai-images/openai-chat); automatic collection of group avatars and emoji packs, group join welcome, group memory injection, and optional link parsing. - Out-of-the-box Persona: Built-in “Blue Big Fat Fish” and
_template.md, automatically delivered on first startup; wake-up words and persona words can be added or removed in the console.
Cross-Platform
- Platform Abstraction: Paths, temporary directories, CQ file references, atomic writes, persona symlink fallbacks, etc., are centralized in
platform/, targeting Linux / Windows (thepackage.jsondescription also mentions macOS).
Optional Companion: If you wish for QQ sessions to also gate global tools (ops_*, agent-team, MCP resources, etc.), you can install the standalone plugin dsh-onebot-qq-opsgate after this plugin. Chatting works normally without it, but the documentation notes that the QQ-side tool surface is larger and token consumption may increase slightly. Video watching capabilities require running a separate local parsing sidecar (ffmpeg frame extraction); without it, videos/links are treated as normal messages.
Installation and Activation¶
Prerequisites¶
| Component | Requirement |
|---|---|
| Node.js | >= 22 |
| DSH | >= 0.2.1-rc.2 < 0.3.0 |
| NapCat | QQNT + OneBot v11; Forward WebSocket and HTTP API enabled |
| QQ Account | For logging into NapCat |
Install Plugin (Choose one of three)¶
The commands provided by the official README are as follows (note the --profile web):
# GitHub (Recommended)
dsh plugin --profile web add github:YUsaltyfish/dsh-onebot-qq
# Local tgz (npm pack output)
dsh plugin --profile web add /abs/path/dsh-onebot-qq-0.1.1.tgz
# Local directory (changes take effect immediately)
dsh plugin --profile web add link:/abs/path/dsh-onebot-qq
You can also install by entering the GitHub repository address in the DSH desktop client under “Settings → Plugins”.
Optional ops gate (must be installed after this plugin):
dsh plugin --profile web add github:YUsaltyfish/dsh-onebot-qq-opsgate
Connect to NapCat and Verify¶
- Log into QQ in NapCat, enable WebSocket (default
ws://127.0.0.1:3001) and HTTP (defaulthttp://127.0.0.1:3000), and note the token (can be empty). - Open DSH Settings → “QQ Console” → “NapCat Connection”, fill in the address and token, and click “Test NapCat Connection”.
- Fill in the owner’s QQ number (required) at the top of the “Group Chat” page; it will auto-connect after saving.
- @ the bot or private message it in QQ; a reply indicates the link is working.
If adminQq is missing on first startup, it enters “Pending Configuration Mode”: the console and tools are available, but it does not connect to NapCat; it auto-connects after the owner’s QQ is filled in.
For more detailed installation, upgrade, uninstallation, and key binding instructions, refer to docs/使用说明书.md, docs/安装与卸载.md, docs/配置参考.md, etc., in the repository.
Typical Usage¶
Console and Persona
The console is integrated into the DSH built-in settings page with multi-tab hot-configuration. For persona, you can refer to the included personas/_模板.md and let the model assist in writing; the documentation suggests writing more example dialogues.
Documentation Entries (In Repository)
| Document | Content |
|---|---|
docs/使用说明书.md |
Installation → Connection → Features → Persona |
docs/安装前准备.md |
Pre-installation preparation and acceptance |
docs/排错.md |
Troubleshooting NapCat connection, missing tools, image sending failures, etc. |
docs/Windows安装.md |
Getting started on Windows from scratch |
Scenarios and Notes¶
Who is it for
- Users already using DSH who want to connect QQ group/private chats to the Harness via NapCat + OneBot v11 without maintaining a separate outbound service.
- Those who need to receive messages, send images, generate images, use emojis, welcome new members, simple group memory, etc., and want to hot-update configurations via a console.
Security and Permissions
The plugin runs with the permissions of the current DSH process and can access the resources and tools accessible to that process. Please review the source code and license yourself before installing, and evaluate whether to install dsh-onebot-qq-opsgate to narrow down the global tool surface callable by QQ sessions.
Privacy
The README states: The package does not contain real QQ numbers, group numbers, tokens, API Keys, or server paths; runtime data (configuration, persona, emoji library, group memory, logs) resides in the user’s local data directory and does not enter the repository or npm package.
Disclaimer
The repository README notes that the documentation and plugin content are generated by AI for reference only; please use your own judgment before using. The community directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-onebot-qq encapsulates OneBot QQ capabilities into the DSH plugin form: connect NapCat, configure the owner’s QQ in the console, and you can converse with the Harness in QQ; the microkernel and sub-plugins handle wake-up, media, persona, and group scenario capabilities. For installation or version details, see the GitHub Repository and SkillHub Directory Page.