The Users screen gets a strip of totals (people, active in 30 days, admins, new, rooms, media, bridged accounts) and a list with an activity dot and how long ago each person was seen. The selected person opens into a card: last seen, joined, sessions, rooms, media, email, picture, flags (admin, deactivated, locked, shadow-banned) and their actions as chips. On a wide terminal the card sits beside the list. The admin script now counts rooms and devices for each person (up to 300), reads per-user media statistics and the server's room total, and matches accounts against the appservice registrations in homeserver.yaml, so bridge puppets and bots fold into a group per bridge. New keys: / search, f filter (admins, active, inactive, deactivated), o sort (last seen, name, joined, media), s sign out everywhere (MAS: kill-sessions; otherwise every device but interzone's own is removed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
interzone
for autisaman
ok so this thing exists bc of u which is honestly the most useful thing uve done since u started a telegram channel to post rimbaud quotes for people a decade younger than u. pushing 30 btw. we know
every mirror every bridge every stupid little button u can click now. its the first link of yours anyone will ever actually click. nobody clicked the spotify ones. we all saw the new feature. we know u know
with love
not that much of it
working mirrors
green checkmarks
deploys that dont fail at 4am which is when u'd be awake anyway
for youanyway everything cool in this repo was me and everything cringe was because of you. hope that clears things up دمت گرم </3
A friendly terminal wizard for matrix-docker-ansible-deploy (MDAD). Pick a homeserver, tick the bridges, bots and services you want, and interzone writes the inventory and runs the playbook for you, with a live progress view.
It is built to keep working during a country-wide internet blackout: every download can come from mirrors inside the country.
Screenshots
On a phone (Termux or any narrow terminal) the compact layout drops the sidebar and puts thumb-sized buttons along the bottom, so nothing needs ctrl or esc.
Community
Need help, found a bug, or just like the project? Join the Matrix space #interzone:foid.ir.
Features
-
Any homeserver: Synapse, Continuwuity, Tuwunel, Conduit or Dendrite. Synapse-only components are greyed out for the others.
-
Everything MDAD offers: 82 components across clients, auth, storage, bridges, bots, monitoring, backups and calls, with search (
/). Required settings are asked for; secrets are generated. -
MAS with Synapse: a new Synapse server gets the Matrix Authentication Service (OAuth 2.0/OIDC logins, which Element X needs), in the presets too. Untick it on Components to keep Synapse's own logins. Servers that are already installed keep what they have, since moving existing accounts to MAS is a migration of its own.
-
Presets to start from on the Homeserver step: Minimal chat (Synapse, MAS, Element), Friends & family (adds Element Call, Ketesa and database dumps), Bridge hub (Telegram, WhatsApp, Signal and Discord with double puppeting and encryption), Public community (MAS sign-up, Element and Cinny, Draupnir, antispam, monitoring) and Lightweight (Tuwunel and Cinny). Picking one sets the homeserver and ticks exactly its components; settings you already typed in are kept.
sthere orpon Components saves the current homeserver and components as your own preset (no settings or secrets), and saving under an existing name changes that preset;ddeletes one of yours or puts a built-in one back. Your presets live in~/.config/interzone/presets.json, shared by all your servers. -
Blackout-ready. Each source can be redirected:
What Default How it's used Playbook git https://itsjustadream.g0th.ir/spantaleev/matrix-docker-ansible-deploygit clone/git pullAnsible roles git https://itsjustadream.g0th.ir/github.comURLs inrequirements.ymlare rewritten with gitinsteadOf, so the playbook stays unmodifiedContainer images mechatok.g0th.ir/matrix_container_global_registry_prefix_override(every image, from every registry)Docker Engine packages https://infamous.g0th.ir/docker(blackout mode)docker_repo_url; on RHEL-family servers interzone writesdocker-ce.repoitself, since Docker's own file always names download.docker.comOS packages https://infamous.g0th.ir(blackout mode)The server's APT, dnf or pacman sources are pointed at the mirror before install (with backups), for each repository the mirror actually carries PyPI https://infamous.g0th.ir/pypi/simple(blackout mode)Installs Ansible into a private venv if it's missing ctrl+ton the Server screen tests every source. Mirrors are checked for content, not just reachability: OS mirrors must have security or update indexes less than two weeks old (a month for AlmaLinux, Rocky and CentOS Stream), Docker mirrors their repository indexes, and PyPI mirrors must listansible-core.Distros in blackout mode. Interzone reads the server's distro and release and checks that the chosen mirrors carry them before deploying. The OS package step handles each family the playbook supports:
The defaults point at infamous.g0th.ir, an interzone-mirror that carries what interzone and the playbook install on Debian, Ubuntu (x86 and ARM), Raspberry Pi OS and Arch. On RHEL-family and Fedora servers, choose one of the public mirrors below instead.
Server OS packages Docker In-country mirror? Debian /debian,/debian-securityfrom the Docker mirror ✓ Ubuntu (x86) /ubuntufrom the Docker mirror ✓ Ubuntu (ARM) /ubuntu-portsfrom the Docker mirror interzone-mirror only Raspberry Pi OS 32-bit /raspbianfrom the Docker mirror interzone-mirror only AlmaLinux /almalinux,/epelcentoson the Docker mirror✓ Rocky Linux /rocky,/epelcentoson the Docker mirrornone known for Rocky; EPEL ✓ CentOS Stream /centos-stream,/epelcentoson the Docker mirrornone known for CentOS; EPEL ✓ Fedora /fedora/linuxfedoraon the Docker mirrornone known Arch Linux /archlinux(first in pacman's mirror list)from Arch's own repositories ✓ RHEL can't be mirrored (Red Hat's CDN) rhelon the Docker mirror– Repositories the mirror doesn't carry keep their original sources and are reported as warnings; on dnf, unreachable repositories are skipped instead of failing the run.
Known mirrors in Iran (all checked October 2026);
interzone mirrorsre-tests them:What Mirror Carries All three infamous.g0th.ir (default), /docker,/pypi/simpleUbuntu, Ubuntu ARM, Debian, Raspbian, Arch; Docker for Debian, Ubuntu, Raspbian OS packages mirror.hostbaran.com Ubuntu, Debian, AlmaLinux, EPEL, Arch repo.abrha.net Ubuntu, Debian, AlmaLinux, EPEL mirror.arvancloud.ir Ubuntu, Debian, Arch mirror.iranserver.com Ubuntu, Debian, AlmaLinux mirror.mobinhost.com Ubuntu, Debian, EPEL, Arch mirror.famaserver.com Ubuntu, AlmaLinux, EPEL, Arch Docker Engine mirror.cdn.ir/repository/docker/linux Debian, Ubuntu, Raspbian, CentOS/Alma/Rocky, RHEL, Fedora repo.abrha.net/docker Debian, Ubuntu PyPI package-mirror.liara.ir/repository/pypi/simple, pypi.iranserver.com/repository/pypi/simple, mirror-pypi.runflare.com/simple, mirror.abrha.net/repository/pypi/simple, mirror2.chabokan.net/pypi/simple Tests:
# every known mirror still carries what it should INTERZONE_MIRROR_TESTS=1 go test ./internal/deploy -run KnownMirrors -v # the OS package step against Debian, Ubuntu, AlmaLinux 9/10, Rocky, # CentOS Stream, Fedora and Arch containers (needs Docker and Ansible) INTERZONE_CONTAINER_TESTS=1 go test ./internal/deploy -run PlayContainers -v -timeout 30m -
Checks before it touches anything. The Review screen logs into the server and checks root access, OS, CPU, Python, memory, disk and ports 80/443/8448, then resolves every DNS record the setup needs and compares it with the server's addresses. Once you've deployed, it shows what changes in
vars.ymlsince the last successful deploy (xswitches to the whole file). -
Checks after deploying. The playbook's self-check runs at the end and lists which services answer and which don't.
-
Checks images before installing. The install asks the playbook which container images the enabled services use and checks each one in its registry (or your mirror) for the server's CPU, so a missing image is reported up front instead of halfway through.
-
Mirrors: its own section of the menu checks that everything a deploy downloads is there: the playbook and every role it pins, at that version, on the roles mirror; the registry and package mirrors in use and every known mirror; and each container image the enabled services use, for the server's architecture (once it's installed).
mon Welcome opens it. -
Manage an existing server: update, run the self-check, restart, add users (Synapse/Dendrite), close registration (Conduit, Continuwuity, Tuwunel), back up the Postgres database to this computer, and follow any service's log live. Every action has a one-letter shortcut on Manage (
uupdate,rrestart,ddashboard,llogs,bback up …); the ones that change the server right away want the letter twice. Also:- Update preview: the new playbook commits and the component versions they change, before installing anything.
- Rollback: every successful install records its playbook commit and answers (the last 10). Rolling back backs up the database, checks that commit out and reinstalls; the playbook stays held there until the next update.
- Restore any database dump on this computer: services stop, the current database is dumped first, then replaced.
- Scheduled backups: a systemd timer on the server dumps the database
by itself (
/matrix/interzone-backups, keeping the newest N); download them for Restore. - Users (Synapse): totals at the top (people, active in the last
30 days, admins, new, rooms, media), then everyone with how recently
they were seen; the one selected opens into a card with when they
joined, their sessions, rooms, uploaded media, email and picture.
Bridges' puppets and bots are folded into a group per bridge.
/searches,ffilters (admins, active, inactive, deactivated) andosorts (last seen, name, joined, media). Reset passwords, grant or remove admin rights, sign someone out everywhere, deactivate and reactivate, through the admin API from inside the Synapse container. Nothing needs to be exposed publicly. With MAS (Matrix Authentication Service), accounts are changed withmas-cliin its container instead, and signing in needs only the admin's username: MAS issues the session. - Dashboard: tiles for CPU, memory, disk and containers; the OS, kernel, Docker version and uptime; load, swap, every disk and the backup timer; the containers using the most; certificate expiry for every hostname; and each container's state, health check, restarts, CPU, memory and network traffic. Wide terminals get the cards side by side, the compact layout stacks them. The Dashboard, Users and the logs' service list open with what they showed last time and refresh in the background.
- Health in the header: once a server is installed, a dot says
whether
matrix.<domain>answers over HTTPS from this computer and how many days its certificate has left, checked every minute (INTERZONE_HEALTH=offturns it off). - Fine-tune: every variable of every playbook role, the playbook's
own and the ones installed from
requirements.yml(about 100 roles and 8,600 settings), with its documentation, the role's default, the value the playbook'sgroup_varssets instead, and yours. The roles in your setup are listed first, and/searches every role at once. Changes are written intovars.ymland applied on the next update. - Move to another server: stops and disables the old server,
streams
/matrixto the new one through this computer, then installs there (following the playbook's migration guide). - Several servers: each has its own answers and playbook copy;
switch on the Servers screen (in the menu, or
son Welcome) or withinterzone servers use NAME. - Take over a server set up by hand: if you installed
matrix-docker-ansible-deploy yourself,
ion Welcome or the Servers screen (orinterzone import PATH) reads itsvars.ymlandinventory/hostsand keeps every setting and secret: variables interzone has no question for are carried over as you wrote them, comments included, and ones interzone would add are held at the playbook's defaults. Your files are only read; interzone works on a copy of the playbook and keeps the originalvars.ymlto compare with, so the first Review lists each variable that would change. - Self-update from the newest release, checked against its
SHA256SUMS.
-
Fully offline installs with
interzone bundle(see below). -
Certificates that work offline: Let's Encrypt, a generated self-signed wildcard certificate, your own certificate, or no HTTPS.
-
Install locally or over SSH.
-
Remembers your answers in
~/.config/interzone/config.json(mode0600; other servers inservers/NAME.json). Re-run interzone to change anything.
Build
make # static binary ./interzone
To build without internet, run go mod vendor while you still have access
and build with go build -mod=vendor. The resulting binary is static and has
no runtime dependencies besides git, ssh and Ansible (which interzone can
install itself from a PyPI mirror).
go test ./... includes layout tests that draw the main screens at phone
(46×40) and desktop (120×36) size and compare them with
internal/ui/testdata/layout; after an intended change, accept the new
drawings with go test ./internal/ui -run Layout -update. The README's
screenshots are retaken with scripts/screenshots/shots.sh (tmux, Python
with Pillow).
Use
./interzone # start the wizard (or Manage, once installed; esc there leads to Welcome)
./interzone --reset # forget saved answers
./interzone -no-mouse # leave the mouse to the terminal
./interzone -layout compact # phone layout, whatever the size (or wide, or auto)
./interzone -theme nord # colours for one run (ctrl+y switches and remembers them)
The wizard has four steps before the deploy: Server (where it runs, where downloads come from, HTTPS certificates, networking), Homeserver (a preset, or only the homeserver), Components (pick them, then fill in what they need on the second page) and Review.
The menu on the left shows where you are: the setup steps, the Manage
screens (with the action running, if any), the mirror checks and your
servers. Each section folds on its own: click its heading to open or
close just that one, and going to a screen opens its section without
closing the others; interzone remembers which are open. ctrl+b folds the
whole menu to a rail of icons, and terminals narrower than 100 columns
always get the rail.
On a phone (Termux, or any narrow or portrait terminal) interzone switches
to a compact layout: a one-line header saying where you are, no sidebar or
borders, and lists without their side columns. Instead of key hints there's
a bar of buttons at the bottom: ‹ back, ≡ menu (or ctrl+b, a grid of
tiles to tap that scrolls with a swipe), the
screen's main action (next ›, run ›…) and ⋯, which lists every
other key of the screen and the global ones (save, layout, theme, quit) as
rows to tap. When the screen gets short, as when the on-screen keyboard is
up, descriptions shrink to one line and forms show only the field you're
typing in, with a one-line summary of each of the others. ctrl+l, or ◫
at the bottom of the menu, cycles auto, compact and wide and remembers the
choice; -layout picks one for a single run.
ctrl+y, or ◐ under it, switches the colours between interzone,
Catppuccin, Nord, Gruvbox, Dracula, Solarized and mono; each has a light
and a dark variant that follows the terminal's background.
| Key | Action |
|---|---|
enter / ↑↓ / tab |
move through fields |
←→ / space |
choose / toggle |
ctrl+n / ctrl+p |
next / previous step |
ctrl+r |
reveal secrets |
ctrl+s |
save answers |
ctrl+b |
fold or unfold the menu on the left (compact layout: open the menu, like ≡ menu) |
ctrl+l |
next layout: auto, compact, wide |
ctrl+y |
next theme |
esc |
back |
Everything also works with the mouse: click a menu entry, a field, an option,
a checkbox or a key in the bar at the bottom. A click or tap anywhere on a
list row opens it; Manage actions that change the server right away (update,
restart, check, back up …) ask for a second click first. The wheel scrolls.
While interzone has the mouse, hold shift to select text in most terminals, or start it with
-no-mouse.
Anything that asks before acting (rolling back, restoring, deactivating a user) is confirmed by pressing the same key, or clicking the same row, again; moving away cancels. After a quick action from Manage (update, check, restart, image check, scheduled backups) succeeds, interzone returns to Manage by itself a few seconds later; press any key to stay on the result.
On the Review screen, enter deploys and s only writes the files and prints
the ansible-playbook command to run later.
Without the wizard
interzone apply # deploy with saved answers; runs the checks first
interzone apply --save-only # only write the inventory
interzone apply --config answers.json --force --quiet
interzone check # test mirrors, the server and DNS
interzone mirrors # test every known in-country mirror and what it carries
interzone apply --latest # update a playbook held back by a rollback
interzone changes # what an update would bring
interzone images # can every container image be pulled?
interzone status # load, disks, certificates, containers
interzone restore # list backups; 'restore FILE' restores one
interzone rollback --list # recorded deploys; 'rollback N' goes back to one
interzone servers # saved servers; 'servers use NAME', 'servers rm NAME'
interzone import PATH # take over a playbook set up by hand (-name, -dry-run)
interzone self-update # install the newest release
INTERZONE_SERVER=work interzone apply # any command, for another saved server
apply exits non-zero if a check fails (unless --force), if the run
fails, or if the self-check finds a problem. Answers files are the
config.json the wizard writes; missing secrets are generated and saved
back into the file.
Offline bundle
For a machine with no internet at all, make a bundle somewhere that has it:
interzone bundle -o interzone-bundle.tar.gz
It holds the playbook with every Ansible role already installed, the Python packages for Ansible (built for the bundling machine's OS, CPU and Python version), and the interzone binary. Copy it over, then:
tar xzf interzone-bundle.tar.gz
./interzone-bundle/interzone unbundle interzone-bundle
./interzone-bundle/interzone
Deploys then use the bundled playbook and roles when the git mirror is unreachable, and install Ansible from the bundled packages. Container images are not included: point interzone at a registry mirror inside your network.
Files:
- playbook:
~/.local/share/interzone/matrix-docker-ansible-deploy - generated inventory:
<playbook>/inventory/ - last deployment log:
~/.config/interzone/last-deploy.log - self-signed certificates:
~/.config/interzone/ssl/<domain>/ - database backups:
~/.local/share/interzone/backups/ - deploy history for rollback:
~/.config/interzone/history/<server>/ - other servers: answers in
~/.config/interzone/servers/, playbooks in~/.local/share/interzone/servers/<name>/







