Docker Sandboxes
Docker’s sbx CLI for running AI coding agents in microVM sandboxes on your machine, with an experimental Docker-hosted cloud. The easiest way to give local coding agents a real microVM boundary.
Overview
Docker Sandboxes run coding agents such as Claude Code, Codex, Copilot, Gemini CLI and others inside microVMs on your machine. Each sandbox has its own kernel and its own Docker Engine, so agents can build and run containers without touching the host’s Docker.
Network access is deny-by-default and credentials are injected by a host-side proxy. A cloud version on the Docker Agentic Platform is experimental.
Notable
- Ships templates for a dozen popular coding agents.
- Does not require Docker Desktop on the host.
Docker Sandboxes specifications
| Attribute | Details |
|---|---|
| Isolation | MicroVM with a separate kernel per sandbox, each running its own private Docker Engine |
| Deployment | Local / OS-level · Self-hostable |
| Open source | No |
| SDKs and interfaces | sbx CLI, TypeScript (cloud), REST API (cloud) |
| Cold start (vendor claim) | Not documented |
| Max session length | Local: persist until removed. Cloud: governed by configured time-to-live |
| Persistence | Local sandboxes keep packages and agent state until removed; cloud supports snapshots and volumes; sbx move copies a sandbox between local and cloud |
| GPU | Local only, GPU passthrough on supported hosts; not in cloud sandboxes |
| Networking | Deny-by-default network policy; outbound TCP proxied through the host; credentials injected by a host-side proxy so raw keys never enter the VM |
| Pricing | CLI and local sandboxes free, including commercial use. Cloud sandboxes metered per second; per-unit rates not published |
| Free tier | Local use free; one-time credit for cloud sign-ups |
| Compliance | Not documented |
| Regions | Not documented |
Facts from Docker Sandboxes’s public documentation, verified November 8, 2026. Performance numbers are vendor claims.
Strengths and trade-offs
Strengths
- You want to let a coding agent run unattended on your laptop safely
- Your agent needs to build and run Docker containers
- You want local sandboxes for free
Trade-offs
- Not open source
- Cloud offering is experimental with unpublished rates
- Primarily a developer tool rather than a multi-tenant platform
Best for: Running coding agents unsupervised on a laptop with microVM isolation.
Where Docker Sandboxes ranks
How Docker Sandboxes compares
| Sandbox | Isolation | Open source | Self-host / BYOC | Cold start (vendor) | Max session | Snapshots / pause | GPU | SDKs |
|---|---|---|---|---|---|---|---|---|
| Docker Sandboxes | MicroVM | No | Yes / No | Not documented | Until removed (local) | Yes / Yes | Yes | sbx CLI, TypeScript (cloud), REST API (cloud) |
| Anthropic Sandbox Runtime | OS-level (Seatbelt / bubblewrap) | Yes | Yes / Not documented | Process start | Not documented | No / No | Not documented | CLI (srt), TypeScript (npm) |
| Microsandbox | MicroVM (libkrun) | Yes | Yes / Yes | <100 ms | Not documented | Yes / Not documented | No | TypeScript, Python, Rust, Go, Ruby, CLI, MCP server |
| Daytona | Containers or VMs | No | Not documented / Yes | <90 ms | Unlimited | Yes / Yes | Yes | Python, TypeScript, Ruby, Go, Java |
| E2B | Firecracker microVM | Yes | Yes / Yes | Not documented | 1 h / 24 h (Pro) | Yes / Yes | No | Python, JavaScript/TypeScript |
Head-to-head: Docker Sandboxes vs Anthropic Sandbox Runtime
Frequently asked questions
What is Docker Sandboxes?
sbx CLI for running AI coding agents in microVM sandboxes on your machine, with an experimental Docker-hosted cloud. The easiest way to give local coding agents a real microVM boundary.How does Docker Sandboxes isolate code?
Is Docker Sandboxes open source?
How much does Docker Sandboxes cost?
What are the best Docker Sandboxes alternatives?
Sources
Cite this page
Agent Sandboxes. (2026). Docker Sandboxes. agentsandboxes.org. Last reviewed November 8, 2026. https://agentsandboxes.org/sandboxes/docker-sandboxes/
Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.