Docs

Moil docs

Moil gives every agent run a Linux machine of its own — a Firecracker microVM we call a box. Start one from the CLI or the API, run work in it, keep the state that worked, and throw the rest away.

Your first box, in three lines
npx moil@latest          # install the CLI and sign in
moil create --name dev
moil exec dev -- uname -a

Guides

Concepts

The CLI, the API and the dashboard all use the same handful of words.

WordWhat it means
BoxA Firecracker microVM of your own: its own kernel, root, systemd and Docker. Files under /data (your home is /data/home) and the software you install survive restarts.
TemplateWhat a new box boots from: desktop (the default, with a Linux desktop and Chromium), base (the same toolchains, no desktop) or ci (an Ubuntu 24.04 runner image).
SnapshotA saved copy of a box’s disks. New boxes start from it in seconds; it is private to your workspace.
ForkA copy of a box made on its host, with the same template and size. Disks are copied; memory and processes are not.
OperationA lifecycle change — create, start, pause, resume, stop, delete. A box has at most one at a time, and you can follow it until it succeeds or fails.
WorkspaceWhere boxes, snapshots, keys and secrets live. Every API key belongs to exactly one workspace and reaches nothing outside it.

Box states

StateFilesMemory & processesUse it to
RunningkeptliveWork in it
PausedkeptkeptStep away, come back to the same session
StoppedkeptlostShut down; the next start boots fresh
DeletedgonegoneFree the slot for a new box

A box that sits idle for 30 minutes pauses itself. A command, an SSH session or a request to one of its public ports wakes it back up — but only if it paused itself. A box you paused or stopped stays put until you resume or start it. See idle pause.

Three ways in

  • The CLI — moil, for people at a terminal and for agents with a shell. Every command is on the CLI page.
  • The HTTP API — JSON over HTTPS with an API key in Authorization: Bearer …. Lifecycle calls return an operation you can wait on.
  • The dashboard — for watching a box’s screen, managing keys and secrets, and seeing this month’s usage.

Feeding these docs to an agent? /llms.txt lists every page with a one-line summary and the CLI in plain text.