Skip to main content
A Deepest Sandbox is a temporary, headless Linux environment for bounded builds, tests, or isolated experiments. Sandboxes share your Account’s running Memory, shared_cpus, Storage, and Paid network pool with Computers—and do not consume persistent_computers slots. Every Sandbox has a fixed 24-hour hard lifetime from creation and defaults to automatic Stop after 30 minutes without recognized activity. You can adjust or disable idle Stop, but nothing can extend the 24-hour hard deadline.
Plan eligibility: Sandboxes require sandbox_enabled: true (included on Pro, Max 16, and Max 32; excluded on Starter). On Starter, Sandbox requests return SANDBOX_NOT_ENABLED (403).

When to use a Sandbox vs. Computer

  • Choose a Sandbox when the job is headless, finishes cleanly, and exports its artifacts before the 24-hour deadline.
  • Choose a Computer for persistent files, SSH/SFTP/VS Code, Desktop/Chromium, Private Preview, Share links, Tools Quick Install, Snapshots, Clone, Memory Resize, or tasks over 24 hours.
  • Sandboxes cannot be promoted into Computers, and Deepest provides no automatic result archive after expiry—treat exported files as untrusted until reviewed.

Create, execute, and export results

In the Console, open Machines → Create Machine, select Sandbox and Memory (256 MiB steps), and click Create and start. From @deepest/sdk, save a unique DEEPEST_SANDBOX_KEY before creation, inspect expires_at, run your bounded task via exec, and export results explicitly before deleting or expiring:
exec output is bounded and suitable only for small textual outputs—never rely on truncated output as a complete export. For large or binary artifacts, push explicitly from inside the Guest to your repository or authorized external artifact store and verify the upload before deleting the Sandbox.

Stop or delete after exporting

Stopping releases running Memory while retaining the Sandbox disk only until its original expires_at. Once you have verified exported artifacts, explicitly delete the Sandbox and confirm NOT_FOUND:

Secrets, isolation, and platform boundaries

  • Sandboxes start with zero Vault grants—explicitly grant only narrow secrets with exact allowed_hosts. Never place an Account Agent Key inside an untrusted Sandbox.
  • Isolation does not block outbound Internet egress by default; malicious code in a Sandbox can reach permitted public hosts.
  • Sandboxes expose create/list/get/start/stop/delete/exec/touch/idle and secretGrants, and no Desktop, human assistance, SSH, Preview, Share, Snapshot, Clone, or Resize endpoints.

Failure and recovery

Continue with Sandbox lifecycle and idle policy, Account resources, and Errors.