# Matterbridge — Bridge Chat Messages Across 30+ Platforms > Matterbridge connects chat platforms like Slack, Discord, Telegram, Matrix, IRC, and many more into unified conversations. Messages sent on one platform are automatically relayed to all bridged channels. ## Install Save in your project root: # Matterbridge — Bridge Chat Messages Across 30+ Platforms ## Quick Use ```bash # Download the binary go install github.com/42wim/matterbridge@latest # Or Docker docker run -d -v /path/to/matterbridge.toml:/etc/matterbridge/matterbridge.toml 42wim/matterbridge:latest ``` ## Introduction Matterbridge solves the fragmentation problem when a team or community uses multiple chat platforms. It relays messages, files, and reactions between channels so everyone stays in sync regardless of which app they prefer. ## What Matterbridge Does - Bridges messages bidirectionally between 30+ chat platforms - Relays file attachments, images, and reactions where supported - Preserves sender usernames across platforms for readable conversations - Supports multiple gateway configurations to bridge different channel groups - Runs as a single Go binary or Docker container with a TOML config file ## Architecture Overview Matterbridge is written in Go and uses a gateway-based architecture. Each supported platform has a bridge module that connects to the platform's API (REST, WebSocket, or IRC). A gateway definition in the config file groups multiple bridge endpoints into a conversation set. When a message arrives on one bridge, the gateway fans it out to all other bridges in the group. The application is stateless and maintains only in-memory connection state. ## Self-Hosting & Configuration - Download a single binary or use the Docker image — no dependencies needed - Configure via a single matterbridge.toml file defining accounts and gateways - Each platform requires its own API token or bot credentials - Supports TLS, proxy settings, and custom API endpoints per bridge - Run as a systemd service or Docker container for production reliability ## Key Features - 30+ supported platforms including Slack, Discord, Telegram, Matrix, IRC, XMPP, Mattermost, Rocket.Chat, Microsoft Teams, and more - Bidirectional message relay with username preservation - File and image forwarding across compatible platforms - Multiple gateways for different channel groupings in one instance - Lightweight single binary with low memory footprint ## Comparison with Similar Tools - **Matrix bridges (mautrix)** — Matrix-centric bridges that require a Matrix server; Matterbridge bridges any-to-any - **Beeper** — commercial unified inbox; Matterbridge is open source and bridges channels, not DMs - **Zapier / n8n** — general automation tools that can relay messages but lack native chat formatting - **SocialBridge** — newer project with fewer supported platforms - **IRC bouncers (ZNC)** — connect IRC only; Matterbridge spans dozens of protocols ## FAQ **Q: Does Matterbridge store messages?** A: No. It relays messages in real time and keeps no persistent history. **Q: Can I bridge more than two platforms in one gateway?** A: Yes, a single gateway can include any number of platform channels. All messages are relayed to every member of the gateway. **Q: How do I add a new platform?** A: Create a new account block in matterbridge.toml with the platform's API credentials, then add it to a gateway. **Q: Does it support threads and reactions?** A: Thread replies and reactions are forwarded on platforms that support them. On others, they appear as regular messages. ## Sources - https://github.com/42wim/matterbridge - https://github.com/42wim/matterbridge/wiki --- Source: https://tokrepo.com/en/workflows/5ffcd5c9-3d18-11f1-9bc6-00163e2b0d79 Author: AI Open Source