XMPP for Hermes Agent
An XMPP (Jabber) platform adapter for Hermes Agent.
Give Hermes its own XMPP account and talk to it from any XMPP client, such as Conversations,
Gajim, Dino or Monal, through any standard server, such as Prosody or ejabberd.
- Direct messages. Message Hermes's address like any other contact.
- Group chat rooms. Hermes joins the rooms you list and answers when it is mentioned.
- Scheduled deliveries. Cron jobs and
send_messagecan deliver to an address or room. - Encrypted transport only. The connection always uses TLS with certificate checks. There
is no option to turn that off.
Status: 0.1, early. Tested with Hermes Agent 0.23.5 and a Prosody 13 server on macOS:
direct messages, rooms, access control and replies through a running gateway. Not tested yet:
ejabberd, public servers, Linux, and scheduled deliveries from a real cron job. Text only for
now. Please report what you find.
Requirements
- Hermes Agent 0.23.5 or later
- An XMPP account for Hermes. Create a separate one; do not use your own.
Install
hermes plugins install rickysinghmba/hermes-xmpp-platform
Hermes asks before installing the one Python dependency,
slixmpp.
Set up
Run the setup wizard and choose XMPP:
hermes gateway setup
Or put the settings in your profile's .env:
XMPP_JID=hermes@example.org
XMPP_PASSWORD=your-account-password
XMPP_ALLOWED_USERS=you@example.org
Then restart the gateway:
hermes gateway restart
Send a message to Hermes's address from the allowed account.
Settings
| Setting | Default | What it does |
|---|---|---|
XMPP_JID | none | The address Hermes signs in as. Required. |
XMPP_PASSWORD | none | The account's password. Required. |
XMPP_ALLOWED_USERS | none | Comma-separated addresses that may talk to Hermes. |
XMPP_ALLOW_ALL_USERS | false | Let anyone who can message the account use Hermes. Not recommended. |
XMPP_ROOMS | none | Rooms to join, comma-separated, e.g. team@conference.example.org. |
XMPP_NICKNAME | hermes | Hermes's nickname in rooms. |
XMPP_REQUIRE_MENTION | true | In rooms, answer only messages that mention the nickname. |
XMPP_GROUP_ALLOWED_CHATS | none | Rooms where every member may talk to Hermes. |
XMPP_HOME_CHANNEL | none | Address or room for scheduled deliveries. |
XMPP_HOST | looked up from DNS | Server host, if it differs from the address's domain. |
XMPP_PORT | 5222 | Server port, used with XMPP_HOST. |
XMPP_DIRECT_TLS | false | With XMPP_HOST: TLS from the first byte (usually port 5223) in place of STARTTLS. |
XMPP_CA_FILE | system store | A CA certificate file, for a server with a private certificate authority. |
The same settings can go in config.yaml under gateway.platforms.xmpp.extra, without the
XMPP_ prefix and in lower case (jid, rooms, require_mention, ...). Env values win.
Who can talk to Hermes
- Direct messages are identified by the sender's address. XMPP servers verify that
address, soXMPP_ALLOWED_USERSis reliable. - In rooms, a nickname is chosen by the person and proves nothing. Hermes uses a
member's real address only when the room shows it: a non-anonymous room, or a room where
Hermes is a moderator. Otherwise the member is known only asroom@service/nickname, which
never matches an allowed address. For such a room, list it inXMPP_GROUP_ALLOWED_CHATSto
let every member in, and only do that for rooms whose membership you control. - Private messages sent through a room carry only a nickname, so they are ignored.
- Messages replayed from room history when Hermes joins are ignored.
What it sends and where
Read this before installing.
- Network: the plugin connects to your XMPP server, and only to it. Messages people send
to Hermes, and Hermes's replies, travel through that server and the servers of the people
it talks to. There are no other network calls and no telemetry. - Credentials: the account password is read from Hermes's settings (the profile
.env
orconfig.yaml) and sent only to your XMPP server during sign-in, over TLS. The setup
wizard saves it to the profile.envthrough Hermes. - Files: the plugin reads the CA file you name in
XMPP_CA_FILE, if any. It writes none. - Processes: it runs no shell commands and starts no processes. It keeps one connection
open inside the gateway. - Encryption: messages are encrypted between Hermes and the server (TLS). They are not
end-to-end encrypted, so server operators can read them. OMEMO is not supported. - Rooms: if a listed room does not exist, your server may create it with default settings.
Known limits
- Text only. Files, images and voice messages are not sent or received yet.
- No end-to-end encryption (OMEMO).
- One account per Hermes profile.
- On macOS, Hermes checks certificates with the system's rules. A server certificate from a
private CA must meet them: at most 825 days of validity, a server-authentication key usage,
and a matching subject alternative name.
Development
Unit tests need only Python and pytest:
cd tests
python -m pytest -q
The live tests run against a real XMPP server with three test accounts, using the Python
environment Hermes is installed in. See the top of tests/test_live.py.
Before a release, run the same check the Hermes catalog runs:
hermes plugins validate . --install-deps
This project is not affiliated with Nous Research. The author also maintains
an XMPP channel for OpenClaw.
License
MIT
README from the reviewed commit 45fe841; it updates when the author re-pins.

rickysinghmba