All plugins

xmpp-platform

XMPP (Jabber) platform adapter for Hermes Agent: direct messages and multi-user chat rooms (XEP-0045) through any standard XMPP server such as Prosody or ejabberd, with mention gating in rooms, allowlists by verified address, and cron delivery. TLS with certificate checks is always on. Text only. Disclosure — connects only to the XMPP server of the configured account (XMPP_JID / XMPP_PASSWORD, read through Hermes's profile-scoped settings and sent only to that server during sign-in); messages and replies travel through that server and are not end-to-end encrypted; keeps one connection open inside the gateway; reads the CA file named in XMPP_CA_FILE if set; writes no files, runs no shell commands, starts no processes, no telemetry. In rooms a nickname is never treated as an identity: a member's real address is used only when the room reveals it. One Python dependency: slixmpp (>=1.10,<2).

rickysinghmbaPlatformv0.1.0Updated 1 day ago

About

XMPP (Jabber) platform adapter for Hermes Agent: direct messages and multi-user chat rooms (XEP-0045) through any standard XMPP server such as Prosody or ejabberd, with mention gating in rooms, allowlists by verified address, and cron delivery. TLS with certificate checks is always on. Text only. Disclosure — connects only to the XMPP server of the configured account (XMPP_JID / XMPP_PASSWORD, read through Hermes's profile-scoped settings and sent only to that server during sign-in); messages and replies travel through that server and are not end-to-end encrypted; keeps one connection open inside the gateway; reads the CA file named in XMPP_CA_FILE if set; writes no files, runs no shell commands, starts no processes, no telemetry. In rooms a nickname is never treated as an identity: a member's real address is used only when the room reveals it. One Python dependency: slixmpp (>=1.10,<2).

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_message can 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.

CI License: MIT

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

SettingDefaultWhat it does
XMPP_JIDnoneThe address Hermes signs in as. Required.
XMPP_PASSWORDnoneThe account's password. Required.
XMPP_ALLOWED_USERSnoneComma-separated addresses that may talk to Hermes.
XMPP_ALLOW_ALL_USERSfalseLet anyone who can message the account use Hermes. Not recommended.
XMPP_ROOMSnoneRooms to join, comma-separated, e.g. team@conference.example.org.
XMPP_NICKNAMEhermesHermes's nickname in rooms.
XMPP_REQUIRE_MENTIONtrueIn rooms, answer only messages that mention the nickname.
XMPP_GROUP_ALLOWED_CHATSnoneRooms where every member may talk to Hermes.
XMPP_HOME_CHANNELnoneAddress or room for scheduled deliveries.
XMPP_HOSTlooked up from DNSServer host, if it differs from the address's domain.
XMPP_PORT5222Server port, used with XMPP_HOST.
XMPP_DIRECT_TLSfalseWith XMPP_HOST: TLS from the first byte (usually port 5223) in place of STARTTLS.
XMPP_CA_FILEsystem storeA 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, so XMPP_ALLOWED_USERS is 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 as room@service/nickname, which
    never matches an allowed address. For such a room, list it in XMPP_GROUP_ALLOWED_CHATS to
    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
    or config.yaml) and sent only to your XMPP server during sign-in, over TLS. The setup
    wizard saves it to the profile .env through 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.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section