Matrix bridge for Zulip
A separate Python process exchanges messages between a Matrix room and a channel topic in your organization. This is a bridge, not a history migration or a complete account, permission, edit, and deletion synchronization service. For IRC, see the direct IRC bridge.
Install the bridge software
Install the zulip Python package in a dedicated virtual environment on a
trusted host. Locate its integrations/bridge_with_matrix directory and
install the dependencies from that directory's requirements.txt. Run the
commands below from that directory using the virtual environment's Python.
The package and configuration section names remain technical identifiers.
Configure the bridge
- Create a Generic bot using bot settings.
Download its
zuliprcand subscribe it to the existing destination channel. Grant private-channel access explicitly. - Create a dedicated account on your approved Matrix homeserver and invite it
to the room. Use its full MXID, such as
@bridge:matrix.example.com. - Generate a configuration template:
python3 matrix_bridge.py --write-sample-config /private/matrix/bridge.conf --from-zuliprc /private/matrix/zuliprc
Fill in the values without surrounding quotes. The parser requires these
exact keys; username is not a substitute for mxid.
[matrix]
host = https://matrix.example.com
mxid = @bridge:matrix.example.com
password = REPLACE_WITH_MATRIX_PASSWORD
room_id = !room:matrix.example.com
[zulip]
email = bridge-bot@example.com
api_key = REPLACE_WITH_BOT_API_KEY
site = https://chat.example.com
stream = matrix
topic = Room mirror
[additional_bridge1]
room_id = !another:matrix.example.com
stream = matrix
topic = Another room
The additional section is optional; each additional_bridge* section needs
exactly room_id, stream, and topic. A room alias such as
#room:matrix.example.com can also be used when the account can resolve it.
Private rooms require an invitation and a usable internal room ID.
Keep the configuration readable only by the service account.
python3 matrix_bridge.py -c /private/matrix/bridge.conf
Test both directions with non-sensitive messages, then supervise the process and monitor errors. The bridge does not create missing destination channels. Do not connect overlapping routes that produce message loops.
Limits and deployment
The current message handler represents encrypted Matrix events as
sends an encrypted message; installing an encryption dependency alone does
not prove end-to-end encrypted bridging. Do not promise encrypted-room support
without separately verifying decryption and key storage. File handling depends
on MIME type and the account's access; it does not preserve all Matrix features.
For SaaS, hybrid, on-premises, or a carrier-managed service, place the process where it can reach both HTTPS APIs. Use separate accounts, processes, room/topic mappings, and secrets for each customer. Channel membership does not reproduce Matrix room permissions. Test who can see the resulting copies on both sides. The bot API key and Matrix password authenticate services; they are not BYOK encryption keys. Customer-managed storage keys and their rotation are configured separately. Stopping the bridge does not delete messages already copied.
Logos are trademarks of their respective owners. None of the integrations on this page are created by, affiliated with, or supported by the companies represented by the logos.