Skip to main content
A runtime is the way a sandbox runs underneath. Fibre has two of them, and every sandbox uses one. In practice you rarely choose one by name: you describe what the sandbox needs to do, and Fibre picks the runtime that can do it.
  • standard is the default. It runs code, scripts, package installs, tests, dev servers and browsers, which covers what most agents and apps need.
  • vm is 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, vm is the runtime to use.
Both runtimes use the same API, sleep and wake in the same way, and cost the same for each size. Moving a workload from one to the other is a one-word change.

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 in needs. Fibre then picks the runtime that has it, and the answer tells you which runtime it picked and why:
response
curl: delete it
The runtime_reason field explains the choice:

Docker inside a sandbox

Because a vm 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
3

Delete it

On vm, sleep keeps every process, including your containers. If a sandbox with a running docker compose stack goes to sleep, the next call finds the whole stack still up, with all its data.

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

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:

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.