Skip to main content
Run the traceroot Agent’s sandbox in a smol machine, a microVM with its own Linux kernel. The agent clones your repository into the sandbox, reads the code behind a failing span and runs commands there. With SANDBOX_PROVIDER=smol, each session’s sandbox is one machine, on smol cloud or on your own computer.
This page is for a self-hosted traceroot run from its repository. docker stays the default sandbox provider, and nothing changes until you set SANDBOX_PROVIDER. See Self-Hosting to get traceroot running first.

Requirements

  • traceroot run from its repository with make dev or the Docker Compose stack (make prod), and a model provider key for the agent.
  • For smol cloud: a smol cloud API key. The Cloud Quick Start in the smol machines docs covers creating one.
  • For a local machine: make dev on macOS on Apple Silicon, or on Linux with KVM. The local engine is installed with traceroot’s dependencies, as part of the smolmachines package.

Set up

traceroot reads its settings from .env at the root of the repository. Choose where the machines run:
smol cloud is the default target. It works under make dev and in the Docker Compose stack.
The agent reads these settings when it starts. Start traceroot, or restart it if it is already running.

Verify

  1. In the traceroot UI: open the agent and ask it to run uname -a in its sandbox. The answer comes from the machine’s own kernel.
  2. In the agent’s log: once the machine is set up, the log prints [SmolExecutor] Machine ready: followed by the machine’s name. With Docker Compose, read it with:

What the agent sets up

The agent creates the machine the first time a session needs its sandbox. Repository credentials reach git through environment variables and never appear in a command line. The agent deletes the machine when the session’s sandbox is torn down or the agent shuts down.

Limitations

  • The Docker Compose stack runs machines on smol cloud. SMOL_TARGET=local is for make dev.
  • A cloud machine is deleted 24 hours after it is created, including while a session is still using it. Start a new session to get a new machine.
  • SANDBOX_IDLE_TTL_MINUTES and SANDBOX_RECLAIM_ON_START apply to the docker provider. A smol machine follows the idle stop and deletion times in the table above.
  • On smol cloud, a command the agent runs with no timeout of its own ends after 600 seconds.
  • If a setup step fails, the agent deletes the machine and reports the command and its output. The session’s next sandbox call creates a new machine.

Next steps

Root cause analysis

What the agent does in its sandbox when a trace has errors.

GitHub integration

Connect a repository so the agent can clone it into the sandbox.

Self-Hosting

Run traceroot from its repository.

smol machines integrations

smol machines’ docs: machine size, billing and cleanup on smol cloud.