Skip to content

Sandbox

Compare mikan's supported host, container, image, microVM, and Firecracker sandbox modes.

Local development

host has the least setup and does not inject vault env, making it suitable for development on trusted machines.

Mainline isolation

image:<image> lets mikan manage lifecycle, workspace mounts, vault env, and resource limits.

Gondolin preview

gondolin:default runs a local Gondolin/QEMU VM and is the planned successor to managed image:* sandboxes.

ModeExecution locationVault env injectionVault key semanticsNotes
hosthost machinenot injectedcan store, but unused at run timeBest for local development; does not put vault env into the host process
container:<name>existing Docker containerinjectedcontainer-<name>one container one vault; multiple people sharing one container also share its vault
image:<image>Docker managed by mikaninjectedgenerated conversation vaultCurrent recommended isolation mode; 1 conversation = 1 vault = 1 container
gondolin:defaultlocal Gondolin/QEMU VMinjectedgenerated conversation vaultPreview; supports private/full workspace mounts; requires Node.js >=23.6 and QEMU
firecracker:<vm-id>:<host-path>[:<ssh-user>[:<ssh-port>]]Firecracker VMinjectedgenerated conversation vaultVery early alpha; you must start the VM and mount workspace at /workspace; not recommended yet

image:<image> recommended is the primary developed and recommended sandbox mode today; the other modes are kept for local development, compatibility, or experiments, and some capabilities will not be filled in.

Capabilityhostcontainer:<name>image:<image>gondolin:defaultfirecracker:*
command execution
mikan-managed runtime lifecyclenot applicable✅ in-process
per-conversation container / runtimeself-managed
per-conversation vault env
automatic vault file projection / bind mount
automatic workspace mounthostself-managedself-managed
private workspace mount modenot applicable
idle auto-stop / recreatenot applicable
default CPU / memory limits
/pi-sandbox boost
agent sandbox tool sets limits
recommendation levellocal devlegacy / compatibilitymainlinepreviewalpha