# How sandboxes work

> Where agent code runs: the three sandbox adapters, and one sandbox per run.

Source: https://werker.cloud/docs/engineering/sandboxes (updated 2026-12-02)

Where agent code runs. Three adapters are built: Docker with gVisor on
the operator's own host, and two that host the sandboxes: Daytona and
Docker Cloud Sandboxes. Other adapters are not built
([#21](https://github.com/werker-ai/werker/issues/21)).

## A sandbox is a connection

A sandbox provider is a [connection](capabilities.md) with an adapter,
like an AI provider. The operator chooses which adapters a server
uses: hosted (Daytona, Docker Cloud Sandboxes) or local on the server
(gVisor).

## Every run gets its own sandbox

Each run executes in its own sandbox, created for the run and deleted
after it. Nothing a run generates executes in the worker process.
