All plugins

Official

qqbot

QQ Bot messaging platform on Tencent's official QQ Bot API v2, where messages and media travel between Tencent's QQ Bot servers (bots.qq.com, api.sgroup.qq.com and the bot WebSocket) and your Hermes gateway using your own QQ Bot App ID and App Secret: DMs, group and guild chats over QQ's bot WebSocket, native media, voice transcription, scan-to-configure setup and cron home-channel delivery. Installed by default on Hermes 0.24.0 and newer; it stays idle until you set a QQ App ID and secret. Formerly built into Hermes core; existing users are migrated automatically. Disclosure — the plugin downloads attachment URLs from received messages, uploads voice audio to your configured speech-to-text provider (Zhipu GLM-ASR by default) when QQ has no transcript, contacts q.qq.com only during scan-to-configure setup, and its requests carry a User-Agent with the adapter, Python, OS and Hermes versions.

NousResearch849Platformv2.0.0Updated 3 days ago

About

QQ Bot messaging platform on Tencent's official QQ Bot API v2, where messages and media travel between Tencent's QQ Bot servers (bots.qq.com, api.sgroup.qq.com and the bot WebSocket) and your Hermes gateway using your own QQ Bot App ID and App Secret: DMs, group and guild chats over QQ's bot WebSocket, native media, voice transcription, scan-to-configure setup and cron home-channel delivery. Installed by default on Hermes 0.24.0 and newer; it stays idle until you set a QQ App ID and secret. Formerly built into Hermes core; existing users are migrated automatically. Disclosure — the plugin downloads attachment URLs from received messages, uploads voice audio to your configured speech-to-text provider (Zhipu GLM-ASR by default) when QQ has no transcript, contacts q.qq.com only during scan-to-configure setup, and its requests carry a User-Agent with the adapter, Python, OS and Hermes versions.

QQ Bot for Hermes Agent

Part of the Hermes Official Plugins, Nous Research's official plugins for Hermes Agent. Formerly built into Hermes Agent core (plugins/platforms/qqbot); this directory carries its full history.

Connect Hermes to QQ through the official QQ Bot API (v2): private (C2C) chats, group @-mentions and guild
channels over QQ's bot WebSocket gateway, replies (text, markdown and native media) over the REST API, voice
transcription, scan-to-configure setup and cron delivery to a home channel.

Everything an existing setup relies on is unchanged: platform name qqbot, every QQ_* / QQBOT_* env var
(including the legacy QQ_HOME_CHANNEL), the platforms.qqbot config keys and QQBOT_HOME_CHANNEL. Hermes
installs this plugin automatically for profiles that used the built-in QQ Bot platform.

This plugin is installed and enabled by default on every Hermes home (catalog default: true). It does
nothing until you configure it: with no QQ_APP_ID / QQ_CLIENT_SECRET the gateway never starts the adapter.

Install

hermes plugins install qqbot

Installs on Hermes 0.23.4 and later (stable and canary). While a Hermes core still ships its own QQ Bot
support, that support keeps serving and the plugin stays inactive: it registers nothing and logs one debug line
(the plugin stays inactive until core drops it). The first Hermes without the built-in QQ Bot loads the
plugin's adapter instead, with the same settings.

Dependencies (aiohttp, httpx, qrcode) are declared in pyproject.toml. SILK voice notes need pilk
(the optional silk extra); without it a SILK note is transcribed only when QQ's own ASR has text for it.

Setup

1. Create a QQ Bot application

Register at q.qq.com: create an application, note its App ID and App Secret, and
enable the intents you need (C2C messages, group @-messages, guild messages). A bot in sandbox mode only
receives messages from QQ's sandbox test channel; publish it for production.

2. Run the setup wizard

hermes gateway setup

Select QQ Bot. You can scan a QR code with QQ on your phone to create and bind a bot automatically
(recommended), or enter an existing App ID and App Secret. The wizard then asks how DMs are authorized (pairing
approval, open, or an allowlist) and for a home channel.

3. Or configure by hand

In ~/.hermes/.env (or your profile's .env):

QQ_APP_ID=your-app-id
QQ_CLIENT_SECRET=your-app-secret
VariableDescriptionDefault
QQ_APP_IDQQ Bot App ID (required)—
QQ_CLIENT_SECRETQQ Bot App Secret (required)—
QQBOT_HOME_CHANNELOpenID for cron/notification delivery (legacy name QQ_HOME_CHANNEL still works)—
QQBOT_HOME_CHANNEL_NAMEDisplay name for the home channelHome
QQBOT_HOME_CHANNEL_THREAD_IDThread id when the home target is a thread—
QQ_ALLOWED_USERSComma-separated user OpenIDs for DM access—
QQ_GROUP_ALLOWED_USERSComma-separated group OpenIDs for group access—
QQ_ALLOW_ALL_USERStrue to allow all users (required for an open policy)false
QQ_PORTAL_HOSTQQ portal host used by scan-to-configure (sandbox.q.qq.com for sandbox)q.qq.com
QQ_STT_API_KEYAPI key for the fallback voice transcription provider—
QQ_STT_BASE_URLBase URL of that providerZhipu GLM-ASR
QQ_STT_MODELSTT model nameglm-asr

Fine-grained settings live in config.yaml:

platforms:
  qqbot:
    enabled: true
    extra:
      app_id: "your-app-id"
      client_secret: "your-secret"
      markdown_support: true       # QQ markdown (msg_type 2); config only
      dm_policy: "pairing"         # pairing | open | allowlist | disabled
      allow_from: ["user_openid_1"]
      group_policy: "allowlist"    # open | allowlist | disabled
      group_allow_from: ["group_openid_1"]
      stt:
        provider: "zai"            # zai / glm (GLM-ASR) or openai (Whisper)
        baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4"
        apiKey: "your-stt-key"
        model: "glm-asr"
        timeout: 60                # seconds per transcription request

An open DM or group policy without QQ_ALLOW_ALL_USERS=true (or GATEWAY_ALLOW_ALL_USERS=true) makes the
gateway refuse to start. With an allowlist set, strangers get no pairing codes.

4. Start the gateway

hermes gateway

Voice messages

  1. QQ's built-in ASR is tried first (asr_refer_text on the voice attachment, free).
  2. If that has no text, the adapter converts the audio to WAV (pilk for SILK, else ffmpeg) and calls the
    configured OpenAI-compatible STT endpoint (/audio/transcriptions).

Troubleshooting

  • Bot disconnects immediately: wrong App ID / Secret, missing intents, or a sandbox-only bot.
  • Voice not transcribed: check for asr_refer_text, then QQ_STT_API_KEY / extra.stt, then the gateway log.
  • Messages not delivered: intents enabled at q.qq.com, QQ_ALLOWED_USERS / group policy, the bot
    @-mentioned in groups, QQBOT_HOME_CHANNEL for cron.
  • Connection errors: reachability of api.sgroup.qq.com and the WebSocket gateway; proxy env vars
    (WSS_PROXY / HTTPS_PROXY / ALL_PROXY) are honoured.

Disclosure

  • The adapter talks to Tencent's QQ Bot endpoints: the access-token API (https://bots.qq.com/app/getAppAccessToken,
    App ID + App Secret), the REST API (https://api.sgroup.qq.com: messages, media uploads, /gateway), and the
    bot WebSocket URL that /gateway returns. Large local files upload in parts to the pre-signed Tencent COS URLs
    the upload-prepare call hands back.
  • Scan-to-configure setup (only when you choose it) posts to the QQ portal (https://q.qq.com, or
    QQ_PORTAL_HOST) to create and poll a bind task; the bot's secret comes back encrypted with a key generated
    on your machine. The QR code points to https://q.qq.com/qqbot/openclaw/connect.html.
  • Voice transcription, when QQ's own ASR has no text and an STT key is configured, uploads the voice audio to
    the STT provider: https://open.bigmodel.cn/api/coding/paas/v4 (Zhipu GLM-ASR, default) or
    https://api.openai.com/v1 for provider openai, or the baseUrl / QQ_STT_BASE_URL you set.
  • It downloads attachment URLs from received messages (images, voice, files) so the agent can see them. Those
    requests go to whatever host the URL names; private, loopback and link-local targets are refused. Media the
    agent sends by URL is fetched by QQ's servers, not by Hermes.
  • Requests carry a User-Agent of QQBotAdapter/<adapter version> (Python/<version>; <os name>; Hermes/<hermes-agent version>); no per-install identifier.
  • Received media is cached in the profile's Hermes media cache; setup writes credentials, the access policy and
    the home channel to the profile's .env.
  • No telemetry of its own.

Tests

cd qqbot
HERMES_AGENT_REPO=../../hermes-agent PYTHONPATH=../../hermes-agent python -m pytest -q

On a core that still bundles QQ Bot the plugin is inert, and the tests that need the plugin's own registry
entry are skipped.

License

MIT

README from the reviewed commit 3845252; it updates when the author re-pins.

More by NousResearch

38 plugins by NousResearch in the catalog.

NousResearchaccent-pickerOKLCH accent colour picker for the Hermes Desktop status bar: drag it and the whole theme retints live, with palette commands to reset to the theme default or copy the current colour. A theme-authoring tool; the colour is scratch state and is never persisted. Desktop-only (desktop/plugin.js inside the plugin SDK surface); no agent tools, hooks, middleware or env vars.OfficialDesktop app849NousResearchadvanced-delegationTwo extra delegation modes for delegate_task, next to the built-in default. Model routes (delegation.backend: model_map): the agent picks a named model route per subagent from a list you define (e.g. fast, deep, local). Profile routes (delegation.backend: profile_routes): the agent runs a subagent as one of your Hermes profiles, with that profile's own model, credentials, skills and SOUL.md. Only route names and their one-line descriptions reach the model. Adds hermes delegation config (pick the mode and edit its routes; --show prints the setup) and the /delegation slash command (save a mode for the next session, or --now to apply it to the current chat). Needs Hermes 0.22.5 or newer, the first release with pluggable delegation providers; Hermes 0.22.0 to 0.22.4 refuses to install it, and on a core older than 0.22.0 it installs, logs one warning and does nothing. A model route can set daybreak: true to run its model with OpenAI's Daybreak trusted-access program; it is sent only from your own CLI, TUI or Desktop chats, on openai-codex, for models your Codex catalog lists, and a route that breaks a rule is refused. Disclosure — no Python dependencies and no network or model calls of its own, except that a Daybreak route checks the Codex catalog through core's cached lookup with your existing Codex login; subagents run through core's delegate_task on the routes you configured. Writes only delegation.backend and delegation.backends.* (model_map / profile_routes) in the active profile's config.yaml, through core's config writer. A model route's optional api_key is stored in config.yaml in plain text (provider: keeps keys in .env / auth.json). Listing a profile under profile routes lets this profile's subagents use that profile's credentials, SOUL.md and terminal policy.Officialtools849NousResearchagent-importershermes import-agent: import an OpenClaw (~/.openclaw, or legacy ~/.clawdbot / ~/.moltbot), Claude Code (~/.claude), Codex CLI (~/.codex), Cursor (~/.cursor), Grok Bot (a self-export the Bot writes from a prompt the importer prints) or OpenBot desktop (its openbot.db) setup into Hermes in one command; always previews first and asks before applying. Claude Code / Codex / Cursor: instructions, Cursor rules and memories become memory entries, Bash permission rules become command allow/deny lists, MCP servers land in config.yaml, skills are copied, and --sync re-imports sources that changed. OpenClaw (core's former hermes claw migrate; the plugin keeps that spelling, hermes claw cleanup and the openclaw-migration skill): persona, memories, skills, model and messaging settings, MCP servers and agent behaviour. Formerly built into Hermes core; hermes setup offers to install it when it finds one of these agents, and profiles with a registered sync source are migrated automatically. Disclosure — no Python dependencies, no network calls and no model calls. Claude Code / Codex / Cursor: reads those agents' local config trees (never their credential files; secret-looking MCP env vars and headers are stripped and listed) and writes only into the active profile (memories/MEMORY.md with a backup, config.yaml, skills/ and import-sync.json). OpenClaw: reads the OpenClaw dir (openclaw.json, its .env, workspace files such as SOUL.md / MEMORY.md / USER.md, skills); API keys and bot tokens come over only with --migrate-secrets (allowlisted names, shown in the preview). It writes into the active profile (config.yaml, .env, SOUL.md, memories/, skills/openclaw-imports/, a migration/openclaw/<time>/ report with item backups, and a backups/pre-migration-*.zip restore point), plus a workspace dir only when --workspace-target names one. It runs local pgrep / systemctl / tasklist checks to warn when OpenClaw or a Hermes gateway is still running, and hermes claw cleanup renames the OpenClaw dir to *.pre-migration after a confirmation. Grok Bot / OpenBot: instructions become SOUL.md, memories and user facts become memory entries, skills land in skills/<source>-imports/, scheduled routines become paused cron jobs (--activate-routines to start them) and event routines a notes file; credential-looking export keys refuse the file, and secret MCP env vars and headers are stripped and listed. OpenBot's database is opened read-only (or read from a scratch copy that is deleted after the read).Officialtools849NousResearchblenderOfficial Blender Lab MCP server over stdio, pinned to upstream v1.0.3, with a Blender workflow skill. Needs Git and uv; Blender 5.1+ is not needed at install. The skill opens Blender itself when a task needs it and, after you agree, installs Blender and Blender Lab's MCP add-on. First startup downloads Python dependencies; prepare the uv environment before connecting. Disclosure — tools execute arbitrary Python in Blender with your privileges; the skill starts Blender with online access for that session only (your saved preference is unchanged), and the add-on's local server on port 9876 has no password, so any program on this computer can use it while Blender is open; only after you agree does the skill download Blender from download.blender.org (about 400 MB, about 1.5 GB unpacked), check it against blender.org's sha256 list and install it in your own folder without administrator rights (Linux ~/.local/opt, macOS ~/Applications, Windows %LOCALAPPDATA%\Programs\Blender Foundation; never over an existing Blender), and download the v1.0.3 add-on, check its hash and install or enable it; first start downloads the pinned Blender Lab MCP server and its Python dependencies with uv. Server discovery does not prove scene readiness.Officialtools849

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section