Matrix bots: maubot and the alternatives

Updated

A Matrix bot is an ordinary Matrix account that a program controls. For a first bot, maubot is the easiest starting point: you install it once, then add features by uploading plugins in a web interface instead of writing code. If you want webhooks, GitHub or GitLab notifications or RSS, Hookshot fits better. If you want moderation, look at Draupnir or Mjolnir. If you want to write your own bot, pick a library for your language.

Part of the Matrix hub. No server yet? Start with running your own Matrix server.

At a glance

Release facts checked 2026-12-02 on each project’s own pages.

Tool What it is Latest release seen
maubot Plugin-based bot host with a web UI 0.6.1, 2026-11-20
Hookshot Webhooks, GitHub, GitLab, Jira, RSS bridge 7.6.2, 2026-11-11
Draupnir Moderation bot, fork of Mjolnir v3.2.0, 2026-10-14
Mjolnir Moderation bot v2.0.2 commit, 2026-10-27
baibot LLM chat bot v2026.12.01.0, 2026-12-01
mautrix-python Python library (maubot depends on it) 0.21.2, 2026-11-20
matrix-nio Python library 0.26.0, 2026-07-23
matrix-bot-sdk (Element fork) TypeScript library 0.12.0 on npm, 2026-11-27
matrix-rust-sdk Rust library 0.20.0, 2026-11-25
simplematrixbotlib Python wrapper over matrix-nio 2.13.1, 2026-03-28

How maubot works

The maubot docs describe three building blocks, and the web interface is where you manage all of them.

  • Plugin. The bot’s code, packaged as an .mbp file. You upload it with the + button next to “Plugins”. The docs say there is no central download location. They point to the list at plugins.mau.bot, plugin release pages and CI builds. You can also build your own with the mbc build command.
  • Client. A Matrix account the bot logs in as. A client needs a homeserver, an access token and a device ID, which you get by logging in with mbc auth. You can use one account for everything or several accounts for different jobs.
  • Instance. The link between one plugin and one client, with an instance ID. If the plugin has options, a config editor appears under the instance.

Maubot is written in Python and licensed AGPL-3.0.

Install maubot

The docs offer Docker and a pip install in a virtualenv. Docker is the shorter path and its image includes the optional encryption dependencies.

With Docker

The docs use the image dock.mau.dev/maubot/maubot:<version>, where <version> can be latest or a tag such as v0.6.0. The container changes ownership of its /data directory to UID 1337, so always run the commands from the directory you mount.

mkdir maubot
cd maubot
docker pull dock.mau.dev/maubot/maubot:<version>
docker run --rm -v $PWD:/data:z dock.mau.dev/maubot/maubot:<version>

The first run writes a config file into that directory. Edit it, then start maubot:

docker run --restart unless-stopped -p 29316:29316 -v $PWD:/data:z dock.mau.dev/maubot/maubot:<version>

The docs publish port 29316 as written above, which listens on every network interface of the host. Change it to -p 127.0.0.1:29316:29316 unless you have a reason not to, so only the host itself can reach the management interface. To upgrade, pull the new image and restart the container.

With pip

You need Python 3.10 or newer, pip and virtualenv. Keep the virtualenv at the top of your maubot directory, not in a subdirectory, because pip places required files at the environment’s root.

mkdir maubot
cd maubot
virtualenv -p /usr/bin/python3 .
source ./bin/activate
pip install --upgrade maubot

Then copy example-config.yaml to config.yaml, edit it, create the log directory and every directory listed under plugin_directories (the docs’ example is mkdir plugins trash logs), and run python3 -m maubot. The docs say not to clone the repository for production use. To upgrade, run the pip command again and restart.

First login

Either way, the management interface is at http://localhost:29316/_matrix/maubot unless you changed it. You log in with a username and password from the admins section of the config. The root user cannot have a password, so create a different admin. The example config bcrypts plaintext passwords on startup. Next, create a client with a token from mbc auth, upload a plugin, and create an instance that joins the two.

Other maintained options

“Maintained” below only means recent releases or commits were visible on 2026-12-02.

Hookshot connects rooms to outside services. Its README lists GitHub, GitLab, Jira, OpenProject, Figma, Challenge Hound, generic webhooks and RSS/Atom feeds, and it supports end-to-bridge encryption so it can work in encrypted rooms. Unlike maubot it runs as an appservice, so you register it with your homeserver, which means you need admin access to the server config. Its setup docs say the appservice listener should not be reachable from the internet, because only the homeserver should use it, while the listener for webhooks must be public so services such as GitHub can reach it. They also warn that by default any user on the bridge’s homeserver has full permission to use it, so review the permissions section. The Telegram bridge guide uses the same appservice mechanism.

Draupnir and Mjolnir do moderation: ban lists shared between communities, protections against spam and unwanted invites, and server-level tools. Draupnir’s README says it began as a fork of Mjolnir and remains a forwards and backwards compatible drop-in replacement, so you can switch between them. Draupnir’s releases page showed v3.2.0 on 2026-10-14 (its third release of 2026), and Mjolnir’s commit history showed v2.0.2 on 2026-10-27, so both are active. Mjolnir removed its multi-user appservice in August 2026, so for a new setup Draupnir is usually the better choice. Draupnir’s docs describe two modes: a bot that protects one community, and an appservice that provisions bots for many users. Its bot setup page starts with creating an account for Draupnir to use, and the docs have a separate page on setting up its management room. Read its encryption guide before using encrypted rooms.

baibot is a chat bot that talks to large language models. Its README lists Anthropic, Groq, LocalAI, OpenAI and Venice among the providers, and says it supports encryption. The README does not say what data reaches those providers, so read their terms, or use a local model through LocalAI, if privacy matters. Its repository is licensed AGPL-3.0-or-later.

Libraries are for writing your own bot. mautrix-python is described on PyPI as “a Python 3 asyncio Matrix framework”. matrix-nio is a Python client library, and its README says a plain pip install matrix-nio has no end-to-end encryption: you need libolm and pip install matrix-nio[e2e]. simplematrixbotlib is a small wrapper over nio; its latest release on Codeberg and PyPI is 2.13.1 from March 2026. In TypeScript, the original turt2live/matrix-bot-sdk README says it is archived in favour of a better-maintained fork, which is the Element one, so start there. matrix-rust-sdk is the choice for Rust.

What bots are good for

  • RSS and news. Maubot’s rss plugin posts feed updates to a room. Hookshot does the same with a feed bridge, along with its other services.
  • Reminders and timers. Maubot’s plugin list includes reminder, reminder-agenda and timer.
  • Polls. The list has a poll plugin.
  • Webhooks and CI notifications. Hookshot’s generic webhooks and its GitHub and GitLab connections fit here. Maubot’s list also has a webhook plugin.
  • Moderation. Use Draupnir or Mjolnir, not a general-purpose bot.

Keep tokens and permissions safe

  • Use a separate account. Do not run a bot as your own user. A bot token can act as that account in every room it is in.
  • Treat the access token like a password. It is a login credential, and the Matrix spec says it is invalidated by calling the /logout endpoint. Keep it out of git and chat.
  • Give the least power. Invite the bot to only the rooms it needs, and leave its power level at the default unless the job needs more. A moderation bot needs enough power to ban and redact, and nothing else.
  • Keep the maubot interface private. The example config listens on 0.0.0.0 by default and serves the UI under /_matrix/maubot. Bind it to localhost, reach it over an SSH tunnel or VPN, or restrict it by IP address. If you do publish it, put it behind a reverse proxy with TLS, and make admin passwords strong. The server guide covers reverse proxies for Synapse.
  • Treat plugins as code you are running. A maubot plugin runs with your bot account’s access, and the docs say plugins come from several unofficial places. Read what you upload.
  • Plan for encryption. Maubot can join encrypted rooms only with its encryption dependencies and a token and device ID never used in another client. Hookshot’s README describes end-to-bridge encryption, so the bridge itself handles the plaintext.
  • Update and back up. Bots are internet-facing software. Pull new maubot versions regularly, and back up the directory you mounted or configured, since the config, with its secrets, lives there. New to running services? Read what self-hosting involves.

Frequently asked questions

Do I need my own homeserver to run a Matrix bot?
No. A bot is a normal Matrix account, so it can live on any server that lets you register one. Your own server helps when you want to disable rate limits for the account, register appservices such as hookshot, or avoid depending on someone else's sign-up rules.
Can maubot read encrypted rooms?
Yes, with extra setup. The maubot docs say it needs the optional encryption dependencies (the Docker image includes them) and an access token and device ID that have never been used in another client. Taking the token from Element does not work, so log in with the mbc auth tool.
Is Mjolnir or Draupnir the better moderation bot?
Both are maintained: Draupnir released v3.2.0 in October 2026 and Mjolnir tagged v2.0.2 the same month. For a new setup Draupnir is usually the better fit, since it describes itself as a forwards and backwards compatible drop-in replacement for Mjolnir, and still offers an appservice mode that Mjolnir removed in 2026. If you already run Mjolnir, there is no urgency to switch. Pick one rather than running both.
Where do I find maubot plugins?
The maubot docs say there is no central download location. They point to the community list at plugins.mau.bot, plugin GitHub release pages and CI builds. Treat a plugin as code you are running with your bot account's power, and read it first.
What should I do if a bot's access token leaks?
Treat the account as compromised. Under the Matrix client-server spec, a token stays valid until it is logged out (or revoked, with OAuth-based login) or its device is deleted, so log that device out or delete it, change the account password, then create a new login and update the bot's config.

Sources, checked December 2, 2026

  1. maubot documentation: introduction
  2. maubot docs: setup (pip install)
  3. maubot docs: setup with Docker
  4. maubot docs: basic usage (plugins, clients, instances)
  5. maubot docs: encryption
  6. maubot docs: command-line tool (mbc)
  7. maubot repository (README, licence)
  8. maubot releases
  9. maubot on PyPI (release date, mautrix dependency)
  10. maubot example-config.yaml
  11. maubot plugin list
  12. mautrix-python releases
  13. matrix-nio repository
  14. matrix-nio on PyPI
  15. matrix-bot-sdk (turt2live, archived in favour of a fork)
  16. matrix-bot-sdk (element-hq fork)
  17. @vector-im/matrix-bot-sdk on npm
  18. matrix-rust-sdk releases
  19. simplematrixbotlib repository on Codeberg
  20. Draupnir repository
  21. Draupnir releases
  22. Draupnir documentation
  23. Draupnir docs: bot-mode setup
  24. Mjolnir repository
  25. Mjolnir commit history
  26. Matrix Hookshot repository (README)
  27. Matrix Hookshot releases
  28. Matrix Hookshot docs: setup
  29. baibot repository (README)
  30. baibot Cargo.toml (licence)
  31. simplematrixbotlib on PyPI
  32. Draupnir docs: management room setup
  33. baibot releases
  34. Matrix client-server API specification

More in Matrix