All plugins

wecom

WeCom (Enterprise WeChat) gateway platforms: the wecom AI Bot sends the agent's replies and attachments over a WebSocket to WeCom (openws.work.weixin.qq.com, or the server WECOM_WEBSOCKET_URL names) and downloads inbound media from WeCom URLs, and wecom_callback receives self-built app messages on a local HTTP callback endpoint (port 8645 by default, AES message crypto) and sends replies and access-token requests to qyapi.weixin.qq.com. Formerly built into Hermes core; existing users are migrated automatically. A Hermes Labs plugin: built by Nous Research, not supported, and likely not maintained going forward. Fixes from the community are welcome. The bot mode streams replies natively and supports QR-scan setup. Disclosure — the callback mode binds its local port only when its corp credentials are configured. Credentials come from Hermes for the active profile (its scoped secrets); the plugin opens no credential file itself.

NousResearch189Platformv2.0.0Updated 3 days ago

About

WeCom (Enterprise WeChat) gateway platforms: the wecom AI Bot sends the agent's replies and attachments over a WebSocket to WeCom (openws.work.weixin.qq.com, or the server WECOM_WEBSOCKET_URL names) and downloads inbound media from WeCom URLs, and wecom_callback receives self-built app messages on a local HTTP callback endpoint (port 8645 by default, AES message crypto) and sends replies and access-token requests to qyapi.weixin.qq.com. Formerly built into Hermes core; existing users are migrated automatically. A Hermes Labs plugin: built by Nous Research, not supported, and likely not maintained going forward. Fixes from the community are welcome. The bot mode streams replies natively and supports QR-scan setup. Disclosure — the callback mode binds its local port only when its corp credentials are configured. Credentials come from Hermes for the active profile (its scoped secrets); the plugin opens no credential file itself.

WeCom (Enterprise WeChat) for Hermes Agent

Labs plugin: works, but unsupported. WeCom is now a Hermes Labs plugin: built by Nous Research, not supported, and likely not maintained going forward. Fixes from the community are welcome. See what "labs" means.

Part of Hermes Labs Plugins: built by Nous Research, not supported. Formerly built into
hermes-agent core (plugins/platforms/wecom); this directory
carries its full history.

Hermes Agent plugin for
WeCom (企业微信, Enterprise WeChat). One plugin, two gateway platforms:

  1. wecom: AI Bot mode. Hermes connects out to WeCom's openws WebSocket gateway with a bot ID
    and secret, so no public endpoint is needed. Replies stream natively (WeCom's stream message
    type gives a typing animation and cumulative updates), images, files, video and AMR voice send as
    native media, and long inbound messages split by the client are merged back together.
    hermes gateway setup can fetch the bot credentials by scanning a QR code in the WeCom app.
  2. wecom_callback: self-built app mode. Hermes serves an HTTP callback endpoint
    (/wecom/callback, port 8645 by default) that WeCom POSTs encrypted XML to; it verifies and
    decrypts each message (AES, EncodingAESKey), acknowledges at once, and replies through the
    app's message/send API. Several apps can share one endpoint (platforms.wecom_callback.extra.apps).

This used to be built into Hermes core. It now ships as a standalone plugin with the same platform
names, env vars and config keys. If you already used WeCom with Hermes, you don't need to change
anything:
homes that used WeCom get the plugin installed automatically on hermes update or the
first start after updating. New users install it themselves; it is not installed by default.

Install

From the Hermes plugin catalog:

hermes plugins install wecom

Python dependencies: aiohttp, httpx, defusedxml (safe parsing of untrusted callback XML) and
cryptography, resolved under Hermes's own pins. It needs a Hermes Agent release of 0.23.2 or newer.

Configuration

Run hermes gateway setup and pick WeCom, or set the variables below in your profile's .env.

AI Bot (wecom)

VariableRequiredPurpose
WECOM_BOT_IDyesSmart Robot bot ID
WECOM_SECRETyesSmart Robot secret
WECOM_WEBSOCKET_URLnoGateway URL (default wss://openws.work.weixin.qq.com)
WECOM_HOME_CHANNEL (+ _NAME)noChat ID for cron deliver=wecom and notifications
WECOM_ALLOWED_USERSnoComma-separated user IDs allowed to talk to the bot
WECOM_ALLOW_ALL_USERSnotrue lets anyone talk to the bot
WECOM_DM_POLICY / WECOM_GROUP_POLICYnoopen, allowlist, pairing (default) or disabled

The platform enables once both WECOM_BOT_ID and WECOM_SECRET are set. Per-group sender
allowlists live in config.yaml under platforms.wecom.extra.groups.<group_id>.allow_from.

Self-built app (wecom_callback)

VariableRequiredPurpose
WECOM_CALLBACK_CORP_IDyesCorp ID
WECOM_CALLBACK_CORP_SECRETyesApp secret
WECOM_CALLBACK_AGENT_IDyesApp agent ID
WECOM_CALLBACK_TOKENyesCallback verification token
WECOM_CALLBACK_ENCODING_AES_KEYyesCallback EncodingAESKey
WECOM_CALLBACK_HOSTnoBind address (default: all interfaces, IPv4 and IPv6)
WECOM_CALLBACK_PORTnoBind port (default 8645)
WECOM_CALLBACK_ALLOWED_USERS / WECOM_CALLBACK_ALLOW_ALL_USERSnoWho may talk to the app

The platform enables once both the corp ID and corp secret are set; a profile without them never
binds the callback port. Point the app's Receive messages URL at
https://<your-host>/wecom/callback.

Development

The tests import Hermes core, so run them with a hermes-agent checkout on PYTHONPATH:

cd wecom
PYTHONPATH=/path/to/hermes-agent python -m pytest -q

License

MIT, see LICENSE.

README from the reviewed commit 4530438; 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