Rex Mundi
A geopolitical sandbox, playable with your favorite coding agent.
Watch it now
The whole demo is four and a half minutes and 38 MB, better saved for Wi-Fi. A game someone shared plays at the watch page, on a computer for now: most phones cannot draw its map yet.
Play it on your computer
The game runs on Windows, macOS and Linux, and in a computer's browser, not on a phone. Send yourself the link and open it on the computer: it leads to the game in the browser, and to the download.
Or type rexmundi.alexisbouchez.com/play into its browser. The downloads are below, for later.
Join the Discord serverSource on GitHub
Demo
Someone sent you a game? Watch a shared game in the browser, with nothing installed. Saw a clip of one? Play a game of your own, in the browser or from the download.
Download the game
Pick your system:
- Windows, 64-bit installer, 74 MB
- macOS, Apple silicon and Intel, from a terminal
- Linux, x64, Intel and AMD AppImage, 93 MB
- Linux, ARM, ARM AppImage, 93 MB
It runs on 64-bit Windows, on macOS 11 or later, and on a Linux with glibc 2.35 or later, such as Ubuntu 22.04 or Debian 12. Windows warns about the installer, and Linux wants the AppImage made executable: what to do when the game will not start.
Version 0.2.1, released 21 October 2026. Checksums for every file
Or install it by hand
On macOS, fetch the archive with curl, which leaves macOS nothing to refuse, and move the app into Applications:
curl -fLO https://github.com/alexisbcz/rexmundi/releases/latest/download/rexmundi-macos.tar.gz tar -xzf rexmundi-macos.tar.gz mv rexmundi-[0-9]*/"Rex Mundi.app" /Applications/
On Linux, unpack it into a folder the game can update itself in, and add it to the application menu. On ARM, the archive is rexmundi-linux-arm64.tar.gz:
curl -fLO https://github.com/alexisbcz/rexmundi/releases/latest/download/rexmundi-linux-x64.tar.gz tar -xzf rexmundi-linux-x64.tar.gz mv rexmundi-[0-9]*/ ~/.local/share/rexmundi ~/.local/share/rexmundi/install.sh
On Windows, unzip rexmundi-windows-x64.zip into any folder you can write to, and open rexmundi.exe.
Or build it from source
Rex Mundi is open source, under the MIT License, and written in Odin. The README has the five commands that fetch the map data, bake it and build the game.
With your agent
Your coding agent can install the game by hand, start it and sign itself up as game master. Paste it this prompt:
Install Rex Mundi on this machine and run it, then be my game master.
1. Install it by hand from the latest release at https://github.com/alexisbcz/rexmundi/releases/latest, following the Installation section of https://github.com/alexisbcz/rexmundi#installation. On macOS, download the archive with curl, not a browser, so Gatekeeper has no quarantine flag to refuse, and move Rex Mundi.app into Applications. On Linux, unpack the archive into ~/.local/share/rexmundi and run the install.sh in it. On Windows, unzip rexmundi-windows-x64.zip into a folder I can write to.
2. Start the game, so I get its window.
3. Make yourself its game master: open the menu with Escape, then Settings, and pick yourself under Game master if you are Claude Code, Codex, OpenCode, Mistral Vibe or Pi. Nothing else needs setting up: Play turn runs you from your shell with the rexmundi-agent command, which ships beside the game. If you are another agent, put your own command in settings.json with {prompt} where the prompt goes, and run `rexmundi-agent guide` to see what you will be asked to do.
4. Tell me how to start a game in the window and how to send you a turn.
Fix whatever fails along the way; ask me only about what you cannot decide yourself.As a plain archive
- Windows, 64-bit (.zip)
- Linux, x64 (.tar.gz)
- Linux, ARM (.tar.gz)
- macOS (Intel and Silicon) (.tar.gz), not signed by Apple
A folder you can move anywhere, as long as what is in it stays together. The game updates itself either way.
Or play in your browser
Nothing to install: a solo game, against the game master built into Rex Mundi.
Play in your browser