Microsoft MXC
Microsoft Execution Containers (MXC) is Microsoft's open-source sandboxed code-execution system for running untrusted code: model output, plugins, and agent tools. It works on Windows, Linux, and macOS, and it layers several containment backends, from OS-native process sandboxes to full VMs, behind one JSON configuration schema and a TypeScript SDK. Public coverage on 2026-06-02 (per NOVALOGIQ) placed it alongside partners OpenAI, Nvidia, Manus, Nous Research, and OpenClaw.
Key Features
- Cross-platform: Platform-appropriate containment backends for Windows, Linux, and macOS.
- Backend-agnostic config: A versioned JSON schema defines execution parameters and security policies.
- Many containment backends: ProcessContainer, Windows Sandbox, LXC, Bubblewrap, Seatbelt (macOS), MicroVM (NanVix), Hyperlight, IsolationSession, and WSLC.
- Policy-driven sandboxing: Filesystem policy (read-only and read-write path lists), network policy (proxy, allow/block outbound, host filtering), and UI policy (clipboard, display, GUI).
- TypeScript SDK: The
@microsoft/mxc-sdknpm package offers one-shot and state-aware APIs.
Use Cases
Who Should Use This Tool?
- Agent runtime builders who must isolate model output that can execute code or call tools.
- Plugin and tool developers shipping third-party code into a host without trusting it.
- Enterprise teams that need policy-driven permissions for what an agent can read, write, or reach over the network.
Problems It Solves
- Untrusted model output: An agent's next token can become a command; MXC wraps execution in a sandbox.
- Granular access control: Read-only paths, blocked outbound traffic, and disabled clipboard/display are configured as policy, not code.
- One config across OSes: The same JSON schema targets Windows, Linux, or macOS.
Pricing
| Plan | Price | Notes |
|---|---|---|
| MXC (MIT) | $0 | Open source, self-hostable. |
| @microsoft/mxc-sdk | $0 | TypeScript SDK on npm. |
You pay only for the infrastructure you run the sandboxes on.
Advantages & Unique Selling Points
- Depth of isolation: Pick the backend that matches your threat model, from a process container to a micro-VM.
- Policy as data: Filesystem, network, and UI restrictions live in a versioned JSON schema.
- Very early, so verify: The repo explicitly warns it is an early preview; current MXC policies can be overly permissive and should not be treated as a security boundary.
Getting Started
- Clone microsoft/mxc.
- Read the README warning before relying on any profile as a hardened boundary.
- Use the default backend (Bubblewrap on Linux, Seatbelt on macOS, ProcessContainer on Windows 11 24H2+) for stable one-shot sandboxes.
- Set
experimental: trueor the--experimentalflag before using Windows Sandbox, WSLC, micro-VM, Hyperlight, or IsolationSession.
Frequently Asked Questions
Is it a security boundary today?
No. The repository says the early preview is not yet a security boundary and that generated policies may be overly permissive. Verify before production.
Does it replace a container runtime?
It complements one. It is specifically a containment layer for agent execution with policy controls, not a general-purpose orchestrator.
Alternatives
- Microsoft ThinkingBox: Sandbox and benchmark for checking whether agents complete tasks reliably.
- OpenClaw: The open-source agent that ran inside MXC during the Windows sandbox demo.
- OpenSandbox: Another sandbox for running agent-generated code.
Tips
- Never depend on MXC as your only boundary while it is an early preview.
- Select the backend by OS and by your minimum acceptable isolation level, not by habit.
- Test that network and filesystem policies actually hold before shipping an autonomous agent.
Conclusion
Microsoft MXC is a free, cross-platform containment layer for agent code execution, designed so you can express filesystem, network, and UI permissions as policy and pick an isolation backend to match the risk. Because it is an early preview, treat it as the foundation to evaluate, not the finished security boundary.
Comments
No comments yet. Be the first to comment!
Related Tools
Microsoft ThinkingBox
github.com/microsoft/thinkingbox
Open-source Microsoft sandbox and benchmark that verifies AI agents reliably complete stateful business tasks, exposing the discovery-reliability gap.
Cloudflare Computer
github.com/cloudflare/computer
Preview MIT agent filesystem on Durable Objects. Rechecked: 8,355 GitHub stars. Not production. Pay Workers usage, not a $0 computer SKU.
DeerFlow
deerflow.tech
ByteDance's open-source SuperAgent harness for long-horizon tasks. Orchestrates sub-agents, memory, sandboxes, and skills on LangGraph, with a browser-equipped Docker sandbox and multi-model support.
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.
Stop Cramming AI Assistants into Chat Boxes: Clawdbot Picked the Wrong Battlefield
Clawdbot is convenient, but putting it inside Slack or Discord was the wrong design choice from day one. Chat tools are not for operating tasks, and AI isn't for chatting.

Grok Bot and Hermes Bot: one person finally gets a think tank and a secretariat
Grok Bot now ships with Cursor Pro+. Hermes Bot runs on a VPS. They are not smarter chat boxes. The think tank advises, the secretariat executes, and you still make the call.