The machine
Sizes, the Ubuntu 24.04 image every sandbox starts from, the default user, the desktop, and the helpers installed in every sandbox.
Every sandbox is a virtual machine that boots the same Ubuntu 24.04 image, or a template made from it. It is set up for development and for AI agents: a normal Linux server plus a desktop with a browser.
Sizes
Choose the size when you create a sandbox (--size); without one, a sandbox gets small, or the smallest size whose disk holds its template; a fork keeps the size of its source. You can resize a sandbox later.
| Size | vCPU | RAM | Disk |
|---|---|---|---|
small |
2 | 4 GiB | 20 GiB |
default |
4 | 8 GiB | 50 GiB |
large |
8 | 16 GiB | 100 GiB |
xlarge |
16 | 32 GiB | 200 GiB |
For what a sandbox costs, see Usage and billing. The guest sees slightly less memory than the size’s RAM, because its kernel reserves part of it. A sandbox made from a template needs a size whose disk is at least as large as the template’s.
Resizing
Resizing gives an existing sandbox the vCPUs, RAM and disk of another size:
pols resize web --size large # wait until it runs at the new size
- Dashboard: open the sandbox on your account page. Its Size section lists every size with its vCPUs, RAM, disk and price per hour, from idle to all vCPUs busy, excluding VAT. Pick one and click Resize; for a running sandbox, first tick Restart it at the new size. Sizes with a smaller disk are disabled.
- CLI:
pols resize SANDBOX --size SIZEwaits until the sandbox has the new size;--no-waitreturns at once. - MCP: the tool
sandbox_resize(sandbox,size) waits the same way unless you setno_wait. - API:
PATCH /v1/sandboxes/{sandbox}with{"size": "large"}answers at once withresize_toset to the new size;size,vcpus,memory_mibanddisk_gibchange once the VM has it, within about a minute for a running sandbox. PollGET /v1/sandboxes/{sandbox}untilresize_toisnull.
The sandbox keeps its ID, name, addresses, disk and files, users, environment variables, vault entries, egress policy and published ports. A running sandbox, or one in standby, is shut down, resized and booted again, so the processes running in it stop, like after a stop and resume. A stopped sandbox is resized and stays stopped. Its timeline records the request and the resize.
- The disk only grows. A size with a smaller disk than the sandbox’s is refused with
400 bad_request, so you can go fromsmalltolarge, but not back. - Checks. Resizing a running sandbox passes the checks of a start: the org’s quotas, its credit, and room for the new size on the sandbox’s host (
429 host_capacity; retry after theRetry-Afterseconds). A stopped sandbox is checked when you resume it. On Cloud Hypervisor, the new disk must also fit in the host’s disk space for Cloud Hypervisor, whether the sandbox runs or is stopped (429 host_capacity). - Trial orgs run
smallanddefaultsandboxes only; a larger size is refused with403 trial_limit(see Trial limits). - Billing follows the size: the sandbox is billed at its old size until it is shut down, and at the new size from the boot on (see Usage and billing). A stopped sandbox is billed at the new size once it is resumed.
- Not resizable: a sandbox that is being created, stopped, resumed, deleted or resized already (
409 conflict; resize it once it has arrived), and the build and server-app sandboxes of sites, whose size the site sets. - Sandbox-scoped API keys resize only where their limits allow it.
If the host cannot apply the new size, pols retries; when it gives up, the sandbox keeps its old size, boots again if it was running, and its last_error and timeline say why. pols resize and sandbox_resize then fail.
The user
Commands run as user (uid 1000, home /home/user, shell bash) unless you ask for root with pols exec --root. user has passwordless sudo and is in the docker group, so Docker works without sudo. The account has no password; SSH accepts keys only.
What is installed
| Area | Contents |
|---|---|
| System | Ubuntu 24.04 with systemd, UTC time zone, C.UTF-8 locale |
| Tools | git, git-lfs, curl, wget, jq, zip and unzip, xz, zstd, build-essential, cmake, pkg-config, ripgrep, fd, sqlite3, htop, tmux, vim, nano, strace, lsof, dnsutils, netcat |
| Containers | Docker Engine with the buildx and compose plugins, started at boot |
| Languages | Python 3 with pip, venv and pipx; Node.js with npm and corepack; Go |
| Browser | Google Chrome stable |
| Media | ffmpeg |
| Agents | Claude Code (claude) and Codex (codex) |
| Desktop | a 1920x1080 X11 desktop (TigerVNC, openbox) with xterm |
The exact versions of everything pinned in the image are listed in /etc/pols/image-manifest.json inside the sandbox.
A few things behave differently from a stock Ubuntu install:
- apt: the package lists are empty in a new sandbox. Run
sudo apt-get updatebefore installing packages. Automatic background updates are off, so they never hold the package lock while you or an agent work. - Python: the system pip is “externally managed” (PEP 668). Use a virtual environment or
pipx. - Agent CLIs: auto-update is turned off for Claude Code and Codex. No API keys are baked into the image; pass yours with the vault or
--env.
The desktop
Every running sandbox has an X11 desktop on display :1 at 1920x1080 with Google Chrome. Login shells have DISPLAY=:1 set; for other commands, set it yourself. You can watch and use the desktop in your browser with pols desktop, and agents can drive it through computer use.
The desktop’s VNC server and Chrome’s debugging port listen only inside the VM. They are reached through the control plane, never over the network.
Helpers
The image includes small commands for working with the desktop from inside the sandbox:
| Command | Does |
|---|---|
pols-record start [--output FILE], pols-record stop, pols-record status |
record the desktop to an MP4 file (30 fps), by default under ~/recordings/ |
pols-desktop status |
check that the desktop services are running |
pols-computer |
take screenshots and send mouse and keyboard input on the desktop |
pols-browser |
start Chrome with its DevTools endpoint |
The control plane uses pols-computer and pols-browser for computer use; you normally use the API for that rather than calling them yourself.
Identity of copies
Forks and sandboxes made from templates start from a copy of another disk. They get a new machine ID and new SSH host keys, so two copies never share an identity.