Inside the gateway
Key: Container Component. An arrow says what one element does to or asks of the other. Select a box with a page of its own to open it.3 relationships and where each is in the code
3 relationships and where each is in the code
From a queued run to a finished one
The agent run flow shows what happens to the work itself.Worth knowing
- Each sandbox has its own token, worked out from the shared secret and the sandbox’s id. A sandbox never holds the shared secret, so it can’t act as another one.
- Development and production are kept apart. Each has its own shared secret,
SANDBOX_TOKEN_<deployment>, and its own Durable Objects. Connect in the back office sets the secret. - Working folders don’t last. They’re on the container’s own disk, so they’re cleared when it sleeps, restarts or is deleted.
- The code:
sandbox/cloudflare/,scripts/agent-runner.tsandconvex/sandboxes.ts.

