Hermes Atlas
Messaging bridges & gateways

Hermes WeChat Adapter

RongleCat/hermes-wechat

Hermes Agent WeChat adapter that connects personal WeChat accounts through the iLink Bot API

In short

Hermes WeChat Adapter is a Hermes Agent skill and gateway adapter that connects a personal WeChat account through the iLink Bot API. It lets Hermes send and receive text, images and files, and receive voice and video, in WeChat.

What Hermes WeChat Adapter does

Hermes supports Telegram, Discord and Slack natively but not WeChat, and this project fills that gap. A 1,488-line Python adapter, weixin.py, long-polls the iLink Bot API getUpdates endpoint with a 35-second timeout, parses text, images, voice, files and quoted messages, hands them to the Hermes gateway as message events, and sends replies back with sendMessage. Media travels through an encrypted CDN using AES-128-ECB, which the adapter decrypts. Login is by a QR code shown in the terminal, and context tokens are saved to disk so sessions recover after a restart.

Access control offers open, allowlist and pairing DM policies, long messages are split into 4,000-character segments, and duplicate messages are filtered. The README lists limits: Markdown is stripped to plain text, voice cannot be sent, stickers and Moments are unsupported, only one account works at a time, and group chat routing is incomplete. It says the project was written, documented and committed by Hermes Agent itself.

Key features

  • Personal WeChat access through the iLink Bot API
  • Text, image and file sending and receiving, plus voice and video receiving
  • Terminal QR code login with automatic refresh
  • open, allowlist and pairing DM policies
  • Message de-duplication and automatic recovery after failures
  • Long messages split into 4,000-character segments

When to use it

  • Chatting with a Hermes Agent from a personal WeChat account
  • Sending files or images to the agent from a phone
  • Reading how a Hermes platform adapter handles polling and media

Who it is for: Chinese-speaking Hermes Agent users who want WeChat as a chat channel.

How it fits with Hermes Agent

Built for Hermes Agent as a gateway platform adapter, installed through a SKILL.md workflow that patches Hermes core files.

How to install Hermes WeChat Adapter

These commands are copied from the project's README. Check the repository for the latest steps before you run them.

git clone git@github.com:RongleCat/hermes-wechat.git /tmp/hermes-wechat
cd /tmp/hermes-wechat
cd ~/.hermes/hermes-agent
uv add aiohttp cryptography qrcode pillow

Requirements: Hermes Agent installed and running, Python 3.10+, the uv package manager, a personal WeChat account for QR login

Note: Group chat routing is incomplete, so every group message triggers a reply, and setup patches Hermes core files.

FAQ

What is Hermes WeChat Adapter?

Hermes WeChat Adapter is a gateway adapter and skill that connects Hermes Agent to a personal WeChat account. It uses the iLink Bot API to receive and send messages.

What do I need to run Hermes WeChat Adapter?

You need a running Hermes Agent install, Python 3.10 or later, the uv package manager and a personal WeChat account to scan the login QR code.

Does Hermes WeChat Adapter support WeChat group chats?

Only partly. Group messages are received, but the adapter cannot tell @mentions from other messages, so every group message triggers a reply.

Similar messaging for Hermes Agent

All messaging

Related guides: How to run Hermes Agent securely · Run multiple Hermes agents with profiles