Agent sandbox comparison: Microsoft Execution Containers vs Docker Agent vs Agent37, and the defaults that bite Docker Agent's `--sandbox` flag defaults to `false`, making Docker's microVM sandbox the only one of three agent containment layers users can apply themselves to Claude Code or OpenAI Codex as of October 2026, according to a comparison checked on 13 October 2026. Microsoft Execution Containers (MXC) 1.0.0, released 7 October 2026, denies network egress by default but is an SDK agent vendors must embed, used so far only by GitHub Copilot and Codex on Windows, both opt-in. Agent37, launched on Hacker News on 12 October, hosts the agent in a gVisor sandbox for $4.76 a month always on but leaves the public internet open. Agent sandbox comparison: Microsoft Execution Containers vs Docker Agent vs Agent37, and the defaults that bite To contain a coding agent on your own machine in October 2026, use Docker's microVM sandbox: it is the only one of the three you can put around Claude Code https://stackness.dev/tools/claude-code or OpenAI Codex https://stackness.dev/tools/codex-cli yourself today. Microsoft Execution Containers https://stackness.dev/tools/microsoft-execution-containers MXC 1.0.0, released on 7 October 2026, denies network egress by default, but it is an SDK the agent's vendor builds in, and only GitHub Copilot and Codex on Windows use it so far, both opt-in. Docker Agent https://stackness.dev/tools/docker-agent runs its tools in a microVM with a default-deny proxy, but its --sandbox flag defaults to false . Agent37 https://stackness.dev/tools/agent37 , which launched on Hacker News on 12 October, moves the agent to a hosted gVisor sandbox for $4.76 a month always on, with the public internet left open. What is an agent containment layer? An agent containment layer limits what an agent's process can read, write and reach on the network, from outside the agent's control. Microsoft's announcement https://blogs.windows.com/windowsdeveloper/2026/10/07/microsoft-execution-containers-policy-driven-containment-for-ai-agents/ puts the case in one line: "An agent cannot be its own security authority." The layer can sit in three places, and the three products sit in different ones. 1. Around the commands the agent spawns. Claude Code's /sandbox , Codex's workspace-write mode and Copilot's /sandbox enable live here, and so does MXC, which vendors use to build this layer on Windows, Linux and macOS. Claude Code's sandbox docs https://code.claude.com/docs/en/sandboxing say its file tools, hooks and local MCP servers still "run with your full access". 2. Around the whole agent process. Docker Sandboxes https://stackness.dev/tools/docker-sandboxes the sbx CLI boots a microVM per agent, and Docker Agent's --sandbox mode hands its run to it. Anthropic's own advice for the gaps in layer 1 is to "run the Claude Code process itself in a container, virtual machine, or the sandbox runtime". 3. On someone else's machine. Agent37 is one of several hosted options; its founder counted https://news.ycombinator.com/item?id=50060907 "probably 5+ companies doing something similar" in his Y Combinator batch alone. The framing that three containment products shipped in one week is half right. MXC 1.0.0 and GitHub's MXC-based Copilot local sandboxing https://github.blog/changelog/2026-10-07-local-sandboxing-for-github-copilot-now-generally-available/ did ship on 7 October. Docker Agent's sandbox mode and network allowlist were merged in May https://github.com/docker/docker-agent/pull/2888 ; what landed that week was a Hacker News front page and a dev.to post https://dev.to/slabb/docker-just-shipped-the-agent-wall-i-wanted-its-off-by-default-f18 on 9 October about the default, whose author says he did not run the tool. The facts that decide, side by side The deciding facts are where each layer sits, whether egress is denied without you doing anything, and whether you can install it yourself. All values are from each project's docs, release notes and pricing page, checked on 13 October 2026. | | MXC 1.0.0 | Docker Agent --sandbox on Docker Sandboxes | Agent37 | |---|---|---|---| | What it is | SDK the agent vendor embeds | Agent harness plus microVM runtime | Hosted sandbox per agent | | Isolation by default | Process sandbox: AppContainer, Bubblewrap, Seatbelt; VM backends experimental | MicroVM with its own kernel and Docker Engine | gVisor; full VMs cost more | | Turned on by default | Egress and file access deny by default, once the agent uses MXC | No, --sandbox defaults to false | Yes, the agent never runs locally | | Network egress | Deny; allow rules are IP ranges and ports only | Default-deny proxy that allows model providers | Public internet open; host and private networks blocked | | Files | Empty allow lists | Working directory read-write, nothing else from the host | Sandbox's own persistent disk | | Policy | Versioned JSON or typed SDK request | YAML runtime.sandbox , docker agent sandbox allow