Depot Sandboxes
Isolated, programmable Linux sandboxes from Depot for running commands and managing files, controlled through a Node.js SDK and API.
At a Glance
About Depot Sandboxes
Depot Sandboxes are isolated Linux environments from Depot Technologies Inc. that engineers and AI agents create programmatically to run commands, work with files, and resume saved state. They run on Depot Metal, Depot's compute and storage platform, and are controlled through the @depot/sandbox Node.js SDK, which wraps the depot.sandbox.v1 API.
What It Is
Depot Sandboxes provide on-demand compute for running code in isolation. A developer authenticates with a Depot token, creates a sandbox, runs commands, reads or streams their output, manipulates the sandbox file system, and then stops it. The sandbox is billed through Depot's CI compute model, and the homepage describes sandboxes as isolated by design for ephemeral environments.
How the SDK Workflow Works
The SDK requires Node.js 20 or newer and ships as ES modules. Sandbox.create accepts options for name, image, architecture (amd64 or arm64), resources (2 to 64 vCPUs, memory, disk), environment variables, and lifetime (up to 24 hours). Commands run directly without a shell, with output available as collected text (capped at 16 MiB) or as a live stream of stdout and stderr chunks. A node:fs/promises-style file system interface supports reading, writing, directories, stat, symlinks, copy, move, and permissions. Detached, fire-and-forget commands are in beta.
Secrets, Cache, and Networking
Sandboxes can inject existing Depot CI secrets into commands without exposing values in code. Depot Cache is configured automatically for tools such as sccache, Turborepo, Nx, Bazel, Pants, Gradle, and Maven, and can be disabled. If the Tailscale integration is enabled, sandboxes join the organization's tailnet, and this can be turned off per sandbox. Custom images must come from Depot Registry.
Snapshot and Resume
sandbox.snapshot() saves the home directory and /workspace files, up to 25 GiB, so a new sandbox can be created from the snapshot. Snapshots preserve files, not running processes or memory. Depot Managed Agents handles snapshot save and restore automatically for sessions. The docs list detached-command output retrieval and named runtimes as planned features.
Community Discussions
Be the first to start a conversation about Depot Sandboxes
Share your experience with Depot Sandboxes, ask questions, or help others learn from your insights.
Pricing
Free trial
7-day trial of Developer or Startup plans, which include Depot Sandboxes.
Developer
Perfect for solo devs, side-projects, and experiments.
- 2,000 sandbox minutes included each month (shared by Depot CI, Depot Sandboxes, Managed Agents)
- 2,000 GitHub Actions minutes
- 500 container build minutes
- 25 GB cache and registry storage
- 1 user
- Community support
- Additional sandbox compute: $0.00005/second/vCPU
- Sandboxes: 2 to 64 vCPUs, Intel or Arm
Startup
For teams building production applications.
- 20,000 sandbox minutes included each month (shared by Depot CI, Depot Sandboxes, Managed Agents)
- 20,000 GitHub Actions minutes
- 5,000 container build minutes
- 250 GB cache and registry storage
- Unlimited users
- User RBAC
- Email support
- Additional sandbox compute: $0.00005/second/vCPU
- Optional SSO (SAML & SCIM) $500/mo
Business
Support and performance for businesses looking to scale.
- Custom usage and volume pricing
- Ability to deploy in your AWS account
- Dedicated infrastructure
- GPU enabled builds
- Static IPs, firewall rules, and PrivateLink
- SSO with SAML, SCIM
- Audit logging and compliance controls
- Slack Connect support
- AWS Marketplace billing
Capabilities
Key Features
- Programmatic sandbox creation via Node.js SDK
- x86-64 and ARM64 Linux architectures
- Configurable 2 to 64 vCPUs, memory, and disk
- Command execution with streaming stdout/stderr logs
- node:fs/promises-style file system API
- Snapshot and resume of workspace files
- Depot CI secrets injection
- Automatic Depot Cache configuration
- Optional Tailscale tailnet connectivity
- Custom images from Depot Registry
- Detached commands (beta)
- Sandbox lifetime up to 24 hours
