Skip to content

XMTP

XMTP is an open-source messaging protocol and SDK for wallet-based identities. It uses MLS (RFC 9420) for end-to-end encrypted DMs and groups, with a backend that cannot read messages.

Overview

XMTP is a messaging protocol and set of SDKs that developers build into their own apps. You won’t download an “XMTP app”. You use an app or agent that integrates it. Clients create an identity from a key pair, which can be an Ethereum account or a smart-contract wallet, and get a stable inbox ID that others message.

The protocol targets crypto apps and, more and more, AI agents. Each agent keeps its own identity and keys, and agents from different products can share one encrypted group chat. There are native SDKs for Swift, Kotlin and React Native, plus browser, Node and Agent SDKs.

The current release line (version 8, in release candidates in late 2026) ships a single backend binary backed by PostgreSQL. Apps run it themselves and point their clients at its URL. The GitHub organization also holds node software for a shared XMTP network (xmtp-node-go and xmtpd).

Key features

  • MLS group messaging — DMs and groups use the IETF Messaging Layer Security standard, with forward secrecy and post-compromise security.
  • Hidden group metadata — Welcome messages encrypt the sender and group ID, and group messages use MLS PrivateMessage framing to hide the sender.
  • Partial post-quantum protection — Welcome messages use a hybrid post-quantum key encapsulation against “harvest now, decrypt later” attacks.
  • Wallet identities — EOAs and smart-contract wallets can register. The backend verifies smart-wallet signatures over configured chain RPCs.
  • Rich content types — reactions, replies, attachments, read receipts, transaction references and wallet call requests.
  • Audited — NCC Group reviewed XMTP’s MLS implementation in 2024 and published the report.

How the privacy works

Message contents are protected by MLS, using the ciphersuite MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519. Keys ratchet forward with each message, so a stolen current key does not expose past messages, and regular commits rotate the group secret to lock out a past attacker. Clients, not the backend, check group membership and signatures. Only members hold the group keys.

XMTP’s own security documentation is explicit about what the backend can still see: topic identifiers, request timing and size, and connection metadata such as IP address. Query patterns can reveal relationships. The recipients of Welcome messages are not hidden, so an observer can count how many groups a user was invited to.

Trade-offs and things to know

  • Content privacy, not network anonymity — whoever runs the backend sees metadata. The docs suggest proxying or onion routing if you need to hide query patterns.
  • Wallet identity can link to onchain history — if you message from a public Ethereum address, your contacts know which address you are.
  • Post-quantum coverage is partial — only the Welcome key exchange is hybrid post-quantum.
  • Fast-moving releases — v8 changes group IDs and backend behavior, and clients and backend must be upgraded in the documented order.

Getting started

Developers can follow the quickstart on xmtp.org. It starts a local backend with Docker Compose and sends a message between two clients. For production, run the backend with your own PostgreSQL and TLS, then integrate the SDK for your platform or the Agent SDK.

Sources and audits

Primary sources: official website, documentation and source code. Checked against these on . How we review listings.

Mechanism notes

E2E encryption

Hides: Message content from everyone except the participants.

You trust: Device security and key verification. Metadata may still leak.

Impersonators are common. Check links against the official website before connecting a wallet.

Alternatives to XMTP

All 5 in messaging