standardis the default. It runs code, scripts, package installs, tests, dev servers and browsers, which covers what most agents and apps need.vmis a full virtual machine with its own Linux kernel. Some software needs a kernel of its own to work, for example Docker, services managed by systemd, mounting filesystems, or firewall rules. For that kind of work,vmis the runtime to use.
Which one do I need?
Find what you want to do in the left column. The last column shows what to put in your create request:Say what you need
The easiest way to get the right runtime is to list what the sandbox needs inneeds. Fibre then picks the
runtime that has it, and the answer tells you which runtime it picked and why:
Response
Response
response
curl: delete it
runtime_reason field explains the choice:
Docker inside a sandbox
Because avm sandbox has its own kernel, it can run Docker. That means an agent can build and run containers
just as it would on a laptop: start a database for its tests, build the project’s image, or run
docker compose up.
In this example, a sandbox starts from Docker’s official image, which runs the Docker daemon. Then it starts Redis
in a container and stores and reads a value, to show that everything works.
1
Start a VM sandbox with Docker
2
Run a container and use it
Downloading a container image can take longer than the 30 seconds an exec allows, so this runs as a
background command that you wait for. The command first waits until the Docker
daemon is ready.
curl: its output
Output
Output
output
3
Delete it
systemd, like a server
On a typical Linux server, systemd is the first program that starts, and it starts and supervises all the others. With"init": "systemd", a vm sandbox works the same way: the image’s systemd runs first, and any
services you enable start with the machine and come back after every wake. The result is a sandbox that behaves
like a small server. You need an image that includes systemd:
Naming the runtime yourself
You can also choose the runtime directly, with"runtime": "standard" or "runtime": "vm". If you then ask
for something that runtime cannot provide, Fibre refuses the request rather than quietly ignoring the need. This
way a sandbox always either has what you asked for, or does not start at all:
Response
Response
response
What differs, and what does not
For reference, here is everything that differs between the two runtimes, and everything that stays the same:Errors
These errors are about runtimes:Related
Sleep and wake
What each runtime keeps across a sleep.
Browser
A browser for Playwright, on either runtime.
Desktop
A full desktop on a VM.
Sizes and what is installed
CPU, memory and disk for each size.