Skip to content
NLEN
Illustration: OpenAI pipeline found 948 Linux root bugs in one run: what autonomous bug hunting means

Hermes Agent in your encrypted X messages

By Ivo Donker · — text: Claude (AI)

How do you talk to Hermes Agent through X? The official X Chat plugin from Nous Research connects Hermes to the end-to-end encrypted direct messages of one X account. Messages are encrypted and decrypted on your own machine with X's official Chat XDK; X only routes ciphertext. The flip side is that the key file is your entire messaging identity: whoever holds it can read past and future messages.

The plugin has existed since the summer, but it went around on X on November 28. We read the README and the plugin description in the official Hermes plugins repository on GitHub.

What happened

According to a widely shared post on X, Hermes Agent now "lives in your X DMs". The plugin is called X Chat, is listed in the official plugin catalog and is at version 0.1.1. You install it with hermes plugins install xchat, and it needs Hermes Agent 0.21.5 or newer. Installation pulls in two Python packages: chatxdk, X's official encryption library (pinned to version 0.4.1), and httpx.

You choose between two setups. With your own account you talk to Hermes in your chat with yourself ("message yourself") and Hermes replies as you. With a separate account for the agent you send that account a message, and your personal DMs stay untouched.

The details

Setup runs through hermes xchat setup. The wizard stores the OAuth2 access token, shows which account Hermes will run as, generates the key pairs for encryption and signing, and registers the public keys with X. Key registration is limited to a few writes per 24 hours, so the wizard saves everything before the first network call, letting an interrupted run resume the same identity.

The details
PointWhat the README says
RequiresAn X developer account with OAuth 2.0 user context; scopes dm.read, dm.write, users.read, tweet.read
InboundPolling, every 10 seconds by default; no webhooks
X limits1,000 conversation-list reads and 10,000 event reads per 24 hours
AccessBy default only the connected account itself; others through an allow list or a pairing code
GroupsWorks in existing group conversations; does not create groups

Attachments are encrypted in both directions. Every message is signed so recipients can verify the sender. For an existing conversation the plugin reads the backlog on first start to load the keys, without replying to those old messages. Through cron jobs Hermes can also send messages without the gateway running.

The README is clear about the risks. According to the maintainers, the key file is the account's entire encrypted identity for Hermes, and the protocol has no forward secrecy: anyone holding the file can decrypt all past and future messages. It therefore belongs in Hermes' protected configuration file, never in git or on a command line. The maintainers recommend trying it on a separate account first, because setup registers a new key on the account. And if you run Hermes on your own account, note that an unknown sender gets a pairing code by default, sent from your account, unless you configure Hermes to ignore strangers.

What this means

For people who already live on X, this is an easy way to reach an agent from a phone without an extra app. Security still depends on your own machine: the encryption protects against eavesdropping in transit, not against someone who gets hold of the key file or the access token. A separate account for the agent is therefore the most cautious choice, and keep the allow list short. Other ways to reach Hermes include Hermes Agent through Microsoft Teams and Azure; what changes in the newest version is in our article on Hermes Agent 0.23.5. We saw a similar trade-off between convenience and access with MacRemote, which shares tools on your Mac with cloud agents.

What we have not checked

We did not install the plugin: that needs an X developer account with API access and a key registration on a real account, and the latter cannot be undone without consequences. We did not look into whether X Chat API access is available on every developer plan or what it costs. The description of the encryption comes from the README; we did not review the code or the Chat XDK.

Checked on November 28, 2026.

This article was written with AI (Claude) and checked against the sources below.

Sources