Read this in 日本語.
Save the current state of the world as a commit and check out any of them quickly.
Chunk-level deduplicated version control for Minecraft Java region files (.mca).
Commits share identical chunk payloads via content-addressed storage, and
checkout rebuilds region files from the commit's captured payloads,
verbatim and atomically (volatile tags such as LastUpdate are rewound
to their capture-time values).
Prebuilt binaries are attached to each
GitHub Release
(sekai-<target triple>.tar.gz). Alternatively, with a Rust toolchain
installed:
cargo install --git https://github.com/tmcjapan/sekai
The installed binary is named sekai.
# Create the store (once, before any other command)
sekai init
# Record the current world state (pause the server first:
# `save-off`, `save-all`, then `save-on` afterwards)
sekai commit ./world
# Preview what a commit would record, without writing anything
sekai status ./world
# List commits
sekai log
# Rebuild the world from a known commit (overwrites region files)
sekai checkout ./world 2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a
# Restore one area from HEAD (or --source <rev>), like git restore:
# only the selection is touched, nothing is recorded, no ref moves
sekai restore ./world --in overworld:-8,-8..7,7
# Compare chunk NBT between two commits (hashes from `log`)
sekai diff 1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b 2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a --in overworld:0,0
# Save an area once, then select it by name
sekai scope create spawn --in overworld:-8,-8..7,7
sekai commit ./world --scope spawn
# Reclaim space: wipe the rebuildable region-image cache (behavior unchanged)
sekai cache clean--store names the store directory (init creates it; every other
command fails on a missing store) and defaults to .sekai when omitted.
Every command accepts --json for a single-document machine-readable
report, and every command except log, init, and cache accepts
--timing
for a per-phase breakdown (combine both for timed JSON). commit,
status, checkout, restore, and diff also take
--progress for a stderr progress bar (refused with --json).
Commit, status, checkout, diff, and restore
accept a scope: repeatable --in DIM[:x,z|x0,z0..x1,z1],
--region DIM:RX,RZ, and repeatable --kind (empty means all);
nothing selected means the whole world. --scope NAME selects an area
saved with scope create instead. Restore is the exception: like git
restore's pathspec, it requires a selection (--in, --region, or
--scope). See docs/json.md for the
output contract.
Note
If you want to make a full secondary backup of all your commits and storage,
sekai never touches the server process; save coordination belongs to the
caller.
Pass your server root (for Bukkit-family servers like Spigot, Paper, or Purpur)
or a single world directory (for Vanilla). Sekai automatically detects
Vanilla layouts (region/, DIM-1/, DIM1/, dimensions/minecraft/...),
pre-26.1 split Bukkit layouts, and custom plugin world folders.
See ARCHITECTURE.md for the design, CONTRIBUTING.md for development
guidelines, and the user guide
(English,
日本語) for operations.
Machine-readable output is specified in docs/json.md.