Docs
Windows 11 (experimental)
The same steps on Windows 11, with its own engine.
Experimental. The Windows engine is written against WSL's documented commands and unit-tested, but it has not yet run on a Windows machine. It stays experimental until every item in windows-verification.md has passed on real hardware and been recorded in ../platforms.md. If a step below fails, please report what you saw (see CONTRIBUTING.md); if it looks like a way out of the sandbox, report it privately (see SECURITY.md).
These are the steps of the README's "From clone to a first passing run", in PowerShell.
What is different on Windows
- The engine is a WSL2 distribution of its own,
mirrordimensions-engine, imported from Ubuntu 26.04's published WSL image (pinned by checksum) into%LOCALAPPDATA%\mirrordimensions\wsl. The mirror never changes your other distributions. It never reads or changes your.wslconfigeither. - It shares a VM with your other distributions. WSL runs every distribution in one lightweight VM with one kernel. So results on Windows record
boundary: shared-vm(decision 0002), where macOS and Linux recorddedicated-vm. - The engine uses whatever CPUs and memory WSL gives every distribution.
--cpus,--memoryand--diskhave no effect on Windows. To change those limits you would edit.wslconfigyourself; that changes them for all your distributions. - The engine is set up to share nothing with Windows:
- no drives under
/mnt/c; - no Windows programs;
- no Windows
PATH; - no generated hosts file.
- The control plane reaches Docker through WSL's localhost forwarding, on
127.0.0.1:23760, with mutual TLS. The client key lives in%LOCALAPPDATA%\mirrordimensions\docker-tls, readable only by you. - microVM agents (
--microvm) are not available, because WSL offers no nested virtualization.
Prerequisites
- Windows 11 x64 with hardware virtualization turned on in the firmware.
- About 15 GB of free disk.
- A current WSL. In an administrator PowerShell, run the command below, then restart Windows. If WSL is already installed,
wsl --updateis enough.
wsl --install --no-distribution
- uv and Git:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
winget install --id Git.Git -e
No API key is needed: the first run uses a scripted agent.
1. Install
git clone https://github.com/mirrordimensions/mirrordimensions
cd mirrordimensions
uv tool install --editable . # puts mirror on your PATH, in every window
If PowerShell then says mirror is not recognised, run uv tool update-shell and open a new window. The install runs from the clone, so keep the folder. After a git pull, run uv tool install --editable . --reinstall.
2. Create the engine
mirror engine setup --experimental
mirror engine check
engine setup does four things:
- downloads Ubuntu's WSL image and checks it against the pinned SHA-256;
- imports the image as
mirrordimensions-engine; - writes the engine's
wsl.conf, so nothing is shared with Windows; - installs Docker Engine and gVisor, and puts Docker behind mutual TLS.
engine check checks the engine from the outside. It checks:
- gVisor;
- that the Docker endpoint refuses a connection without the client certificate;
- that no Windows folder is mounted;
- that containers cannot reach Windows;
- that only allow-listed traffic leaves the engine.
3. Create a world
Use a folder of its own, outside the clone:
cd ~; mkdir mirror-worlds -Force; cd mirror-worlds
mirror world new northfield --template software-team
cd northfield
mirror world create
4. Start the sealed network and check that it is sealed
mirror up
mirror doctor # ends with Isolation: full (shared-vm), then Coverage and Undetectability
5. Add an agent and run a scenario
mirror agent add $clone\examples\agents\scripted-good\agent.yaml
mirror run rotate-leaked-token --agent scripted-good
6. Read what happened
mirror report latest --open
The core suite with a real model (the exit gate)
llm-example calls Claude through the model gateway.
- Add a model route to
mirror.yaml:
models:
- name: primary
provider: anthropic
host: api.anthropic.com
credential: { from_env: ANTHROPIC_API_KEY }
- Then:
$env:ANTHROPIC_API_KEY = "<your key>" # the gateway takes it when the sandbox starts
mirror agent add $clone\examples\agents\llm-example\agent.yaml
mirror apply # restarts the sandbox with the route
mirror run core --agent llm-example
Every scenario should reach a scored result with a report. The agent need not pass them.
Stopping and removing the engine
mirror engine stop # ends the distribution; mirror engine start brings it back
mirror engine destroy # unregisters it and deletes every file setup created
For a shell inside the engine (administration only): wsl -d mirrordimensions-engine -u root.
This page is docs/platforms/windows.md in the repository; improve it there.