SANDBOX_PROVIDER=daytona, each session’s sandbox is created in your Daytona account, and the machine that runs traceroot needs no Docker access for it.
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 devor the Docker Compose stack (make prod), and a model provider key for the agent. - A Daytona account and an API key. Daytona’s API keys page covers creating one.
- Outbound HTTPS from the agent to
app.daytona.io.
Set up
Add both settings to.env at the root of the repository:
make dev and in the Docker Compose stack. The agent reads them when it starts. Start traceroot, or restart it if it is already running.
Verify
-
In the traceroot UI: open the agent and ask it to run
cat /etc/os-releasein its sandbox. The answer names Ubuntu 24.04. -
In the Daytona dashboard: a sandbox with the label
traceroot.sessionappears while the session is active. -
In the agent’s log: once the sandbox is set up, the log prints
[DaytonaExecutor] Sandbox ready, workDir: /workspace. With Docker Compose, read it with:
What the agent sets up
The agent creates the sandbox the first time a session needs it.
Repository credentials reach
git through environment variables and never appear in a command line. The agent deletes the sandbox when the session’s sandbox is torn down or the agent shuts down.
Limitations
- The agent connects to Daytona’s hosted service at
app.daytona.ioin theustarget. A self-managed Daytona or another region cannot be set from.env. - A sandbox that stops after 15 idle minutes is deleted, along with the repository clone and notes in it.
SANDBOX_IDLE_TTL_MINUTESandSANDBOX_RECLAIM_ON_STARTapply to thedockerprovider. Daytona stops and deletes its own sandboxes.- If Daytona takes longer than 60 seconds to create a sandbox, the session’s sandbox call fails.
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.
Daytona sandboxes
Daytona’s docs on how its sandboxes work.