Images
An image is the filesystem a sandbox starts from. Pick one with image when you create the sandbox; the default is
base.
| Image | What it contains |
|---|---|
base | Ubuntu 24.04 with Python 3.12, Node 22 and Chromium |
python | Same as base, default working dir set up for Python |
node | Same as base, default working dir set up for Node |
browser | Same 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.
Where a sandbox can write
Section titled “Where a sandbox can write”The root filesystem is read-only. A sandbox can write to three places:
| Path | What it is |
|---|---|
/work | The 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. |
/tmp | Scratch space in memory, counted against the sandbox’s memory. Not saved in snapshots. |
/run | A 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 installputs packages under/work/.local, because the system site-packages are read-only.- Global npm and pnpm packages go under
/work/.npm-globaland/work/.local/share/pnpm, which are onPATH. - System packages cannot be installed. Use a Python virtual environment or a project directory under
/workinstead.
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.