Skip to main content
Sandbox persistence lets you pause a sandbox and resume it later with the same filesystem and memory state. This is useful for long-running agent tasks, interactive apps, and workflows that need to survive idle periods without keeping compute resources active.

Manual pause and resume

When a sandbox is paused:
  • Files created in the sandbox are preserved.
  • In-memory state is preserved, including running processes and variables.
  • Network connections are interrupted until the sandbox resumes.
  • The sandbox remains stored until you resume and kill it, or kill it while it is paused.

Auto pause and resume

Use lifecycle settings when you want the sandbox to pause automatically after timeout and optionally resume when activity is detected.

Web server example

Auto-resume works well for preview environments and web servers.
Last modified on August 5, 2026