sandbox.exec. Tilde launches the VM through your E2B or Modal account, wakes it when the agent needs it, and puts it to sleep when it goes idle.
How sandboxes work
Click to zoom
Everything goes through the gateway:
- The agent calls sandbox tools, and the gateway runs them in the VM.
- The VM dials out to the gateway, so it exposes no ports.
- Processes in the VM reach private systems through the gateway too. The gateway adds the credential, so the VM never holds a long-lived secret.
Sandbox blueprints
A sandbox blueprint is the configuration for a set of sandboxes. It sets:- The E2B or Modal connection, and the template or container image the VM starts from.
- The reuse mode: which invocations share a sandbox. See Reuse modes.
- Timings for sleep and termination.
- Encrypted environment variables exported in every shell.
- The tools processes in the VM may call, and, in Cloud and Enterprise, egress grants.
Sandbox tools
An agent with a sandbox gets a fixed tool source, Sandbox ·<blueprint name>, on its Tools tab:
To limit which ones the agent calls, use its
tools.invoke capability.
Foreground commands time out after 120 seconds by default, and 10 minutes at most. For longer work, run the command in the background and poll it with sandbox.exec_output.
Lifecycle
- On each invocation, Tilde finds the agent’s sandbox according to the reuse mode. It launches one if there is none, or wakes it if it is asleep. The agent runs once the VM has connected.
- After 10 minutes idle by default, the sandbox goes to sleep. The next tool call wakes it.
- After 7 days unused by default, Tilde terminates it, and its files are gone.
Audit
Sandbox tool calls appear in the agent’s Sessions and Tracing tabs like any other tool call. Calls that processes in the VM make, to blueprint tools or through egress, appear in the same trace, under the invocation they belong to.Good to know
- The gateway must be reachable from the provider’s cloud. If you self-host, see Network exposure.
- Direct and Lambda agents only. Sidecar agents cannot use sandbox tools.
- Linux templates only.
- Sandboxes are in all three editions. Egress is in Tilde Cloud and Tilde Enterprise. See Editions.
Next steps
Set up sandboxes
Pick an image, create a blueprint, and give an agent a sandbox.
GitHub egress
Clone and push from a sandbox with no GitHub token in the VM.
Reuse modes
Choose which invocations share a sandbox.
In-sandbox CLI
Call blueprint tools from processes in the VM.