Skip to main content

Bots & Integrations

A Matrix bot is an ordinary user account driven by a program, or a user inside an application service (appservice). Bots moderate rooms, relay notifications, and connect Matrix to other tools.

Kinds of bot​

KindHow it connectsExamples
Client botLogs in as a normal user and syncsmaubot plugins, nio or matrix-bot-sdk scripts
Appservice botRegistered with the homeserver; receives events pushed to it and can act as many usersHookshot, bridges, Draupnir in appservice mode
Moderation botUsually a client bot with moderator rights in protected rooms, sometimes plus a Synapse moduleDraupnir, Meowlnir, Mjolnir

Maintained tools (2026-10)​

ToolWhat it doesRelease
maubotPython plugin host with a web UI. The usual choice for general-purpose bots.0.6.0 (2025-11-17)
DraupnirModeration bot: policy lists, protections, server ACLs3.2.0 (2026-10-14)
MeowlnirModeration bot from the mautrix author, tuned for Synapse0.2609.0 (2026-09-16)
MjolnirThe original moderation bot, still maintained by Matrix.org2.0.1 (2026-10-15)
HookshotGitHub, GitLab, Jira, OpenProject, Figma, RSS and webhooks7.5.0 (2026-09-22)

Libraries for writing your own bot are compared in SDKs and Building bots.

Retired: Dimension (integration manager, archived 2023-08), go-neb (archived 2023-06) and NioBot (archived; its author recommends maubot or mautrix-python). Don't start new deployments on them.

Quick start​

The shortest path to a working bot is a maubot plugin. For a standalone script, see the matrix-nio example. Both skip old messages on startup, so a restarted bot doesn't answer commands twice.

What changed for bots by 2026​

  • Encrypted rooms need cross-signing. Since spec v1.18, clients SHOULD NOT send room keys to devices that aren't cross-signed and SHOULD NOT show their messages (spec, MSC4153). Bots on libraries without cross-signing (matrix-nio, matrix-bot-sdk) will lose encrypted rooms as clients enforce this. See E2EE and cross-signing.
  • Tokens on MAS servers. Servers using Matrix Authentication Service (matrix.org since 2025-04) issue short-lived, refreshing tokens to OAuth clients such as Element. Give a bot its own account and a personal access token instead of copying a token out of Element. See Getting a bot account.
  • Room version 12. Room creators have unlimited power. A bot at power level 100 cannot kick, ban or demote a creator (room v12).
  • Policy servers. Spec v1.18 added policy servers, which check events for a room before they are accepted (spec). They complement moderation bots. See Moderation bots.

Hosted bots​

ServiceWhat it offers
t2bot.ioFree public bots and bridges run by a volunteer, including RSS (@rss:t2bot.io) and reminders (@reminder:t2bot.io). Check the site for current status.
Asgard.ChatHosted Meowlnir moderation
Element Matrix services and etke.ccManaged homeservers with integrations

Power levels for bots​

BotNeeds
Posts messages or noticesThe room's events_default (usually 0)
Edits room state (Hookshot connections)state_default (usually 50)
Moderatesban, kick and redact levels (usually 50), plus permission to send m.room.server_acl if it should apply server bans (100 in rooms Synapse creates)

Give the lowest level that works. In room v12, no power level overrides a room creator.

warning

A moderation or appservice bot holds real power: it can ban, redact and, with Synapse admin rights, suspend or deactivate accounts. Keep its access token out of chat rooms and config repos, run it on a dedicated account, and restrict who can command it.


Continue: Maubot | Moderation bots | Hookshot | Building bots