Hermes Agent
Connect Hermes Agent to iMessage with Photon or BlueBubbles
Updated 30 November 2026
You can text Hermes Agent from Apple Messages in two ways. BlueBubbles uses the iMessage account signed into Messages on a Mac or in a macOS virtual machine with working iMessage. Photon runs the relay for you. On Free and Pro, Photon assigns each contact a number from a shared pool. Photon Business offers dedicated lines. Both routes connect through the Hermes gateway, which receives messages and sends replies.
This guide uses the Hermes Agent 0.23.5 source and documentation, including the tagged BlueBubbles guide and Photon guide, the BlueBubbles Server 1.9.12 release notes, and Photon’s Photon 2.0 announcement, pricing and capacity documentation. The sources and ReadyHermes’ channel information were checked on 30 November 2026.
Which iMessage connection should you use?
Choose BlueBubbles if you want Hermes to reply from the iMessage account you already use in Messages. BlueBubbles Server is free and open source. It passes incoming messages to Hermes through a webhook and sends replies through its API. Hermes can run on the same Mac or on a separate machine if each can reach the other over the network.
Choose Photon if you want a managed number and prefer to run Hermes without keeping a Mac online. You need a Photon account and an iMessage-capable phone number to register. Hermes runs a small Node.js process alongside the gateway to keep its connection to Photon’s Spectrum service open. That connection works without an inbound webhook, public callback URL or tunnel.
Install Hermes Agent on the machine that will run the gateway before configuring either route.
Install BlueBubbles and give Hermes the server credentials
- On the Mac, sign into Messages with your Apple ID. Download the installer for your Mac from the 1.9.12 release. Open the disk image and drag the app into Applications. Open BlueBubbles Server and grant Full Disk Access as shown in the server setup guide. At Notifications & Firebase, click Next if you’re setting up BlueBubbles only for Hermes. Hermes receives messages through the webhook, so you can skip Firebase. In Connection Setup, choose LAN URL if Hermes runs on the same Mac or can reach it over your private network. Set a strong Server Password and click Save password. Finish setup and keep the Mac awake with BlueBubbles Server running.
- The Hermes wizard points to Settings → API. In BlueBubbles Server 1.9.12, copy the Server URL from Home and make sure the Hermes machine can reach it. Use the password you saved during setup. You can view it under Settings → Connection Settings.
- Run
hermes gateway setupon the Hermes machine and select BlueBubbles (iMessage). Enter the URL and password. To use an allowlist, enter the phone numbers or email addresses you trust. To approve people through direct-message pairing, leave the allowlist prompt blank and follow the pairing steps below. Leave the home channel blank for the first reply test. If you previously set it, removeBLUEBUBBLES_HOME_CHANNELfrom~/.hermes/.envand anyplatforms.bluebubbles.home_channelsetting from~/.hermes/config.yamlbefore starting the gateway. The wizard also offers an optional webhook port.
For manual setup, add the server URL and password to ~/.hermes/.env as shown below. The third line is for allowlist access. Replace the sample values with your own and separate multiple senders with commas.
BLUEBUBBLES_SERVER_URL=http://192.168.1.10:1234
BLUEBUBBLES_PASSWORD=your-server-password
BLUEBUBBLES_ALLOWED_USERS=user@icloud.com,+15551234567Hermes lists BlueBubbles Server 1.0.0 or later for webhook support. For Server 1.9.12 itself, follow the release notes for macOS 10.15 or later on Intel and macOS 11 or later on Apple Silicon. The server overview still lists Sierra and later.
Check the BlueBubbles callback and test a reply
BLUEBUBBLES_SERVER_URL is where Hermes sends API requests. The callback points back to Hermes. Its default address is http://localhost:8645/bluebubbles-webhook, with the listener bound to 127.0.0.1. Use this address when both apps share localhost. Treat a virtual machine with its own network as a separate machine. BlueBubbles Server 1.9.12 blocks new local callbacks registered through its API by default. Before starting or restarting the gateway, open API & Webhooks and enable Allow API webhooks to reach local network addresses for a localhost or private-network callback. This switch applies to all webhooks registered through the BlueBubbles REST API. Enable it only if you trust the integrations that have your BlueBubbles server password.
If the apps can’t share localhost, set BLUEBUBBLES_WEBHOOK_HOST to a private IPv4 address on the Hermes machine that BlueBubbles can reach. When a standalone Hermes gateway listens on 0.0.0.0, it registers localhost as the callback host. To change the port or path, use BLUEBUBBLES_WEBHOOK_PORT or BLUEBUBBLES_WEBHOOK_PATH in the same environment file. Keep the plain HTTP callback and any HTTP server URL on a trusted private network. Leave the callback port closed to the public internet.
If you used the wizard, choose Done after configuring the platform and follow the service prompts. If you configured BlueBubbles manually and use a gateway service, run hermes gateway start if it’s stopped or hermes gateway restart if it’s running. If you run Hermes without a gateway service, stop any running foreground gateway, then run hermes gateway run to load the settings. Hermes attempts to register the callback automatically through /api/v1/webhook for new-message and updated-message events. It adds the server password as a query parameter, checks that password on incoming requests and masks it in the registration log.
- Run
hermes logs gatewayand look for “webhook registered with server” or “webhook already registered”. Hermes can connect to BlueBubbles even if webhook registration fails. If Hermes cannot reach the server, check that the Mac and server are running and confirm the URL and password. - Send a direct iMessage from an account other than the one signed into Messages on the Mac. If you use an allowlist, send from a number or email on it. If you use pairing, approve the sender’s code and ask them to send a second message. Check the gateway log for the incoming message and Messages for a reply. If there’s no incoming event, check that the Mac can reach the callback address and port. If the event arrives without a reply, check that Messages on the Mac can send an iMessage. If macOS asks whether BlueBubbles can control Messages, allow it. In the BlueBubbles log, look for “Not authorized to send Apple events to Messages. (-1743)”.
- If the adapter never starts, run
hermes config get platforms.bluebubbles.enabled. With the key unset, the stored credentials can enable the adapter. An explicitfalsetakes precedence, even after rerunning setup. Change it totruein~/.hermes/config.yaml. If you’re switching from another iMessage bridge, disable the old bridge to avoid both bridges handling the same messages. Then restart the gateway.
Set up Photon and text the assigned line to opt in
- Create an account in the Photon dashboard and have an iMessage-capable phone number ready. Hermes 0.23.5 uses its managed Node.js by default. Install it with
hermes pm install node. To run the Photon sidecar with an existing Node.js installation, setPHOTON_NODE_BINto the full path of its executable in~/.hermes/.env. - Run
hermes gateway setupand choose iMessage via Photon. That is the menu label in 0.23.5. The guide calls it “Photon iMessage”. The direct command runs the same setup. Replace the example with your own number in international (E.164) format, including the country code.hermes photon setup --phone +15551234567 - If asked, approve the device-code login in your browser. Use the URL and code printed in the terminal if the browser does not open. Setup reuses a valid saved login and project or finds or creates the default project named Hermes Agent. The 0.23.5 CLI treats Spectrum as already enabled for the project and keeps an existing secret if it passes validation. The guide describes enabling Spectrum and rotating the secret as separate steps.
- In the wizard, enter your iMessage number when prompted. Hermes registers it with Spectrum or reuses its registration. If setup asks you to opt in, send an iMessage from the registered phone number to the assigned line. Any message will do. Interactive setup waits up to five minutes when a line is assigned and opt-in is pending. A non-interactive run skips the wait.
- Let setup install the dependencies for the Node.js process. The tagged CLI tries
npm cibefore falling back tonpm install, which is the only install step the guide describes. Setup then attempts to enable Photon underplatforms.photonin~/.hermes/config.yaml.
Setup saves PHOTON_PROJECT_ID and PHOTON_PROJECT_SECRET in ~/.hermes/.env. It also uses your registered number for PHOTON_ALLOWED_USERS and PHOTON_HOME_CHANNEL when those settings are unset. The login and project records are in ~/.hermes/auth.json.
Verify Photon routing before testing the gateway
Run hermes photon status to check the registered and assigned numbers, dependency installation and opt-in. The command checks opt-in against Photon’s API. Saved settings can exist before a line is assigned or the first text is received. If opt-in is pending and status shows an assigned line, text that line from the registered number and check status again.
If you used the wizard, choose Done and follow the service prompts. If you manage the service yourself, run hermes gateway start if it’s stopped or hermes gateway restart if it’s running with the old settings. If you run Hermes without a gateway service, stop any running foreground gateway, then run hermes gateway run. Once opt-in is verified and the gateway is running, send a test iMessage from the registered number to the assigned line and check for a reply.
- Phone registration missing. If status shows “my number” is missing, run
hermes photon setup --phone +15551234567, replacing the example number with your own iMessage number in international format. - Your number is registered but no line is assigned. Check the Photon dashboard or rerun
hermes photon setup. Follow the opt-in steps above when the line appears. - Dependencies missing. Run
hermes photon install-sidecar. If setup stopped at a dependency error, rerunhermes photon setupafter the install succeeds to finish enabling the channel. If you setPHOTON_NODE_BIN, check the version of the executable it points to. The locked dependencies require Node 20.18.1 or later in the Node 20 series, or Node 22 or later. - Opt-in verified, still no reply. Check
hermes logs gatewayfor the Photon connection and make surePHOTON_ALLOWED_USERSincludes the registered number if you already had an allowlist.
Choose who can text Hermes and when it replies in groups
BlueBubbles access. With BLUEBUBBLES_ALLOWED_USERS set, Hermes normally ignores unknown senders. For default direct-message pairing, leave BLUEBUBBLES_ALLOWED_USERS and GATEWAY_ALLOWED_USERS unset. Keep BLUEBUBBLES_ALLOW_ALL_USERS and GATEWAY_ALLOW_ALL_USERS off. A blank wizard answer keeps the saved BlueBubbles allowlist. Remove any saved entries for those two allowlists from ~/.hermes/.env and restart the gateway after making changes. An unknown sender may get a pairing code from the Apple account signed into Messages after sending a direct iMessage. When a sender you trust receives a code, approve it with hermes pairing approve bluebubbles <CODE>, replacing <CODE> with their code. Use hermes pairing list to see pairing entries.
Photon access. Add each additional contact as a Spectrum user in the Photon project Hermes setup configured. Enter their iMessage phone number in international format, including the country code. Have them text their assigned line from that number to opt in. To authorise them in Hermes, add their international numbers to PHOTON_ALLOWED_USERS, separated by commas. On Free and Pro, a new recipient must text their assigned line before Hermes can send them a message, including a scheduled one. The guide says the allowlist makes unknown senders silent, but the tagged gateway can offer a pairing code to an unauthorised direct message that reaches it, depending on the gateway’s policy. The sender still needs approval to use the agent. To approve a trusted sender’s code, use hermes pairing approve photon <CODE>.
Group mentions. Both adapters leave mention gating off by default. To require a wake word in groups, set BLUEBUBBLES_REQUIRE_MENTION or PHOTON_REQUIRE_MENTION to true in ~/.hermes/.env. The defaults match names such as “Hermes” and “@Hermes agent”. To change them, use BLUEBUBBLES_MENTION_PATTERNS or PHOTON_MENTION_PATTERNS for regular expressions in a JSON array or separated by commas or newlines. Direct messages still follow their normal authorisation rules.
For Photon, require_mention and mention_patterns in the Photon YAML settings take priority over their environment variables. The wake-word check covers ordinary group messages. Photon handles Tapbacks on Hermes’ own messages and selected poll votes separately.
The BlueBubbles guide shows a YAML-only require_mention example. Use the environment setting with the credentials above, because the tagged code overwrites the YAML value with the environment value or its default of false when both credentials are set in the environment. Restart the gateway after editing the settings. Photon includes its group messaging API on Business and Enterprise. Test in a BlueBubbles group or a Photon group on a dedicated line. From an authorised account, send two ordinary group texts, one that matches the wake-word pattern and one that doesn’t. Check that Hermes replies only to the matching text.
What Photon says its iMessage plans include
- Free. $0, up to 10 users, with managed shared lines and direct messaging API access.
- Pro. $25 per month, up to 100 users, with managed shared lines and direct messaging API access.
- Business. $250 per line per month, with dedicated lines and group messaging API access. Photon requires Auto Scale for unlimited Business users.
- Enterprise. Custom pricing, dedicated numbers and access to the group messaging API.
If your Photon project has multiple dedicated lines, Hermes 0.23.5 can fail to send to an existing group after a gateway restart until a new message arrives in that group.
For usage limits, follow Photon’s own pages. The pricing table qualifies unlimited daily messaging with Auto Scale. Its capacity documentation separately lists 5,000 outbound messages per server per day and 50 new conversations per line per day, with replies in existing conversations excluded from the latter count. The Hermes guide calls these free quotas, while Photon describes limits on servers and lines and gives no standalone daily ceiling for a Free project without Auto Scale.
Attachments, receipts and BlueBubbles in the background
BlueBubbles. For basic text and two-way media, keep the macOS user running BlueBubbles signed in and in the foreground. If you leave that user signed in and switch to another, the Hermes guide calls for the Private API helper for reliable sending. The helper is also required for typing indicators, read receipts, and starting a conversation by phone number or email when Hermes can’t find an existing chat. The BlueBubbles installation guide says the helper requires turning off System Integrity Protection (SIP). That reduces macOS protections and prevents installing or running iOS apps on Apple Silicon Macs. BlueBubbles recommends taking a snapshot before changing SIP in a virtual machine. Hermes 0.23.5 ignores incoming Tapbacks.
The guide describes read receipts as YAML-only. With both BlueBubbles credentials set in the environment, the tagged code takes the setting from BLUEBUBBLES_SEND_READ_RECEIPTS, which defaults to true. Set it to false to turn receipts off.
Photon. The guide describes inbound attachments as metadata-only, but the 0.23.5 sidecar reads attachment and voice content and passes the bytes to Hermes when it can. The default inline limit is 20 MiB, set by PHOTON_MAX_INLINE_ATTACHMENT_BYTES. If a file exceeds the limit or cannot be read, Hermes gets a metadata-based marker. Outbound images, audio, video and documents are supported. Hermes sends the caption as a separate text message after the attachment. The caption can fail even if the attachment sends.
iMessage on ReadyHermes
ReadyHermes does not offer an iMessage channel. BlueBubbles and Photon are absent from its Channels panel, and we have not tested running either on or with a ReadyHermes assistant.
ReadyHermes hosts your Hermes Agent and keeps it running. The Channels panel offers Telegram, WhatsApp, Discord, WeChat, Lark and the Hermes Desktop connection. The free trial lasts 30 minutes and includes AI.
Questions
Does Hermes Agent need a Mac for iMessage?
BlueBubbles Server needs macOS with an Apple ID signed into Messages. A macOS virtual machine works if iMessage works inside it. With Photon, you can run Hermes without your own Mac relay. You need a Photon account and an iMessage-capable phone number.
Does Hermes register the BlueBubbles webhook automatically?
Hermes can register it automatically. In BlueBubbles Server 1.9.12, enable Allow API webhooks to reach local network addresses under API & Webhooks before Hermes registers a new local callback. If Hermes and BlueBubbles can’t share localhost, set BLUEBUBBLES_WEBHOOK_HOST to a private IPv4 address on the Hermes machine that BlueBubbles can reach. Start or restart the gateway, check hermes logs gateway for webhook registration, then send a test message.
Why won’t the Photon line reply after Hermes setup?
Run hermes photon status. If it shows your number is missing, run hermes photon setup --phone +15551234567 with your own iMessage number in international format. If opt-in is pending and you have an assigned line, text it from the registered number and check status again. Once opt-in is verified and the gateway is running with the new settings, send a test iMessage. If there’s still no reply, check the gateway log and make sure any existing PHOTON_ALLOWED_USERS list includes your number.
Does Hermes support group chats on Photon Free or Pro?
Photon Free and Pro include the direct messaging API. Photon lists group messaging API access on Business and Enterprise. Hermes can require a wake word in ordinary group messages.
Does ReadyHermes support iMessage?
No. ReadyHermes does not offer an iMessage channel, and we have not tested running BlueBubbles or Photon on or with a ReadyHermes assistant.