What the plugin does
Hermes Agent is an AI agent by Nous Research that you run yourself. The hermes-plugin-hottea plugin connects its gateway to HotTea. Hermes gets its own HotTea account, and you message it from the app or the web chat like any other contact.
The plugin uses only the public HotTea API. It encrypts and decrypts all content on the machine that runs Hermes. As with every chat, our server sees only encrypted data. The source code is on GitHub under the MIT license.
How a conversation with Hermes works
- You send Hermes a request in your direct chat.
- Hermes creates a private group for the two of you and works on your request there. The group starts with a provisional name. In the background, the model summarizes your message and renames the group to match.
- Your first message is saved, encrypted, as the group's Group info. In the direct chat, Hermes replies with a link to the group.
- The answer arrives in the group, and that is where you write follow-ups. Every new direct message starts another group.
Hermes can reply before you have joined the group. If HotTea still lists you as invited, accept the invitation in the app so you can write follow-ups.
What Hermes can do in HotTea
Replies arrive as text messages, with long replies split into chunks of up to 5,000 characters. Hermes sends JPEG, PNG and WebP images as encrypted photos.
While Hermes works, you see an encrypted live draft as a typing indicator. The plugin refreshes it about every 20 seconds and clears it once the reply is sent. If your gateway streams replies (the draft or auto transport), the reply shows up in the live draft as it is written.
When Hermes needs to ask you something with fixed answers, it asks with a poll. Choosing "Other" lets you type a reply instead. For commands Hermes may only run with your approval, a poll shows the options, but only a /approve or /deny message can approve or reject them, because the API returns votes without the names of the voters.
Requirements
- A running Hermes Agent. The plugin is tested with version 0.23.5. Some features use internal Hermes interfaces, so test it again after every Hermes upgrade.
- A dedicated HotTea account for Hermes with HotTea Super. The public API is part of HotTea Super.
- For everyone who should use Hermes, a direct chat with the Hermes account that both sides have accepted.
Setup
1. Install the plugin
hermes plugins install develate/hermes-plugin-hottea --no-enable
The plugin runs inside your Hermes gateway. A separate Hermes profile keeps HotTea chats, credentials and tool permissions apart from your normal agent.
2. Create an API key and API file
Sign in to HotTea with the Hermes account. Under Settings → API keys, create a key and download its matching API file while the key is still on screen. Store the key as HOTTEA_API_KEY in the Hermes profile's .env file. Put the API file in a private directory and set its file mode to 0600.
Together, the key and the API file give access to the account's identity key. Never paste either of them into a chat, including your chat with Hermes.
3. Verify your contacts
Hermes only responds to contacts you approve explicitly. For each one, you need the username, the account UUID and the P-256 public key (unpadded base64url). The API returns these values in the peer field of the conversation list. Compare the key with a trusted source, such as the person themselves, before you add it. Only approve people who may operate Hermes with that profile's permissions.
4. Configure the plugin
Replace the username, UUID, key and path with your own values. To approve several contacts, put them all in one JSON map.
hermes plugins enable hottea
hermes config set platforms.hottea.api_file '/absolute/private/path/hottea-api.json'
hermes config set platforms.hottea.allowed_peers '{"ExampleNick":{"id":"REPLACE_WITH_UUID","public_key":"REPLACE_WITH_VERIFIED_KEY"}}'
hermes config set platforms.hottea.gateway_restart_notification false
hermes config set platforms.hottea.enabled true
hermes gateway restart
5. Try it
From an approved account, send Hermes a harmless request in the direct chat. Check that a new, named group appears and that the reply arrives there. Then continue in the group, or send a second direct message to get a second group. Finally, test with an account you have not approved: Hermes must not respond to it.
Security and privacy
The plugin trusts only the keys you enter. It does not pick up contacts from the API file, and it rejects changed usernames, replaced accounts and new keys until you update the approval.
Encryption protects messages in transit and on our server. On your machine, Hermes reads them in plain text, keeps them in its own session transcript and sends them to the model provider you configured. If other people use Hermes through HotTea, give them a separate profile with suitable tool permissions instead of letting them work with your normal agent.
Limits
- Hermes does not read photos, videos or voice messages you send it, or anyone else's live drafts.
- The plugin does not mark messages as read and does not support standalone cron delivery.
- New messages arrive over a WebSocket. If it fails, the plugin polls every 15 seconds by default. Set the interval with
platforms.hottea.poll_seconds, at least 5 seconds. - If the gateway crashes right between receiving and handling a request, the request can be lost. Just send it again.
- The API returns at most the 500 most recently active chats, and only messages that have not expired yet. In HotTea, messages disappear after 24 hours unless someone saves them.
The source code, tests and the latest instructions are in the GitHub repository. If you want to write your own program for HotTea, the API documentation has everything you need.