Self-host matterbridge
v1.26.0Chat relay bridging Discord, IRC, Matrix, Slack and more
docker run -ti --mount "type=bind,source=$(pwd)/matterbridge,target=/etc/matterbridge,readonly" 42wim/matterbridge:stable- Stars
- 7 615
- Port
- 4242 (built-in API when an [api] account is configured)
42wim/matterbridgeWhat is matterbridge?
matterbridge is a single-daemon chat gateway that copies messages between a large number of chat protocols, so people can stay on the client they prefer while still talking to everyone else. Bridges available out of the box cover Discord, Gitter, IRC, Keybase, Matrix, Mattermost, Microsoft Teams, Mumble, Nextcloud Talk, Rocket.Chat, Slack and Zulip, plus Telegram, Twitch, VK, WhatsApp and XMPP, and a Mattermost server is explicitly not needed to run it. Conversations are mirrored in both directions between any combination of protocols, even two accounts of the same one; message edits and deletes are relayed where the remote service permits, threads are kept intact when possible, and files and attachments are passed over. Remote participants can appear with their own names and avatars through webhooks, and private groups are supported too. Bridging is declared in a TOML file as gateways listing the accounts and channels sharing one conversation, and several gateways run inside a single instance. A built-in API lets other programs post into a gateway and read back recent traffic, which is how links for games like Minecraft or Reddit chat are built. You self-host it by downloading a release binary, running the published Docker image or a Compose stack, installing a snap or scoop package, or using a systemd service file; the binary accepts -conf, -debug, -gops and -version flags. Limits worth knowing: the Steam bridge is no longer supported, WhatsApp multi-device support must be compiled yourself because of a GPL dependency, and releases have been quiet since v1.26.0 in January 2023.
matterbridge alternatives
Matrix IRC BridgeSelf-hosted, open-source IRC bridge that connects Matrix homeservers to IRC networks with two-way messaging, private messages, and dynamic channel mapping.CompareMatrix IRC Bridge with matterbridge
mattermostMattermost is a self-hosted collaboration platform with channels, threads, file sharing, voice calls and playbooks for DevSecOps, IT service desk and incident response.Comparemattermost with matterbridge
Matrix-Discord bridgeSelf-hosted open-source bridge connecting Matrix and Discord for using Matrix clients with Discord chats, featuring webhook relay and encryption.CompareMatrix-Discord bridge with matterbridge
Matrix WhatsApp bridgeOpen-source, self-hosted Matrix-WhatsApp puppeting bridge written in Go that links private chats, groups, media and reactions to your WhatsApp account.CompareMatrix WhatsApp bridge with matterbridge
Matrix-Telegram bridgeSelf-hosted open-source bridge connecting Matrix and Telegram with puppeting, relaybot, and double puppeting support for seamless cross-platform messaging.CompareMatrix-Telegram bridge with matterbridge
mautrix-googlechatAn open-source, self-hosted Matrix bridge connecting Google Chat to Matrix for two-way messaging with media, threads, reactions, and multi-user support.Comparemautrix-googlechat with matterbridge
ChattoChatto is an open-source, self-hosted team chat server: one compact binary, no separate database, with rooms, threads, attachments, search, calls and SSO.CompareChatto with matterbridge
cinnyOpen-source Matrix client (AGPL-3.0) for self-hosted federated chat with end-to-end encryption, served as a static web app via Docker or tarball.Comparecinny with matterbridge
Should you self-host matterbridge?
matterbridge scores 69/100 on selfhost.directory (how scoring works) and ranks #3 of 13 in Instant Messaging. It has 7 615 GitHub stars, +38 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Rocket.Chat (81/100, 46 381 stars). It scores higher overall, so compare the two before you pick. See matterbridge vs Rocket.Chat side by side.
Features
- File and attachment relay
- Mattermost-independent operation
- Message edit and delete relayFull in/out for Discord, Mattermost, Slack, Matrix and Telegram; incoming-only for Gitter and RocketChat; IRC has neither.
- Multiple chat networks per instance
- Multi-protocol chat bridging
- Private group bridging
- REST API
- Same-channel gateway mapping
- Scriptable message rewriting
- Steam bridgeRemoved because the underlying go-steam library is unmaintained.
- Thread preservation
- Username and avatar spoofing
- WebSocket message stream
matterbridge README

A simple chat bridge
Letting people be where they want to be.
Bridges between a growing number of protocols. Click below to demo or join the development chat.
Discord | Gitter | IRC | Keybase | Matrix | Mattermost | MSTeams | Rocket.Chat | Slack | Telegram | Twitch | WhatsApp | XMPP | Zulip | And more...
Note: Mattermost isn't required to run matterbridge.
FAQ
Why can't Teams messages with attachments or images be received?
The Microsoft API does not support it.
Why do Keybase edits and deletes not work?
The Keybase chat library matterbridge uses does not support them.
Why aren't deleted messages on Gitter removed on the other bridges?
Gitter's API does not emit delete events, so matterbridge cannot pick them up; deletions started on the other side do reach Gitter.
What does the Mattermost "version not supported" error mean?
matterbridge connects over HTTPS by default; for a plain HTTP test server add `NoTLS=true` and point Server at port 8065.
Why does Mattermost not send anything to the other bridges?
Create a dedicated account for matterbridge instead of using your own, as described in the Mattermost section of the wiki.
Why do deleted Telegram messages stay on the other bridges?
Telegram does not expose deleted-message metadata, so matterbridge cannot know a message was removed.
Why does matterbridge not relay messages from Telegram?
Telegram bot privacy mode interferes with what the bot can see; the FAQ points to Telegram's bot privacy-mode documentation for the fix.
Do I need to allow inbound connections for webhooks to work?
No, inbound connections are not required.
Why aren't edited messages updated on Discord but a new "(edit)" message appears?
Discord webhooks cannot edit messages; disable webhooks and authenticate with the token only if you want edits bridged.
Why do role or user mentions show IDs instead of names on the other bridges?
Grant the bot the "Manage Roles" permission so mentions can be resolved to names.
Why is Discord not getting or sending messages?
Check that the channel is addressed correctly; using the numeric channel ID with `channel="ID:number"` instead of the name often fixes it, and make sure the bot was not banned from the server.
Why do Slack messages arrive labelled as coming from the Slack API tester?
The nickname shown comes from the RemoteNickFormat setting; set it explicitly, for example to `RemoteNickFormat="<{NICK}>"`.
Why is a message being skipped?
matterbridge never relays messages sent by the very account it is logged in as, so the bridge needs its own dedicated user account.
More in Instant Messaging
mautrix-gmessagesSelf-hosted Matrix bridge for Google Messages (RCS/SMS) with media, reactions, typing notifications, read receipts, and automatic portal creation.
mautrix-googlechatAn open-source, self-hosted Matrix bridge connecting Google Chat to Matrix for two-way messaging with media, threads, reactions, and multi-user support.
mautrix-metaSelf-hosted open-source Matrix bridge for Facebook Messenger and Instagram DMs, syncing media, reactions, edits and history, with end-to-bridge encryption.
metronomeMetronome IM is a self-hosted, open-source XMPP server forked from Prosody with microblogging, MUC, PubSub, and HTTP APIs.
MongooseIMMongooseIM is a self-hosted, open-source XMPP server built for massive scale and enterprise use, supporting clustering, multi-tenancy, and multiple auth methods.
MovimOpen-source, self-hosted web front-end for the XMPP network: chat, chatrooms, blogging, communities, stories and video calls in one interface.
OpeniLink HubSelf-hosted WeChat Bot platform (iLink) with 20+ app integrations. Multi-bot management, WebSocket/Webhook/AI routing, message tracing, Passkey auth.
PidginSelf-hosted Docker container running Pidgin instant messenger with XMPP, IRC, Discord, Telegram, and more, accessed via a browser-based desktop interface.
pocketpawSelf-hosted, open-source AI agent with a web dashboard and native desktop app, reachable over Telegram, Discord, Slack or WhatsApp, with swappable LLM backends.
Prosody IMProsody is a modern, lightweight, and extensible XMPP/Jabber server written in Lua, designed for easy setup, efficient resource usage, and federation with other XMPP services.
RevoltA self-hosted, open-source group chat app for communities offering servers, channels, calls, file uploads, and themes — a Discord alternative you fully control.
Rocket.ChatSelf-hosted, open-source chat platform for teams and citizens: channels, threads, voice and video, end-to-end encryption, LDAP/SSO, and Matrix federation.

0 comments