Skip to content
Wardcase Docs

Images

An image is the filesystem a sandbox starts from. Pick one with image when you create the sandbox; the default is base.

ImageWhat it contains
baseUbuntu 24.04 with Python 3.12, Node 22 and Chromium
pythonSame as base, default working dir set up for Python
nodeSame as base, default working dir set up for Node
browserSame as base with Playwright and Chromium ready

All four images are built from the same base, so tools you expect in one are in the others.

The root filesystem is read-only. A sandbox can write to three places:

PathWhat it is
/workThe sandbox’s own volume, sized to its disk limit. The working directory, the home directory, where the files API reads and writes, and what a snapshot saves.
/tmpScratch space in memory, counted against the sandbox’s memory. Not saved in snapshots.
/runA small space in memory for runtime files.

Processes run as the unprivileged user agent, whose home is /work. That shapes how you install things:

  • pip install puts packages under /work/.local, because the system site-packages are read-only.
  • Global npm and pnpm packages go under /work/.npm-global and /work/.local/share/pnpm, which are on PATH.
  • System packages cannot be installed. Use a Python virtual environment or a project directory under /work instead.

Downloads count as egress and must be allowed by the sandbox’s egress policy. Files uploaded through the API can be up to 50 MiB each.

To start many sandboxes from the same prepared state, set one up, take a snapshot, and create new sandboxes from it with snapshot_id.