Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

shem on Windows

shem.exe runs on Windows 10 and later without WSL: the runtime, the image store and the commands that need no Linux kernel. Build it with cargo install --path crates/shem (Rust 1.88 or later), or take shem-VERSION-x86_64-pc-windows-msvc.tar.gz from a release. Models need uv on the PATH, as everywhere.

shem build -t hello examples/hello
shem run hello
shem run qwen3 "What is a golem?"

The store is in %LOCALAPPDATA%\shem (or SHEM_HOME). Everything else in the docs works the same, with these exceptions.

What Windows does not have yet

Left outWhyWhat happens
The model server that outlives shem run, and --vcpu neuralBoth are reached over Unix sockets, which Rust’s standard library has not got on WindowsA model run starts the driver itself and loads the weights each time; --vcpu neural is refused.
Overlays for runs and buildsoverlayfs is Linux’sA run unpacks its image into a directory of its own, as it did before overlays; --root-overlay warns, and the guest’s changes go to the directory.
Layers shared between imagesNeeds the link counts of Unix’s file metadataEach image keeps its own blobs and unpacked files.
A raw terminalWindows’ console is not a termios terminalA guest reads lines from the console; a full-screen program or a shell that edits its own lines does not work. Ctrl-C ends shem.
The containerd shim and docker run --runtime io.containerd.shem.v1The shim is Linux’s, and Docker Desktop runs containers in a VMBuild with Docker and shem load, as on Docker Desktop.
Special filesWindows has no FIFOs, device nodes or sockets as filesA guest that makes one gets an error.

What differs

  • A guest’s file names must be names Windows can have: one with \ : * ? " < > | is refused, and a name that is not UTF-8 cannot be made.
  • Files have no permission bits beyond read-only: every file looks executable to the guest, and a layer built on Windows records its files that way, so an image built there is not digest for digest the one built on Linux or macOS.
  • Symbolic links need a user the system lets make them: an administrator, or developer mode. Without it, a guest’s symlink fails.
  • Inode numbers and link counts are made up (a file’s creation time, and one link), and access times are the host’s to move.
  • A registry’s port in an image name (localhost:5000/app) is kept in the store under localhost%5000.

The Windows build is checked by CI on every change (cargo test -p shem on a Windows runner), with the tests of what it has not got skipped. It has not had the breadth of use the Linux build has.