Depot Sandboxes

Product · API / developer platform · Engineering & development by Depot

Isolated Linux environments created and managed programmatically.

Isolated Linux microVMs for running code, tests, and agents programmatically. It provides engineering teams with x86 or Arm environments that include built-in caching, private networking, and workspace snapshots.

Languages
English

Category: Developer Tools

APIs and SDKs
Node.js SDK (@depot/sandbox) and gRPC API
Platforms
Linux microVMs (x86-64 and ARM64) accessible via Node.js SDK
CPU Options
2 to 64 vCPUs
Architectures
x86-64, ARM64
Default Sandbox Size
4 vCPUs and 16 GB memory
Storage Type
NVMe-backed storage
  • Isolated Linux microVMs on x86-64 or ARM64 architecture
  • Programmatic control via Node.js Sandbox SDK
  • Persistent workspace snapshots for home and /workspace directories
  • Built-in integration with Depot Cache and Tailscale private networking
  • Configurable resources from 2 to 64 vCPUs per environment

Overview

Depot Sandboxes provides isolated Linux microVMs for running code, tests, and AI agents on x86-64 or ARM64 architectures. Designed for engineering teams, it allows for the programmatic creation and management of environments through a dedicated Node.js SDK. Every sandbox runs on Depot Metal, a bare-metal compute and storage platform that separates compute hosts from NVMe-backed storage. The service features built-in integration with Depot Cache, Tailscale private networking, and organization-wide secrets. Developers can use snapshots to save the state of a sandbox's home and workspace directories, enabling work to continue across different sessions. It serves as the underlying execution layer for other Depot products like Depot CI and Managed Agents.

Programmable Infrastructure

  • Sandbox SDK: Developers can create and manage isolated Linux microVMs programmatically using the @depot/sandbox Node.js SDK.
  • Full Linux Environment: Every sandbox provides a full Linux system call interface with support for installing dependencies and running Docker.
  • Flexible Architectures: Users can choose between x86-64 or ARM64 architectures for their sandbox environments.
  • Configurable Resources: Sandboxes can be configured with 2 to 64 vCPUs and custom memory and disk resources.

Lifecycle and State Management

  • Workspace Snapshots: The sandbox.snapshot() method saves the home directory and /workspace directory to restore files into new sandboxes later.
  • Command Execution & Logs: Commands can be executed remotely with the ability to stream output, inspect exit codes, and query durable logs.
  • File System Access: A file system interface modeled on node:fs/promises allows reading, writing, and metadata inspection of files.
  • Custom Images: Sandboxes can start from Depot's default base image or a custom image containing specific tools and dependencies.

Ecosystem Integrations

  • Built-in Depot Cache: Supported build tools like sccache, Turborepo, and Nx receive organization cache credentials and configuration automatically.
  • Secret Integration: Organization-wide secrets from Depot CI can be exposed to sandbox commands as environment variables.
  • Private Networking: Sandboxes can automatically join an organization's Tailscale tailnet to access private services and databases.

Use cases

  • Developers use the SDK to give every automated task a separate, isolated test environment.
  • Engineering teams build custom agent runners that execute code in secure, short-lived microVMs.
  • Teams run complex multi-step workflows that require preserving file state between different execution phases.
  • Organizations execute builds and tests that need native ARM64 performance without managing their own hardware fleet.

Specifications

APIs and SDKs
Node.js SDK (@depot/sandbox) and gRPC API
Platforms
Linux microVMs (x86-64 and ARM64) accessible via Node.js SDK
Limits
2 to 64 vCPUs; snapshots do not preserve running processes or memory; repository-scoped secrets prevent snapshotting
Deployment
Depot Cloud (US and EU regions) or Depot Managed in a customer's AWS account
Integrations
Tailscale, Depot Cache, Depot CI Secrets, Docker, sccache, Turborepo, Nx, Bazel, Gradle, Go Cache, Maven, Pants
CPU Options
2 to 64 vCPUs
Architectures
x86-64, ARM64
Default Sandbox Size
4 vCPUs and 16 GB memory
Storage Type
NVMe-backed storage
SDK Language
Node.js (version 20 or newer)
Billing Increment
Per-second billing
Network Integration
Tailscale tailnet support
Secret Management
Depot CI secrets integration

How it works

  1. Install the SDK: Install the @depot/sandbox package and initialize the client with your organization ID and API token.
  2. Provision a MicroVM: Request a sandbox via the SDK, specifying architecture, vCPU count, and memory requirements.
  3. Execute Workloads: Run commands, stream output, and manage files remotely through the SDK's programmatic interface.
  4. Snapshot and Stop: Optionally take a snapshot of the workspace before stopping the sandbox to preserve files for future sessions.

Pricing

Sandbox compute (Developer/Startup)
$0.00005 per second per vCPU
Developer Plan (Included)
2,000 sandbox minutes per month
Startup Plan (Included)
20,000 sandbox minutes per month

FAQ

What can I run inside a Depot Sandbox?

A sandbox is a full Linux microVM that can install packages, run test suites, and run Docker. It is isolated on Depot Metal infrastructure.

How do I save and restore work in a sandbox?

You can use sandbox.snapshot() to save the home directory and workspace. This snapshot can then be passed to a new sandbox creation request to restore the files.

Which architectures are supported?

Sandboxes support both x86-64 and ARM64 architectures, which can be specified during creation via the SDK.

Can sandboxes access my private network?

Sandboxes integrate with Tailscale. When configured, sandboxes automatically join your organization's tailnet to reach private services.

Added by AntSpace from public sources (depot.dev).

Related

More products by Depot