Share feedback
Answers are generated based on the documentation.

Compare local and cloud sandboxes

Local and cloud sandboxes provide isolated environments for AI agents, but they run against different resources and stores. This comparison helps you choose an environment and identify workflows that need cloud-specific setup.

CapabilityLocal sandboxCloud sandbox
ComputeUses resources from the hostUses Docker-managed cloud resources
WorkspaceMounts host paths or uses a private Git clone backed by the host repositoryHas no access to host paths; transfer files or clone a repository inside the sandbox
HardwareCan use supported host integrations, such as GPU, USB, display, and nested virtualizationHas no access to host hardware
PortsBinds sandbox ports to host addresses and portsExposes a sandbox port through a public HTTPS URL
SecretsReads from the local sbx secret storeReads from the separate sbx --cloud secret store
Network policyUses local and organization policy sources supported by the local runtimeUses separate, network-only account and sandbox policy with organization governance unavailable in this release
StoragePersists in the local sandbox and its attached host resourcesPersists in the cloud sandbox and optional cloud volumes
LifetimePersists across stops until you remove itExpires according to its time-to-live and timeout action
BillingNo metered sandbox compute chargeMetered through the Docker Agentic Platform plan

Host-dependent features

A cloud sandbox has no path back to the machine where you run sbx. The following local features don't apply in cloud mode:

  • Workspace paths, bind mounts, --clone, and Git worktrees created with --branch
  • GPU, USB, display, and nested virtualization options
  • Models served by a local model runtime
  • Host port bindings
  • Declarative sbx env workflows using sbxenv.yaml
  • Host-backed agent skills and the full local MCP management workflow

The CLI rejects local-only flags used with --cloud instead of ignoring them.

Separate resources

Adding --cloud changes the backend for the command. A sandbox shown by sbx ls doesn't appear in sbx --cloud ls, and resources created for one backend don't automatically become available to the other.

This separation applies to sandboxes, templates, secrets, volumes, and network policy. Use sbx move when you need to copy a sandbox filesystem between backends. Moving doesn't unify the resource stores or transfer host-mounted files and secrets.