Docker Sandboxes – Disposable, isolated sandboxes for AI agents
TL;DR Highlight
Running agents in microVMs lets you skip permission prompts while keeping the host safe
Who Should Read
A developer who wants to run Claude Code or Codex unattended without permission prompts but worries about their laptop
Core Mechanics
- It's a microVM, not a container
- Each sandbox gets its own kernel and private Docker Engine.
- Docker says there is no path back to the host.
- Isolation replaces permission prompts
- --dangerously-skip-permissions is the default.
- The boundary is infrastructure, not the agent's judgment.
- docker compose works inside the sandbox
- Each sandbox has its own private Docker Engine.
- No socket mounting or host privileges are needed.
- One YAML Kit pins the environment
- It sets tools, credentials, network rules, and config together.
- Run it with sbx run claude --kit <url>.
- Secrets and MCP are scoped per sandbox
- Real secrets stay on the host outside the VM.
- sbx mcp enable turns on an MCP server for one sandbox only.
- sbx move shifts sandboxes between local and cloud
- The same microVM boundary applies on both sides.
- Cloud pricing runs from $0.07/hour (Micro, 1 vCPU, 2GB) to $1.12/hour (XL, 16 vCPU, 32GB).
Community Reactions
- The login requirement was the top complaint
- Several commenters said local sandboxes shouldn't need a login.
- Some preferred open source options without signup.
- Outbound firewall and secret injection are the draw
- One user said these two features made it their daily driver.
- They mount each git worktree in a per-repo sandbox.
- Linux support and custom mounts are missing
- One commenter said Linux support issues went unanswered.
- Another couldn't mount two directories for context.
- Many alternatives were shared
- Locki, Gondolin, Tart, Apple container, and devcontainers came up.
- One commenter argued permission isolation is the real fix.
How to Apply
- Install sbx and try it on a small repo
- Run brew install docker/tap/sbx, then sbx run claude.
- Compare the agent's changes against your host state.
- Enable MCP servers per project
- Run sbx mcp enable github-official --sandbox <name>.
- Don't enable it on other sandboxes.
- Write a team Kit YAML
- Put tools, network rules, and credentials in one YAML file.
- Have everyone start from it with the --kit option.
- Check login and Linux support first
- Confirm it fits your team's environment.
- Compare the open source alternatives from the comments if needed.
Try It
# Paste into your shell (macOS, install command from the source)
brew trust docker/tap && brew install docker/tap/sbx
# Run Claude Code in a sandbox
sbx run claude
# Enable GitHub MCP for one sandbox only
sbx mcp ls
sbx mcp enable github-official --sandbox {{sandbox-name}}
# Delete when done
sbx rm {{sandbox-name}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques