Matrix Bridges
A bridge is a program that connects Matrix rooms to another chat network, so messages flow both ways.
Most bridges are application services. The homeserver registers them, pushes events to them over HTTP, and lets them control a namespace of "ghost" users such as @telegram_12345:example.com.
A bridge's appservice token can act as any user in its namespace, and a puppeting bridge stores your login session for the remote network. The bridge, and whoever runs it, sees every bridged message in plaintext, even in encrypted rooms. Only use bridges run by someone you trust. Keep as_token and hs_token secret, and limit who may log in with the permissions section of the bridge config. The double-puppet as_token (below) is more powerful still: it can act as every user on your server, so treat it like an admin password.
Bridge types
Puppeting
Each remote user appears in Matrix as a ghost user. Each Matrix user who logs in to the bridge sends messages through their own remote account.
Discord user Bob → [bridge] → @discord_123:example.com in Matrix
Matrix user Alice → [bridge] → Alice's own Discord account
Reactions, edits, replies, typing and read receipts usually work, depending on the network.
Double puppeting
With double puppeting, messages you send from the native app (your phone, for example) appear in Matrix from your real Matrix account instead of a ghost. The bridge can also accept invites for you and sync mute, favourite and low-priority state. mautrix recommends it whenever possible (docs).
The supported automatic method is a second appservice registration with an empty url; the bridge uses its as_token to act as your users. The older "shared secret" methods were removed in the bridgev2 ("megabridge") rewrites. In a bridgev2 config it looks like this:
# Key names from mautrix/go v0.32.0 bridgev2/matrix/mxmain/example-config.yaml
double_puppet:
# Only for OTHER servers; don't list the server the bridge is on.
servers: {}
secrets:
example.com: "as_token:<as_token from your doublepuppet registration>"
Follow the double puppeting guide to create the registration. Its user namespace is @.*:example\.com (non-exclusive), which is why the token can act as any local user. The legacy mautrix-discord bridge uses bridge.login_shared_secret_map with the same as_token: value.
Relay mode
Users who haven't logged in to the bridge can still talk through a designated "relay" login; their messages appear on the remote side prefixed with their name. In bridgev2 bridges you set bridge.relay.enabled: true, log in with a dedicated Matrix account, and run set-relay in the room (relay mode docs). bridge.relay.admin_only defaults to true, so the account running set-relay needs admin permission, unless its login ID is listed in bridge.relay.default_relays. Discord uses webhooks instead (see the Discord page).
Portal and plumbed rooms
| Type | Description | Typical use |
|---|---|---|
| Portal | Room the bridge creates for each remote chat | Personal use, 1:1 mapping |
| Plumbed | Existing Matrix room linked to a remote chat | Communities |
Which bridge to use (as of 2026-10-18)
Versions are the latest GitHub release. mautrix bridges have used calendar versions since Oct 2025: the display version is vYY.MM (e.g. v26.10) and the git tag is v0.YYMM.patch (e.g. v0.2610.0). They release monthly around the 16th, and only the latest release is supported (release policy).
| Network | Bridge | Latest release | Status |
|---|---|---|---|
| mautrix-whatsapp | v26.10 (2026-10-16) | Active, bridgev2 | |
| Signal | mautrix-signal | v26.10 | Active, bridgev2 |
| Telegram | mautrix-telegram | v26.10 | Active; rewritten in Go (bridgev2) in v26.04 |
| Slack | mautrix-slack | v26.10 | Active, bridgev2 |
| Discord | mautrix-discord | v0.7.7 (2026-08-16) | Active, still the legacy architecture |
| Messenger / Instagram | mautrix-meta | v26.10 | Active. Since v26.08 Instagram needs the separate mautrix-instagram binary from the same repo (image dock.mau.dev/mautrix/meta:ig-v26.10) |
| Google Messages | mautrix-gmessages | v26.10 | Active |
| Google Voice | mautrix-gvoice | v26.05 | Active |
| X / Twitter | mautrix-twitter | v26.09 | Active |
| mautrix-linkedin | v26.09 | Active (replaced the archived beeper/linkedin) | |
| Bluesky | mautrix-bluesky | v25.10 (2025-10-16) | DMs only; no release in a year |
| Zulip | mautrix-zulip | v25.11 | Early; Matrix→Zulip is plain text only |
| IRC | Heisenbridge | v1.15.4 (2025-10-04) | Works; slow maintenance |
| IRC | matrix-appservice-irc | 4.0.0 (2025-10-24) | Maintained; suited to large network-wide bridges |
| IRC | mautrix-irc | no release | Very early; its README says switching from Heisenbridge is not yet recommended |
| iMessage | mautrix-imessage | no GitHub releases | Legacy; self-host only, needs a Mac, jailbroken iOS or Android SMS |
| Google Chat | mautrix-googlechat | v0.5.2 (2024-07-16) | Python, no release for two years; treat as unmaintained |
| GitHub, GitLab, JIRA, webhooks | Hookshot | 7.5.0 (2026-09-22) | Maintained |
Archived or dead (do not deploy)
| Project | Status |
|---|---|
| matrix-appservice-slack | Archived; its README says the matrix.org instance was decommissioned on 2026-01-14 (announcement). Use mautrix-slack. |
| mautrix/facebook, mautrix/instagram repos (Python) | Archived in 2024; replaced by mautrix-meta (and its Go mautrix-instagram binary). |
| beeper/linkedin (Python) | Archived; replaced by mautrix-linkedin. |
| signald | Does not work with current Signal servers; mautrix-signal dropped it in Feb 2024. |
| matrix-appservice-discord | No release since v4.0.0 (2023-09); effectively unmaintained. Use mautrix-discord. |
mautrix-discord is being ported to bridgev2 on the megadiscord branch; there is no release yet. When it ships, its config will move to the bridgev2 layout described below. A bridgev2 port of mautrix-googlechat is also pending (mau.fi, Dec 2025).
Hosted bridges
- Beeper runs the mautrix bridges as a service; Automattic has owned it since 2024. bridge-manager (
bbctl) lets you self-host a bridge against a Beeper account. - Some managed Matrix hosts offer bridges as an add-on; check with your provider.
If your account is on a homeserver you don't run (matrix.org, for example), you cannot register an appservice there. Use a hosted bridge or run your own homeserver.
Self-hosting a mautrix bridge
The authoritative instructions are docs.mau.fi: Go bridge setup and Docker setup. In outline:
- Requirements: a homeserver with appservice support, and PostgreSQL 16 or newer, with a separate database for each bridge (sharing the Postgres server is fine). Synapse is the best-supported homeserver; mautrix calls Dendrite "not a supported environment" (registering appservices).
- Get the binary from the bridge's GitHub releases (or build with
./build.sh), or use the Docker imagedock.mau.dev/mautrix/<bridge>:<version>. Pin a release tag::latestfollows the main branch, not the latest release. - Generate a config:
./mautrix-<bridge> -ewrites an exampleconfig.yaml. Discord is legacy and has no-e, so copy itsexample-config.yamlinstead. The Docker image writes the config on first start. - Edit the config (see below).
- Generate the registration:
./mautrix-<bridge> -gwritesregistration.yaml. Don't hand-write it, and regenerate it if you change the appservice settings. - Register it with the homeserver. For Synapse, add the file to
app_service_config_filesinhomeserver.yamland restart Synapse (guide). - Run the bridge. Then open a DM with the bridge bot (e.g.
@whatsappbot:example.com) and follow the bridge's authentication page.
services:
mautrix-whatsapp:
image: dock.mau.dev/mautrix/whatsapp:v26.10
restart: unless-stopped
volumes:
- ./mautrix-whatsapp:/data
# Put it on the same Docker network as Synapse. Don't publish the port:
# only the homeserver needs to reach it.
Inside Docker, localhost is the container itself. Point homeserver.address and appservice.address at container names on a shared network (e.g. http://synapse:8008 and http://mautrix-whatsapp:29318), and set appservice.hostname: 0.0.0.0 so the bridge listens on the container's network interface. The generated config defaults to 127.0.0.1, which the homeserver can't reach from another container.
The bridgev2 config layout
Every mautrix bridge except Discord, iMessage and Google Chat now uses the bridgev2 layout. The shared sections come from mautrix-go, and network-specific settings live under network:. These are the keys most people change:
# Key names from mautrix/go v0.32.0 bridgev2/matrix/mxmain/example-config.yaml
# (used by the v26.10 bridges). Generate the full file with -e.
homeserver:
address: http://synapse:8008 # how the bridge reaches the homeserver
domain: example.com # your server name
appservice:
address: http://mautrix-whatsapp:29318 # how the homeserver reaches the bridge
hostname: 0.0.0.0 # where the bridge listens; 0.0.0.0 in Docker, default 127.0.0.1
port: 29318
database:
type: postgres
uri: postgres://mautrix:password@postgres/mautrix_whatsapp?sslmode=disable
bridge:
permissions:
"example.com": user # relay | commands | user | admin
"@you:example.com": admin
network:
# bridge-specific options; see each bridge's pkg/connector/example-config.yaml
The top-level double_puppet, encryption and backfill sections are shared by all bridgev2 bridges too. The setup guide links pregenerated example configs for every release.
Encryption (end-to-bridge)
Bridges can join encrypted Matrix rooms. Messages are then encrypted between your client and the bridge, but the bridge decrypts them to forward them. This does not give you end-to-end encryption across the bridge.
# Key names from mautrix/go v0.32.0 bridgev2/matrix/mxmain/example-config.yaml
encryption:
allow: true # join encrypted rooms
default: true # enable encryption in new portals; needed if your server forces encryption
msc4190: true # needed if your homeserver uses MAS (next-gen auth)
self_sign: true # cross-sign the bridge bot so strict clients accept it
- The Docker images and release binaries include encryption support.
- MSC4190 (appservice device management without the legacy login API) is in spec v1.17. Since Synapse 1.141 it works without a registration opt-in flag.
self_signmatters because clients are starting to exclude devices that are not cross-signed (MSC4153, recommended in spec v1.18).encryption.appservice: true(MSC3202 instead of/sync) is experimental. Leave it off unless the mautrix docs tell you otherwise.
Details: end-to-bridge encryption.
Commands (bridgev2)
Talk to the bridge bot in a DM (the "management room", where no prefix is needed), or use the bridge's prefix elsewhere, e.g. !wa, !signal, !tg or !slack. Run help for the full list. Common commands, from mautrix/go v0.32.0 bridgev2/commands/:
| Command | Purpose |
|---|---|
login [flow] | Log in to the remote network |
list-logins, logout <login ID>, relogin <login ID> | Manage logins (logout needs the ID from list-logins) |
start-chat / pm | Start a DM with a remote user |
create-group / create | Create a remote group for this room |
bridge [login ID] <chat ID>, unbridge | Link or unlink an existing Matrix room |
set-relay, unset-relay | Use your login as the relay for this room |
sync-portal, delete-portal | Resync or delete the current portal (delete-portal is admin only) |
search, resolve-identifier | Find remote users |
bridgev2 has no generic ping or sync command.
Troubleshooting
- The bot doesn't respond to invites. The homeserver probably can't reach the bridge. Check
appservice.address(and theurlinregistration.yaml), check that the registration is listed inapp_service_config_files, restart the homeserver, and look for transaction errors in its log. See troubleshooting. - "Bridge has not been configured to support encryption". Set
encryption.allow: true. If your homeserver forces encryption on new rooms, also setencryption.default: true. - Backfill. Matrix can't insert messages into the past of an existing room, so initial history is added when a portal is created. Configure backfill before logging in. bridgev2 also has
backfill.max_catchup_messagesfor messages missed while the bridge was down. - Typing and read receipts. These need ephemeral events pushed to the appservice:
receive_ephemeral: truein the registration (spec v1.13). mautrix writes it into the registration whenappservice.ephemeral_events: true.
Resources
- docs.mau.fi bridges and the mautrix repositories
- Matrix.org bridge listing
- Support rooms: #maunium:maunium.net, the per-bridge rooms (e.g. #whatsapp:maunium.net), #heisenbridge:vi.fi and #bridges:matrix.org
- mautrix-manager, a desktop app that automates logins that need browser cookies or passkeys
Interoperability under the EU DMA
The EU Digital Markets Act requires designated messengers to open up to third parties. In Nov 2025 Meta announced that WhatsApp third-party chats would roll out across Europe, with BirdyChat and Haiket as the first partners and group chats to follow later (Meta, 2025-11-14). No Matrix-based WhatsApp interop has shipped; mautrix-whatsapp uses an unofficial, reverse-engineered WhatsApp Web client instead. See also the IETF MIMI working group.
Related
- Matrix and Solid: a design sketch (a proposal, not software)