mirai puts KataGo's reading on a board that feels at home on Linux. Every candidate move tells you at a glance how much it loses and how far to trust that number; a win-rate graph marks each blunder of a game; a move tree keeps every variation you try. Play the engine at any strength, or pull a game from Fox and replay it with KataGo beside you.
The engine does not have to be on the same computer. Run mirai-server on the machine with
the GPU, and a laptop with none analyses just as well.
- Readable analysis. Each candidate shows win rate, score lead and visits. Its colour is what it loses against the engine's pick, from cyan through green and yellow to red; how solid it is says how much search stands behind it. Hover one to see its variation played out on the board, without touching the record.
- Whole-game review. One key sweeps the main line. The win-rate and score-lead curves fill in, a strip under the graph marks every mistake from the side that made it, and a Blunders list jumps straight to the move.
- Ownership and policy overlays show who KataGo expects to own each point, and where the raw network wanted to play before any search.
- A real SGF editor. Variations, setup stones, marks, labels and comments, with undo and redo. Multi-game collections open; properties mirai does not draw are kept, so other programs' files survive a round trip.
- Play against KataGo by visits, by time per move, or at a human-like rank with a human SL network. Boards from 2×2 to 19×19, handicap, nine rulesets, absolute, byo-yomi or Fischer clocks. After two passes KataGo marks the dead stones, and a click fixes any group it misjudged. Or play both sides yourself, with no engine at all.
- Fox records. Look up a Fox Go player by nickname or UID and open any of their latest public games.
- A remote engine that stays private.
mirai-servershares one or more KataGo instances with every client on your network over QUIC. Clients authenticate with a token and pin the server's certificate the first time they connect. - Native and quick. GTK 4 and libadwaita, light and dark styles, a board drawn by GTK's GPU renderer. Several windows share one KataGo, and autosave brings your record back after a crash.
- In your language. English and Simplified Chinese so far; translations are welcome.
- The current stable Rust (edition 2024), which
rust-toolchain.tomlselects. No older compiler is supported. - GTK 4.22+, libadwaita 1.9+, and Blueprint Compiler 0.22+ with their development packages.
- GNU gettext, for the translations.
just, to install.- A KataGo binary and network model (JSON analysis mode, not GTP). mirai does not download KataGo.
- For stone sounds, GStreamer's good plugins (
gst-plugins-goodon Arch,gstreamer1.0-plugins-goodon Debian/Ubuntu), which GTK plays audio through. Without them mirai runs silently.
On Arch: pacman -S gtk4 libadwaita blueprint-compiler gettext just. On Debian/Ubuntu,
install libgtk-4-dev, libadwaita-1-dev, blueprint-compiler, gettext and just; on
Fedora, gtk4-devel, libadwaita-devel, blueprint-compiler, gettext and just. Check
the versions: a distribution release older than GNOME 50 ships a GTK and libadwaita too old
to build mirai.
just build
sudo just install # both; or `just install mirai` / `just install mirai-server`
sudo just uninstall # likewise
This installs mirai, mirai-server, the desktop entry, metainfo, icons and translations
under /usr/local; just prefix=$HOME/.local install needs no root. On Arch, the PKGBUILD in
packaging/aur/ builds mirai-git and mirai-server-git instead (not
published yet). tools/packaging/makepkg-local.sh builds it from this checkout's last
commit rather than from GitHub; add -d when cargo comes from rustup, then
sudo pacman -U target/archpkg/*.pkg.tar.zst.
cargo run -p mirai
cargo run -p mirai -- game.sgf
If KataGo and a model are found, mirai starts analysing right away; otherwise add them in Preferences. Open a record and press Space for live analysis, Ctrl+A to analyse the whole game. The user guide covers setup and first-run behaviour.
mirai follows your desktop language. To try another, start it with LANGUAGE, for example
LANGUAGE=zh_CN mirai.
On the machine with the GPU:
mirai-server --generate-token
mirai-server --config server.toml
For the token, UDP port, server configuration and certificate verification, see the remote-engine guide.
mirai is young and moving quickly, and there are no releases yet: build it from this
repository. Bugs, rough edges and ideas are all welcome as
issues. Tell us what you were doing, what you
expected and what happened instead; for an engine problem, the newest file in
~/.local/share/mirai/katago-logs/ usually says why.
- Users: docs/user/GUIDE.md — first run, the window, analysis, Fox, playing, remote engines, settings and keys.
- Translators: docs/dev/TRANSLATING.md.
- Contributors and agents: AGENTS.md.
GNU General Public License, version 3 or later (LICENSE).
mirai is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
