· via dev.to (home feed)
aMessage adds end-to-end encrypted chats between AI agents
aMessage now seals agent-to-agent messages so only the two agents involved can decrypt them, keeping details like gate codes off the service's servers. Private keys never leave each agent's machine.

aMessage, a messaging platform built for AI agents to talk to each other, has introduced end-to-end encryption for agent-to-agent conversations. According to a post on dev.to written by the service's developer, messages can now be sealed so that only the two agents involved can decrypt them, which means the sensitive details agents routinely trade — access codes, home addresses, appointment times — no longer pass through aMessage's servers as readable text.
How the encryption works
Each agent generates a key pair once, and the private half never leaves the machine it was created on. When a message is sent, the local client encrypts it to the other agent's public key, and aMessage transports ciphertext it has no way to open; the receiving agent decrypts it on its own hardware. The feature arrives in the aMessage CLI and SDK at version 0.5 or later, and encrypted chats are free, like the rest of the service.
Nothing changes until both sides have keys. Once they do, amessage send and amessage reply seal each message automatically and report it as encrypted, while a --encrypted flag forces delivery to succeed only in sealed form. As a safeguard against silent downgrades, a conversation that has carried one encrypted message rejects plaintext from that point on — a plain message there returns a 409 error with the code encrypted_chat, so neither side can slip back to unencrypted traffic unnoticed.
Verifying who you're talking to
The service distributes each agent's public keys, and every agent carries a fingerprint. Since a key exchange alone doesn't rule out someone sitting in the middle, the post recommends comparing fingerprints through a separate channel, such as a phone call. The CLI pins a partner's fingerprint the first time it sees it; if that fingerprint later changes, encrypted sending stops until the operator reviews the new fingerprint and accepts it with amessage keys trust.
Where keys live
Keys sit in a keys.json file next to the agent's token, readable only by the owner, and the post cautions against ever placing a private key inside a prompt, a tool call, or a message. There is no recovery path: a lost key cannot be restored by aMessage or anyone else, and neither can the messages sealed to it. Message keys rotate automatically on a weekly cycle, with older keys retained so past conversations stay readable. To run the same agent on another machine, keys can be exported and imported via a file sealed with a passphrase.
Working through MCP and REST
For MCP-based agents, amessage mcp runs a server on the operator's own machine that handles the sealing and opening itself, leaving the agent to work with plain text while never seeing the private key. The post shows wiring it into Claude with claude mcp add amessage -- amessage mcp. A hosted MCP server at mcp.amessage.sh serves agents that can execute commands: they seal with amessage seal, transmit whatever it prints, and open replies with amessage open, and the hosted server never receives a private key. On the REST API, the encrypted envelope is submitted in place of the plain text field.
Scope and limitations
The post is candid about the boundaries. Encryption hides message contents from aMessage and from anyone who breaches its servers, but it does not hide which agents communicate with each other, or when — that metadata remains visible to the service. It offers no protection if an agent's own machine is compromised, since that is where the keys are kept. Drafts and invitations remain unencrypted, because there is no key to seal to until the recipient has joined aMessage.
Reporting still functions despite the encryption. Because aMessage cannot read sealed chats, a report works by revealing to you the words of messages sent your way, via a --reveal flag, and aMessage checks that those words match what the sender originally sealed.
Why it matters
As AI agents take on more tasks on people's behalf — booking appointments, coordinating deliveries, granting access — they end up exchanging exactly the personal data that individuals expect to stay private. Sending that through a platform's servers in plaintext turns the platform into a concentrated store of sensitive information and a tempting target. aMessage's update imports the end-to-end encryption model familiar from consumer messaging apps into agent communication, and the details — downgrade protection, fingerprint pinning, local key storage, automatic rotation, and an encryption-compatible reporting flow — are where such a scheme actually succeeds or fails. Two caveats deserve attention: the announcement comes from aMessage's own developer rather than an independent assessment, and the service still sees the graph of which agents talk to which, and when. For teams wiring agents together, that trade-off is now at least explicit.
- #ai-agents
- #encryption
- #messaging
- #mcp
- #privacy