MEDRE is a self-hosted bridge for chat platforms and mesh networks. Put a Meshtastic channel in a Matrix room, connect a Discord channel to a Telegram group, or let two radio networks exchange messages. People keep using the apps and radios they already have.
You choose which rooms, chats, and channels to connect and which way messages
can travel. Install an adapter for each network you use. The medre package
runs the routes and keeps their delivery records on your host.
Install MEDRE with uv. Python 3.12 works for the Matrix and Meshtastic example below. See the installation guide for pip and other deployment options.
uv tool install --python 3.12 medreRun a one-way test route with simulated adapters. The demo runs on your machine and needs no accounts or radios.
medre config sample > sample.yaml
medre config check --config sample.yaml
medre smoke --config sample.yaml --storage-path smoke.sqlite3 --jsonFor a Matrix and Meshtastic bridge, add both adapters to the MEDRE environment.
medre adapters install matrix meshtasticFollow Getting Started to connect your account
and radio and generate bridge.yaml. You can also start from a
worked example. Check the config and preview
its routes before going live.
medre config check --config bridge.yaml
medre routes plan --config bridge.yaml
medre run --config bridge.yamlUse a test room or channel first and send a message in each configured direction. Leave MEDRE running to keep the bridge connected. Press Ctrl+C to stop it. For containers, see the Docker guide.
| Transport | What you can connect | Python requirement | Setup |
|---|---|---|---|
| Matrix | Rooms | 3.12+ | Guide |
| Meshtastic | Radio channels | 3.11+ | Guide |
| MeshCore | Companion channels and contacts | 3.11+ | Guide |
| LXMF | Reticulum destinations | 3.11+ | Guide |
| XMPP | Rooms and direct conversations | 3.13+ | Guide |
| Chatmail | Accepted groups and direct chats | 3.11+ | Guide |
| SimpleX Chat | Allowlisted groups and direct conversations | 3.11+ | Guide |
| Telegram | Bot chats, groups and forum topics | 3.11–3.15 | Guide |
| Discord | Server text channels | 3.11–3.15 | Guide |
| Bitchat | Public Bluetooth mesh text | 3.11+ | Guide |
Core requires Python 3.11 or later. Pick one Python version that satisfies the requirements of all adapters in your bridge. See package management for upgrades and switching between PyPI, Git, and local builds.
A relayed message can show up as [MT] River: Meet at the trailhead so a Matrix
reader knows who sent it and where it came from. Set a source label when you
bridge several channels from one network. The destination's relay_prefix
controls how that attribution appears. On short radio links, the prefix and
message share the same byte budget.
MEDRE records what happened at each destination. A chat server accepting a message and a radio taking a packet for transmission are different results. SQLite keeps inbound identities and pending delivery work across restarts. See recovery and replay for how MEDRE handles a send whose outcome could not be confirmed.
Text is the common path across the ten adapters. Replies and other features depend on the destination, and the released Matrix adapter supports media in unencrypted rooms when attachments are enabled. The transport profiles describe what each adapter can carry and what delivery evidence it provides.
- Getting Started walks through a first bridge.
- Operator guides cover configuration, upgrades and troubleshooting.
- Developer guides cover testing and writing adapters.
- Technical specification defines the routing, rendering and storage contracts.
- Schemas describe the published JSON formats.
Join #medre:matrix.org to ask for setup help or share what you connected. For a bug report, include your installed versions, the transports involved, and relevant sanitized logs.
MEDRE core is MIT-licensed. Adapters and their SDKs carry their own terms. See dependency licensing for details before redistribution.