TomoyoNatsume/dsh-qq-bridge4

dsh-qq-bridge

A pluggable DSH host plugin that connects QQ (NapCat/OneBot) and forwards messages to DSH agents / local capabilities.

AI Analysis

核心用于将 QQ 消息接入 DSH。适合希望通过 QQ 聊天群或私聊直接与 DSH 智能体交互的用户,需配合 NapCat 运行。

Package
dsh-qq-bridge
Version
0.1.0
License
MIT
Last updated
Aug 17, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

5. 配置 DSH web profile

把插件写入 DSH 的 web profile。默认配置文件是:

~/.dsh/profiles/web/cordis.patch.yml

如果这个文件目前只有 [],可以替换成下面内容;如果已经有别的配置,就把 insert 这一段合并进去(注意替换其中的qq号和log路径):

- insert:
    - id: dsh-qq-bridge
      name: /path/to/dsh-qq-bridge/dist/index.js
      config:
        napcat:
          wsUrl: ws://127.0.0.1:3001
          token: !!js process.env.DSH_QQ_TOKEN
        access:
          adminQq: 
          allowlist: []
          commandPrefix: /dsh
          mode: whitelist
        agent:
          provider: deepseek-official
          model: deepseek-v4-pro
          preset: standard
          streamReasoning: false
          maxMessageLength: 4500
        shell:
          enabled: false
        selfLogInput:
          enabled: true
          logPath: /home//Napcat/log/napcat_.log
          pollIntervalMs: 1000
          replayOnStart: false

需要改的地方:

  • name:改成你 clone 后的真实插件入口路径,例如 /home/me/dsh-qq-bridge/dist/index.js
  • adminQq:填你的 QQ 号。
  • logPath:填你的 NapCat 日志路径。
  • model:按你的 DSH 模型配置调整。

如果你不用“我的电脑/自己给自己发消息”,而是主号发给机器人小号,可以删除 selfLogInput 这一段,并把 adminQq 填主号 QQ。