- An environment is reusable desired configuration: provider, image, resources, network, lifecycle, labels, volumes, and environment variables.
- A sandbox is the concrete runtime instance Fabro creates for a run from the selected environment.
workflow.toml
environments/ directory next to its settings.toml, seeded on first startup with built-in default, local, docker, and daytona environments. Manage them by editing those files or through the /api/v1/environments REST API. Workflow and project TOML can additionally define [environments.<slug>] catalog entries that merge with the server catalog through the normal settings precedence. The built-in default is default, a Docker environment using buildpack-deps:noble.
Defining environments
Each server-managed environment is a file whose name is its slug:environments/fabro-dev.toml
[environments.<slug>] when defined in workflow or project TOML instead:
workflow.toml
workflow.toml
env and labels merge by key. volumes replace as a whole list when set at a higher-precedence layer.
Selecting an environment from the CLI
Use--environment with an environment slug:
--preserve-sandbox still controls the concrete runtime instance lifecycle for a run. Runtime commands such as fabro sandbox ssh keep the word “sandbox” because they operate on an already-created runtime instance.
Built-in environments
The server seeds four built-in environments on first startup:default, local, docker, and daytona. Missing files are re-seeded, so editing a seeded file customizes it while deleting it restores the built-in definition on the next restart. The seeded default:
environments/default.toml
Provider mappings
| Environment field | Local | Docker | Daytona |
|---|---|---|---|
image.docker | Ignored | Docker image | Error |
image.dockerfile | Ignored | Warning; ignored | Snapshot Dockerfile; Fabro computes the snapshot name |
resources.cpu | Warning; ignored | cpu_quota = cpu * 100000 | Snapshot CPU |
resources.memory | Warning; ignored | Container memory limit | Snapshot memory |
resources.disk | Warning; ignored | Warning; ignored | Snapshot disk |
network.mode = "allow_all" | Host network | Docker default bridge | Daytona allow-all |
network.mode = "block" | Error | Docker none network | Daytona block |
network.mode = "cidr_allow_list" | Error | Error | Daytona CIDR allow-list |
labels | Warning; ignored | Warning; ignored | Daytona labels |
volumes | Warning; ignored | Warning; ignored | Daytona volume mounts |
lifecycle.auto_stop | Warning; ignored | Warning; ignored | Daytona auto-stop |
env | Process environment overlay | Container environment | Sandbox environment |
Local
local runs tools directly in the resolved working directory. It offers no filesystem or network isolation, so use it only for trusted workflows.
environments/host.toml
Docker
Docker runs tools inside a container created fromimage.docker. Docker is the built-in default provider.
environments/ci.toml
[run.clone] enabled = false to start with an empty workspace.
Daytona
Daytona runs tools in a cloud sandbox. Withoutimage.dockerfile, Fabro uses Daytona’s built-in daytona-medium snapshot. With image.dockerfile, Fabro computes a deterministic internal snapshot name from the Dockerfile, resource hints, a single-tenant scope, and the Daytona API key.
environments/cloud.toml
environments/cloud.toml