Migrate from Mjolnir to Draupnir

Moving from Mjolnir to Draupnir is mostly a configuration and container image change, but the policy lists, room permissions and moderation protections still need a planned check. This page covers what maps cleanly, what to verify, and how the work is sequenced.

On this page

How hard is migrating from Mjolnir to Draupnir?

If you run a Matrix server with Mjolnir as your moderation bot and want to move to Draupnir, the switch itself is usually small. Draupnir began as a fork of Mjolnir and is designed as a forwards and backwards compatible drop-in replacement, so the core change is pointing your configuration at the Draupnir Docker image. The real effort sits in verification: confirming that the bot starts with your existing configuration, joins the rooms it should, and enforces the same policy lists before you rely on it for moderation.

The effort depends on how large and how customized your moderation setup is. A bot protecting a handful of rooms with one or two ban lists is a short exercise. A bot covering many protected rooms, several subscribed policy lists, and custom tooling around it, such as scripts that read its output, dashboards, or alerting on ban events, takes more checking because each of those pieces depends on behavior you need to confirm still holds. Ask your team to inventory protected rooms, list every subscribed policy list, and document any integrations before the change, so you have a baseline to compare against.

Plan the verification window around the protections you depend on most. Confirm that the same policy lists load, that ban and redaction actions behave as before in a test room, and that the bot's own account has the power levels and membership it needs in each protected room. Review the Draupnir repository for the current compatibility notes and configuration details before you change the image, and keep the previous Mjolnir configuration and container tag available so you can return to it if a check fails.

What carries over from Mjolnir and what to check

This table compares the main parts of a Mjolnir deployment with their Draupnir counterparts and marks which items the Draupnir project describes as a drop-in replacement. Read the carry-over column as the expected starting point, and treat the check column as the list to confirm in the Draupnir repository before cutover.

Mjolnir itemExpected in DraupnirWhat to check before cutover
Docker deploymentSwitch the container image to the Draupnir image; the project describes migration mainly as pointing the config at itConfirm the image name, tag and any new environment variables in the repository README
Config fileExpected to be read without structural changes, since Draupnir is described as a drop-in replacementDiff your config against the Draupnir sample and confirm every key you use is still supported
Bot account and loginExpected to keep the same bot Matrix account and access token approachConfirm the bot's power level in each protected room and whether the access token or device needs re-verification
Ban and policy listsExpected to remain in use as existing policy listsConfirm list subscriptions load and that ban counts match before and after the first sync
Protected roomsExpected to carry over from the room list in the configCheck each room ID, alias and any space membership, then confirm the bot can act in every room
Encryption and device stateNot described as changed in the repository; treat as unverifiedConfirm how the bot handles encrypted rooms and whether its crypto store must be kept or rebuilt
Features beyond MjolnirNot claimed as parity; Draupnir adds its own work over timeReview the Draupnir changelog for any new commands, protections or defaults that change behavior

Documented paths for the config and image switch

The shortest path keeps the existing configuration file and bot account and changes only the container image that runs the bot. Draupnir began as a fork of Mjolnir and is designed to be a forwards and backwards compatible drop-in replacement, so for many deployments the work is pointing the existing config at the Draupnir Docker image. This path suits a team that wants the bot to run Draupnir with the least change to its running state. Because the config file is reused, any keys that differ between the two projects will surface at startup rather than before it, so the first start needs close reading of the logs.

  • Stop the Mjolnir container: Take the bot offline before starting Draupnir so two bots do not act on the same rooms.
  • Swap the image reference: Change the image in your deployment file to the Draupnir Docker image listed in the repository.
  • Reuse the config file: Mount the existing configuration without edits as a first attempt.
  • Reuse the account and access token: Keep the same bot user and token so room permissions and power levels carry over.
  • Read startup logs: Look for rejected or ignored keys before treating the bot as migrated.

Check the Draupnir repository for the exact image name, tag and any config keys that changed before you run this path in production.

Sequence for a parallel run and cutover

This sequence moves protection from Mjolnir to Draupnir with a documented inventory, a staging proof, a controlled overlap period and a clean cutover, so no protected room is left unmoderated and no two bots act on the same room at the same time.

  1. Inventory Mjolnir configuration, rooms and policy lists

    The Matrix administrator who runs Mjolnir copies its configuration file, lists every room it protects (including management rooms and any space-based rooms), and exports each ban list it subscribes to, recording the list room IDs and the bot account's power level in each protected room. The step is done when the team holds a written inventory that another engineer could use to rebuild the setup without access to the original server. Note any local customizations, since a drop-in image swap only carries over what the configuration already expresses.

  2. Stage Draupnir against a copy of the configuration

    The engineer deploys the Draupnir Docker image on a staging host, using a copy of the Mjolnir configuration pointed at a non-production homeserver or a test set of rooms, and confirms the bot logs in with the intended account and loads every policy list from the inventory. Draupnir is designed as a forwards and backwards compatible drop-in replacement, so the change is mainly the image and config path, but the staging run is where any gap shows up. It is done when the bot starts cleanly, reports the same subscribed lists and can apply a test ban in a disposable room that is then reverted.

  3. Run a controlled parallel period

    Before both bots run against the same rooms, the team agrees a single owner for enforcement and sets the other bot to report-only or to watch a separate set of test rooms, because two bots acting on the same protected rooms can produce conflicting bans, redactions and duplicate notices. Once the arrangement is agreed, the team compares each protected room's membership and recent enforcement actions from both bots and checks that Draupnir has loaded every list from the inventory. The step produces a dated comparison record that shows the same rooms and lists are covered.

  4. Cut over by swapping the running bot

    During a quiet window agreed with room administrators, the engineer stops the Mjolnir container so it no longer acts, then starts Draupnir with the same bot account, the same access token source and the same configuration, so the bot keeps its existing power levels in each room. The engineer confirms in each management room that Draupnir responds to its commands and that the subscribed policy lists are active. The step is done when the cutover checklist is signed by the administrator and at least one test action succeeds in a non-production room.

  5. Review protections after the move

    For the first period after cutover, the team reviews Draupnir's logs and the moderation actions taken in protected rooms, confirms that policy list subscriptions still match the inventory and that abuse reports reach the management room, and verifies that the bot account still holds the permissions it needs. The reviewer also checks that no room lost coverage because a list failed to load or a power level changed. The output is a short review note listing each protection confirmed, along with any gap and the owner assigned to close it.

  6. Decommission the old image and secrets

    Once the review note shows full coverage, the engineer removes the Mjolnir container, image and compose or Kubernetes definitions from the host, and rotates or deletes any credentials and secrets that only the old deployment used, including any stored access token that is no longer needed. Shared secrets that Draupnir still uses stay in place, with their location updated in the inventory. The step is done when no running or scheduled Mjolnir process remains, the secret store lists only credentials in use, and the inventory is updated to show Draupnir as the active moderation bot.

Which protections to recheck after the move

Treat the cutover as incomplete until each protection has been checked in the running bot. A drop-in replacement keeps the same configuration shape, but the state that matters lives in the Matrix rooms and the policy lists the bot consumes. Start by confirming that every ban and policy list subscription from the old Mjolnir configuration is still active in Draupnir, and that the list of protected rooms matches what the old setup covered, room for room. Compare the two configurations line by line rather than trusting that the copied file is complete, and record the list of protected rooms and subscribed lists before the switch so you have something to check against.

Next, verify the bot's permissions in every protected room. Draupnir can only apply bans, redactions and other moderation actions where its account holds the power level those actions require, and a room where the bot was demoted or never granted power will look healthy while doing nothing. Check the power levels directly in each room's settings, and confirm the bot account still belongs to the rooms it needs. Then test the reporting path: a report raised by a moderator or a user should reach the moderators you expect, and any automatic action should produce the notice or log entry your team relies on. Use a test room or a disposable test account for this, and confirm the result in the moderators' own view rather than in the bot's logs alone.

Finally, confirm that the bot is not acting where it should not. Review the rooms it now has access to, including any that were added to the account after the original setup, and make sure no unintended room is being moderated under a list that was never meant for it. Ask your team to name the owner of each protected room and each policy list, and to confirm which settings Draupnir inherits from the old deployment and which were set fresh. Where your Synapse deployment has its own admin and moderation tools, check that their actions and the bot's actions do not conflict, and keep the rollback path open until these checks pass.

What makes the Draupnir switch faster or slower

The image swap itself is small, so the effort sits in what surrounds the bot: the rooms it protects, the policy lists it reads, and the people and scripts that depend on it. Work through these drivers before you estimate the move, because each one decides how much checking happens before and after the cutover.

Protected rooms and power levels

Count every room where the bot holds moderation rights and note the power level it needs to redact, kick, ban and change room state. Rooms that were added by hand over several years often have inconsistent power levels, and a bot that lost a permission in one room will fail there silently. Check each room after the move with a test redaction or a dry-run action in a controlled space, and record which rooms are in scope before the cutover window opens.

Size and age of policy lists

Long-lived ban and policy lists contain entries created under older schemas, duplicate rules, and subscriptions to lists that other communities maintain. Review how many lists the bot subscribes to and whether any list has been retired upstream. Because Draupnir is designed to read the same configuration and lists as Mjolnir, the main risk is not a parsing failure but a list that was quietly stale for months before the move.

Custom scripts and integrations

Find every script, cron job, dashboard or webhook that calls the Mjolnir bot's commands, reads its output or edits its configuration file. Integrations that depend on command output or on internal behavior need to be retested against Draupnir, even though the configuration is compatible. Keep a list of these callers with an owner for each, so the post-move check covers them as well as the bot itself.

Container and secrets maturity

A move is simpler when the bot already runs from a container image with its configuration and access token injected from a secrets store. If the current deployment is a hand-built process with the token in a plain file, plan the secrets handling as part of the switch and rotate the token once the new process is running. Confirm which image tag and configuration path the Draupnir repository documents before you pin a version.

Draupnir repository

Moderators who rely on bot reports

Identify which moderators read the bot's reports, the notices it posts to management rooms, and the alerts it sends when it acts. A team that uses the bot daily needs a short notice to confirm that report formats, reaction-based workflows and room names still look as they expect. Agree on who signs off that the team can act on reports after the cutover, and document a fallback process in case the bot is offline during the window.

Testing environment available

A staging homeserver with copies of the bot's rooms, a copy of the policy list configuration, and a disposable test account lets you run the migration without touching live communities. Without a staging environment, the first real test happens in production, and rollback then means reverting a live moderation process. Ask whether a test space can be created on the same homeserver before you schedule the switch.

Questions before moving from Mjolnir to Draupnir

Can we switch from Mjolnir to Draupnir ourselves without a partner?

Yes, for many deployments the swap is a configuration and container change that an in-house team can handle, because Draupnir began as a fork of Mjolnir and is designed to be a forwards and backwards compatible drop-in replacement. The work that decides whether your team can do it alone is the state around the bot: how the bot is deployed, which account it logs in with, how its policy lists are subscribed, and whether your moderation process depends on Mjolnir-specific behavior. Check the Draupnir repository's migration notes for the version you plan to run before you schedule the change, and confirm that your container tooling can pull and run the Draupnir image.

What drives the effort of moving from Mjolnir to Draupnir?

The main drivers are how many places the bot is configured, how many policy lists it imports, and how much your team has customized its behavior. A single bot in a single container with one config file is a small change, while a setup with several protected rooms, multiple subscribed lists, custom automation around the bot, or a separate test environment adds review steps. Your Synapse version, your media and admin API use, and your change-control rules also matter, since each one adds testing and sign-off before cutover.

What does the team need to provide for the migration?

The team needs someone who owns the bot's account and its Synapse admin permissions, someone who can edit the deployment configuration and image reference, and someone who can read the moderation logs after the change. Moderators should also confirm which rooms and lists the bot covers, so the post-move review has a clear baseline. Plan for access to a test homeserver or staging room where the new container can run before it touches live rooms.

How long does a Mjolnir to Draupnir migration take?

The elapsed time depends on how fast you can complete a test run, review results with moderators, and schedule the cutover, so it is usually driven by approvals and testing rather than by the image swap itself. Ask for the timeline your team would need in its own environment, and confirm whether any step requires a change window. This page does not give a duration because the answer depends on your configuration, your review process, and the state of your test environment.

Should we run Mjolnir and Draupnir in parallel during the move?

Running both bots against the same rooms at the same time is usually a poor idea, because two moderation bots can act on the same events, duplicate notices, or fight over ban and redaction decisions. A safer pattern is to test Draupnir in a staging homeserver or a non-production room, then stop Mjolnir and start Draupnir in a planned window with a rollback plan ready. If you need a longer overlap, define which bot owns which rooms and confirm in the Draupnir documentation how it handles policy lists already applied by Mjolnir.

What should we confirm in the Draupnir repository before cutover?

Confirm the image tag you plan to deploy, the configuration keys your current Mjolnir config uses, and any changes listed in the release notes since the fork. Check that the policy list subscriptions you rely on still work, that the bot's required homeserver permissions match what you grant today, and that encryption or verification behavior matches your rooms. Record each check so the team can repeat it on the next upgrade, and review the project's Draupnir repository for current instructions rather than relying on older Mjolnir documentation.

When is it worth bringing in a partner for the move?

A partner is worth considering when the moderation bot sits inside a larger compliance or governance process, such as audit logging requirements, change control for regulated systems, or a multi-server estate where each deployment has different rules. It also helps when your team lacks time to test the new image against real policy lists and moderator workflows. A partner would work from a written scope that lists the systems, the tests, the deliverables and the post-move review, and the quote follows from that scope.

How the cutover phases fit together

The flow starts with an inventory of the Mjolnir configuration and policy lists, which carry over to Draupnir because it is designed as a drop-in replacement. A staging run comes first, then a parallel check against Mjolnir before the same bot account is pointed at the Draupnir image. The post-cutover protection checks decide whether Mjolnir is decommissioned or restored. Keep the Mjolnir image available until those checks pass, since the rollback branch depends on it.

Phases from inventory to decommission, with the rollback path back to Mjolnir.

When an outside team helps with the moderation move

An outside team is worth considering when the moderation setup is larger or more tangled than a single bot with a config file. The clearest cases are a shared moderation setup that covers many rooms or spaces across several communities, custom tooling that calls into Mjolnir or reads its data stores, and a requirement to show an assessor how moderation controls are configured, tested and changed. In each case the cost of a slip rises, because one wrong ban list or a broken protection can affect every room the bot manages. Teams without a staging Matrix environment also benefit, since the migration cannot be rehearsed safely on production rooms. Ask any partner to name the rooms, bot accounts, policy lists and custom scripts in scope before quoting, and to say whether they will test the move against a copy of your data.

Whoever does the work, the team should prepare the same inventory first. List every Draupnir or Mjolnir instance, its Docker image tag, its configuration file, the bot account and its power level in each managed room, and every policy list it subscribes to or publishes. Record which protections are enabled, including any custom rules and any integrations that send commands to the bot. Export or snapshot the bot's storage so a rollback is possible. Confirm with your Matrix administrators which settings in the config file differ from the defaults, because those are the settings a reviewer will ask about after the switch. Schedule the cutover at a time when moderators can watch the bot's output and respond to missed reports.

Finally, decide who signs off on the result before the work starts. Name a moderation owner who will check the policy list counts, sample recent ban and redaction actions, and confirm that reports still reach the moderators who handle them. Agree on how the reviewer will see evidence, such as the change record, the before and after configuration and the test results. Whether the work is done internally or by a partner, the outcome should be a written record that another engineer can follow without asking the original team what they meant.

How DeployOpen runs a moderation bot migration

DeployOpen plans and carries out the move from Mjolnir to Draupnir inside the infrastructure you control, starting with a written scope that names your Matrix homeserver, bot account, rooms and policy lists. The work is handled as a fixed-scope engagement, with each change reviewed and documented before handover.

How we scope

  • We inventory the current Mjolnir deployment, its config file, bot account, managed rooms and subscribed policy lists before work starts.
  • The written scope lists which rooms, policy lists and protections Draupnir must cover after cutover, and which are out of scope.
  • We agree in writing how the move is tested, who approves the cutover window and what evidence the handover will contain.

How we build

  • We stage Draupnir in a non-production room set against a copy of your configuration, using the Draupnir Docker image in place of Mjolnir.
  • We confirm that existing policy lists load and that ban and redaction actions behave as they did under Mjolnir before any live switch.
  • We review the protections that matter after the move, such as room permissions, admin access and the bot's own account settings, and record each decision.

How we hand over

  • You receive the updated configuration, the container image reference used, and a runbook for starting, stopping and rolling back the bot.
  • The handover documents each policy list source, the protections reviewed, and the test results from the staging run.
  • We walk your administrators through daily moderation tasks so your team can run Draupnir without relying on our staff.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, including tracking future Draupnir releases.
  • We can retest moderation settings after changes to your homeserver, such as a Synapse upgrade or a new federation policy.
  • Support scope and response arrangements are set out in the written agreement, and you confirm them with us before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.