Hermes Agent
Hermes Agent SimpleX Chat setup and missing attachments
Updated 29 November 2026
You can message a self-hosted Hermes Agent from SimpleX Chat. A SimpleX client runs on the agent’s machine and handles the encrypted chat connection. The Hermes gateway talks to that client over a local WebSocket. Start by getting a text reply in a direct chat. If text works but Hermes misses a photo or PDF, the timing of the file transfer can explain the difference.
Sources read on 28 November 2026 include the Hermes Agent 0.23.5 SimpleX setup guide and its gateway adapter, the SimpleX Chat 7.1.4 CLI guide and bot API guide, and the ReadyHermes channel list.
Install the SimpleX client and connect your chat
Start on the machine where you installed Hermes Agent. The installer below downloads the latest release. It selects the Intel Mac binary on macOS or the Ubuntu 22.04 x86-64 binary on Linux. On Apple silicon or ARM Linux, use the matching ARM64 binary from the 7.1.4 release.
curl -o- https://raw.githubusercontent.com/simplex-chat/simplex-chat/stable/install.sh | bashIf the installer adds its directory to your PATH, open a new terminal before running simplex-chat.
For a manual Linux or macOS installation, download the release binary for your operating system and processor. The download labelled for Linux and macOS in the Hermes guide is for Ubuntu x86-64. Run chmod +x <binary>, replacing the placeholder with the downloaded filename. If ~/.local/bin is on your PATH, run mv <binary> ~/.local/bin/simplex-chat with the same filename. Otherwise, place it in a directory on your PATH under the name simplex-chat. On macOS, follow the CLI guide’s Gatekeeper instructions if prompted.
- If you already use the CLI under this operating-system account, start
simplex-chatwith-dand a new database path prefix to give the agent a separate profile. On a fresh installation, runsimplex-chat. Choose a display name for the new agent profile. - In that client, enter
/cto create a one-use invitation. Open it in your own SimpleX app, or enter/c <invitation>in your own SimpleX CLI with the invitation you received. For a reusable address, enter/addressin the agent’s client. Open that address in your own app, or enter/c <user_contact_address>in your own CLI. If automatic acceptance is off, return to the agent’s interactive client and enter/ac <name>with the requester’s name. Hermes 0.23.5 does not handle the contact-request event SimpleX 7.1.4 sends. - If you plan to allow access by contact ID, enter
/contactsin the agent’s client to find the contact’s local name. Enter/info @<name>with that name and copy the number beside “contact ID”. - Once connected, exit the interactive client and start the same profile in WebSocket mode as described below.
Start the daemon and point Hermes at it
Start the agent’s profile in WebSocket mode and leave it running. The command below uses the default database. If you used -d, include it again with the same database path prefix.
simplex-chat -p 5225The SimpleX chat protocol encrypts messages end to end. The daemon’s WebSocket API binds to localhost and has neither authentication nor encryption of its own. Keep that connection local.
In a second terminal run hermes gateway setup and select SimpleX Chat. Enter ws://127.0.0.1:5225 at the URL prompt, even on the first run. The wizard displays that address as a default but only saves a value when you enter one. For manual setup, put this line in ~/.hermes/.env to enable the adapter.
SIMPLEX_WS_URL=ws://127.0.0.1:5225If Hermes reports that the Python websockets package is missing, run hermes pm repair. If it cannot reach the daemon, check that the first terminal is still running the client and that its port matches SIMPLEX_WS_URL.
Authorise a contact and check the first reply
Accepting a contact lets you exchange SimpleX messages. Hermes checks separately who may use the agent. Choose how to grant access.
- Allowlist. Enter the numeric contact ID you copied from SimpleX in the wizard or in
SIMPLEX_ALLOWED_USERSbefore starting the gateway. For example,SIMPLEX_ALLOWED_USERS=4,9admits two contacts. Substitute your own IDs. Display names can change and Hermes ignores them in this list. - DM pairing. With the default pairing policy and both allow-all settings off, an unlisted contact can get a code by messaging the running agent directly if
GATEWAY_ALLOWED_USERSis empty. SettingSIMPLEX_ALLOWED_USERSalone still lets other contacts request pairing. To approve a contact, runhermes pairing approve simplex <CODE>on the Hermes machine within one hour, using the code from their direct chat.
Access is denied by default. Setting SIMPLEX_ALLOW_ALL_USERS to true gives every contact access. For individual approvals, leave it unset and check that GATEWAY_ALLOW_ALL_USERS is off.
After saving your settings, start a stopped gateway with hermes gateway run. If you edited the environment file while the gateway was running, restart it to load the changes. For an installed service, use hermes gateway restart. For a gateway running in your terminal, stop it and run hermes gateway run again.
After authorisation, ask a short question in your direct chat and check that the answer appears there. If you get no reply, check the numeric ID or pairing approval. Several texts sent close together can arrive at Hermes as one message. HERMES_SIMPLEX_TEXT_BATCH_DELAY sets the quiet period in seconds and defaults to 0.8.
On a Linux host with systemd user services, hermes gateway install installs the gateway as a user service and hermes gateway start starts it. To keep it running after logout, enable lingering for that user account as shown in the gateway service instructions. Keep the SimpleX daemon running after logout as well. The gateway service starts only Hermes.
Choose which groups Hermes can hear
Incoming group messages are disabled by default. Invite the agent’s SimpleX profile to your group. If the invitation is pending, accept it in the agent’s interactive client with /join <group>, then restart that profile in WebSocket mode. With the gateway running, enter hermes send --list --json in another terminal. Under platforms, look in simplex for your group’s name. In its id, copy just the number after group:. Set SIMPLEX_GROUP_ALLOWED to the numbers for the groups you want to hear from, replacing the examples below. Restart the gateway after editing the group list in the environment file.
SIMPLEX_GROUP_ALLOWED=12,34SIMPLEX_GROUP_ALLOWED=* enables every group the agent has joined. The directory refreshes every five minutes. The Hermes guide describes the listed groups as allowed, but the directory code lists every group the daemon returns with an ID. The adapter checks the allowlist when a group message arrives.
For an individual group message, Hermes checks the sender’s memberId from the SimpleX group member record. This differs from both the numeric “member ID” shown by the CLI and the contact ID used for direct chats. To find the right ID, send /_members #<groupId> through the daemon’s local WebSocket API, replacing the placeholder with the group number you copied above. In the response, look under resp.group.members and find the person by localDisplayName. Copy their memberId into SIMPLEX_ALLOWED_USERS and restart the gateway. Groups receive no pairing prompts. Hermes 0.23.5 can combine texts from different members before checking access, so enable only groups where you trust everyone.
Send a test message to the destination for scheduled jobs
Put the destination in SIMPLEX_HOME_CHANNEL in the environment file. Use the numeric contact ID for a direct chat, or a group ID with its group: prefix. SIMPLEX_HOME_CHANNEL_NAME gives the destination a readable label. For a direct chat, replace the placeholder below with the actual ID.
SIMPLEX_HOME_CHANNEL=<contact-id>Send a short text to the home channel and check for it in the intended SimpleX conversation.
hermes send --to simplex "hello"This standalone command sends text while the daemon is running, even with the gateway stopped. For a Hermes cron job, use deliver="simplex" to deliver to the home channel. To address a group explicitly, use a destination such as simplex:group:12, replacing 12 with your group ID.
Why text arrives but a photo or PDF can go missing
The Hermes SimpleX guide says the adapter waits for images, voice notes and files to finish downloading. In 0.23.5 the result depends on whether the first incoming chat item already has a local file path.
- The path is already present. A path can appear before the download finishes. Hermes passes it on without checking whether the file is complete or the agent can read it. It recognises JPG, JPEG, PNG, GIF and WebP files as photos, and MP3, WAV, OGG, M4A, AAC and Opus as voice. Other files, including PDFs, are passed on as documents. An incoming item labelled as video with no text is skipped before this file check.
- The first chat item has no file path. The adapter can request a transfer for an authorised sender in a direct chat or permitted group. With a recognised audio extension and a file ID, it saves the item and forwards it when completion supplies a path. For an image or PDF it passes on the item without the attachment. When the download finishes, the adapter ignores the completion because it never saved that file ID.
This explains how Hermes can receive a caption and miss its file, and why a successful voice-note test does not establish that a PDF will arrive. See the transfer and completion checks and the incoming message handler.
In an agent reply, a MEDIA:/path/to/file tag can send a separate attachment. The gateway normally sends recognised images as pictures, recognised audio as voice notes, and videos and documents as files. SimpleX chat permissions can block the transfer, so check the receiving chat to confirm the attachment arrived. When its image tools can make a thumbnail, the adapter includes it with the picture. The standalone SimpleX sender sends only text.
SimpleX Chat on ReadyHermes
ReadyHermes does not offer SimpleX Chat in its Channels panel. The setup above is for a self-hosted agent. ReadyHermes offers Telegram, WhatsApp, Discord, WeChat, Lark and the Hermes Desktop connection. You can also use the chat on the ReadyHermes website.
Questions
How do you connect Hermes Agent to SimpleX Chat?
On the Hermes machine, start the agent’s profile with simplex-chat -p 5225. If you used -d to create the profile, add -d with the same database path prefix. Run hermes gateway setup, select SimpleX Chat and enter ws://127.0.0.1:5225. With the gateway running, use an allowed contact or approve a DM pairing code, then send a question and check for the reply in that chat.
Why does a SimpleX contact need a pairing code after connecting?
Accepting a contact in SimpleX establishes the chat. To grant access to Hermes, add the contact’s numeric ID to SIMPLEX_ALLOWED_USERS or approve their pairing code. With the default pairing policy, both allow-all settings off and GATEWAY_ALLOWED_USERS empty, contacts outside the SimpleX list can still request a code. They need your approval to use the agent.
Why does a group appear in the directory if Hermes ignores it?
The directory lists groups the daemon knows about. Incoming group messages are off by default. Put the group number in SIMPLEX_GROUP_ALLOWED. To allow a sender, find them by localDisplayName in the WebSocket API’s group member list, add their memberId to SIMPLEX_ALLOWED_USERS and restart the gateway. Groups receive no pairing prompts. Hermes 0.23.5 can combine texts from different members before checking access, so enable only groups where you trust everyone.
Can Hermes Agent receive photos and PDFs from SimpleX?
Hermes can pass a photo or PDF to the agent when the first incoming item supplies a path to a file the agent can read. In Hermes Agent 0.23.5, only recognised audio files with a file ID are queued while awaiting a path. A photo or PDF whose path arrives on completion can be missing from the agent’s message.
Is SimpleX Chat available on ReadyHermes?
SimpleX Chat is unavailable in the ReadyHermes Channels panel. Its options are Telegram, WhatsApp, Discord, WeChat, Lark and the Hermes Desktop connection. ReadyHermes also offers website chat.