Docs / Reference
mirror engine
The engine: the Linux VM every world runs in.
Its commands: setup, preflight, status, start, stop, destroy, clean, check, network, company-network, export, import, fetch, update, shell.
mirror engine <command>
mirror engine setup
Create or update the engine. Safe to run again.
mirror engine setup [options]
| Option | Takes | What it does |
|---|---|---|
--cpus |
number | CPUs for the engine VM. |
--memory |
number | Memory in GB. |
--disk |
number | Disk in GB. |
--driver |
text | lima, wsl or host (Linux only). |
--experimental, --no-experimental |
nothing (a switch) | Allow the experimental Windows driver. |
--microvm, --no-microvm |
nothing (a switch) | Also install the Firecracker microVM runtime (Apple M3+ or nested KVM). |
mirror engine preflight
Check that this computer can hold an engine: virtual machines, disk, memory, Rosetta, a company network client. Changes nothing.
mirror engine preflight [options]
| Option | Takes | What it does |
|---|---|---|
--driver |
text | lima, wsl or host (Linux only). |
mirror engine status
Driver, state, architecture, boundary, versions, resources and clock offset.
mirror engine status
mirror engine start
Start the engine.
mirror engine start
mirror engine stop
Stop the engine.
mirror engine stop
mirror engine destroy
Remove the engine and every world's containers, volumes and snapshots.
mirror engine destroy [options]
| Option | Takes | What it does |
|---|---|---|
--yes |
nothing (a switch) | Do not ask for confirmation. |
mirror engine clean
Remove the images the engine holds that nothing needs: those of removed agents and of worlds that are gone. Run it in a world's folder to keep that world's own images. The images every world runs on are always kept, so nothing is downloaded again.
mirror engine clean [options]
| Option | Takes | What it does |
|---|---|---|
--yes |
nothing (a switch) | Do not ask for confirmation. |
mirror engine check
Check the engine from the outside: its own kernel, private endpoint, no host access, egress.
mirror engine check
mirror engine network
Check that this network lets setup download what it needs: proxies, replaced certificates, blocked hosts.
mirror engine network
mirror engine company-network
Let setup and model calls pass a company network: trust its root certificate, leave through its proxy. With no option, show the setting.
mirror engine company-network [options]
| Option | Takes | What it does |
|---|---|---|
--ca-file |
path | Your company's root certificate (PEM). Used only if this computer already trusts it. |
--proxy |
text | Your company's proxy, as host:port. |
--detect |
nothing (a switch) | Find your company's root in this computer's trust store, from how this network signs. |
--host |
text | With --detect: the host to look at (default github.com). Give your model's host to find the root a company service of its own is signed by. |
--off |
nothing (a switch) | Go back to calling the model directly. |
--yes |
nothing (a switch) | Do not ask for confirmation. |
mirror engine export
Write a cleaned copy of this engine to a file, to import on another of your computers. Worlds, runs and agent images are left out. macOS only for now.
mirror engine export <file>
| Argument | Needed | What it is |
|---|---|---|
file |
Yes | The file to write, for example engine.mdx |
mirror engine import
Make this computer's engine from an export, downloading nothing. Import only a file you or your own team made.
mirror engine import <file> [options]
| Argument | Needed | What it is |
|---|---|---|
file |
Yes | A file written by mirror engine export. |
| Option | Takes | What it does |
|---|---|---|
--cpus |
number | CPUs for the engine VM. |
--memory |
number | Memory in GB. |
--disk |
number | Disk in GB. |
--sha256 |
text | The checksum the export printed. The import stops if it differs. |
--yes |
nothing (a switch) | Do not ask for confirmation. |
mirror engine fetch
Download everything the engine and a first world need, in one go: for doing once on a network that allows it.
mirror engine fetch
mirror engine update
Install the engine's package updates now. It never installs them by itself; run this with the sandbox down (mirror down). The next runs record the new kernel.
mirror engine update [options]
| Option | Takes | What it does |
|---|---|---|
--restart |
nothing (a switch) | Restart the engine if the update needs it (a new kernel). |
mirror engine shell
Open a shell in the engine, for debugging the mirror itself.
mirror engine shell
This page is written from the program itself when the site is built.