AI agents don't just chat any more. Coding assistants, desktop agents and local AI apps now run commands, write files and call tools on your PC, which raises an obvious question: what stops one from touching files it shouldn't? On Windows, a growing part of the answer is Microsoft Execution Containers, or MXC. This explainer is based on Microsoft's own documentation, its Windows Developer Blog announcement and the MXC GitHub repository, all read on 28 November 2026. How to tell whether the AI apps you use rely on it.
MXC in one paragraph
Microsoft describes MXC as an open-source, policy-driven execution layer for untrusted code. An app that runs AI-generated commands, plugins or tools declares what each job needs, such as the folders it may read or write and the network destinations it may contact, and MXC runs the job inside a container that enforces those limits. Microsoft's key design point is that the policy sits outside the agent's control, so the agent or the code it generates "cannot grant itself additional access". The project is MIT-licensed on GitHub, and Microsoft's blog post of 7 October 2026 says MXC is now generally available.
Why AI agents need a boundary
Microsoft's own example is a coding agent asked to update a website. It needs to read and write the website's code and run build tools, and it may need to read the server configuration, but it shouldn't change it. Without a boundary, the agent might decide editing that configuration is the quickest way to finish the job. With MXC, the developer grants access to the repository and read-only access to the configuration, and the container blocks anything else "regardless of what the model, generated code, plugin, or tool decides to do", as Microsoft puts it.
That's the gap MXC fills. Many AI apps ask before risky actions, but an approval prompt only helps if the agent asks. A boundary enforced by the operating system is designed to hold even when the model gets something wrong.
What an MXC policy controls
Microsoft's blog lists five policy areas:
Policy area | What it controls |
|---|
Containment | The type of isolation the job runs in, such as a process or session container |
Process | The command, arguments, working folder and environment used to start it |
File system | Folders it can change, folders it can only read, and folders it can't access at all |
Network | Inbound and outbound connections, including access to services on the PC itself through loopback |
User interface | Whether it can see or interact with the desktop |
The GitHub project adds UI controls for the clipboard and display, and network options including proxy support and outbound blocking. Microsoft's sample request in the README simply sets outbound network access to deny by default.
The different kinds of container
MXC is not one sandbox but a common front end for several. According to Microsoft's platform support documentation and blog:
Process container (Windows, macOS and Linux): the lightweight default, using AppContainer on Windows (MXC's ProcessContainer), Seatbelt on macOS and Bubblewrap on Linux. Microsoft pitches it at responsive jobs such as running model-generated code and tools.
Session container (Windows 11 only): runs an agent under a separate Windows account and session, with its own desktop, clipboard and input, for long-running agents and automation.
WSL container, or WSLc (Windows 11 only): a Linux environment through the Windows Subsystem for Linux, for agent toolchains that expect Linux.
MicroVM (experimental): a virtualised boundary for higher-risk work. The GitHub README says it's currently available on Windows x64 only.
The documentation for MXC v1.0.0 says its standard SDKs can create ProcessContainer, IsolationSession and WSLc containers on Windows, Bubblewrap and LXC on Linux, and Seatbelt on macOS. Windows Sandbox, MicroVM and Hyperlight backends are experimental and can't be created through those standard APIs. The GitHub README lists Windows 11 on x64 or ARM64 as the Windows host platform.
One detail is worth knowing: Microsoft's architecture documentation notes that session isolation separates users and sessions but "doesn't restrict what the workload can access". On Windows, the session container rejects file and UI policies and must allow network access, so it's about separating an agent from your own session rather than locking down its files.
Learning, permissive and enforcement modes
Writing a tight policy is hard when you don't know everything a tool needs, so MXC has three modes, according to Microsoft's blog:
Mode | What happens to access the policy doesn't allow | Activity report |
|---|
Enforcement | Blocked | No |
Learning | Blocked and recorded | Yes |
Permissive | Allowed and recorded | Yes |
Microsoft says the activity report showing what a job tried to access is available only with Windows process containers. The GitHub README also describes an audit mode for policy authors and warns that it "turns off all sandbox security", so it should never be used to run untrusted code.
Which AI apps use MXC?
Microsoft's October blog says agents and frameworks already supporting MXC include GitHub Copilot, OpenClaw, OpenAI Codex, Replit, LM Studio and Unsloth AI, and that NVIDIA has integrated its OpenShell sandbox stack with MXC. It lists Anthropic's Claude Code, Hermes Agent by Nous Research, Perplexity and Raycast among those planning support.
Since then, Lablup's AI:GO 2.0 local AI app has added an MXC sandbox for the Python and shell commands its agents run; Lablup says those commands can only read and write a designated sandbox folder, with network access blocked by default. If you use OpenAI Codex, which is on Microsoft's list, our guide to using Codex CLI with Ollama covers its sandbox settings.
As an everyday user, you don't install or configure MXC yourself. MXC is a software development kit that developers build into their apps, so whether you benefit depends on the app. Check its documentation or settings for a sandbox option, and if it offers MXC on Windows, leave it switched on.
MXC vs Windows Sandbox
They sound similar but do different jobs. Windows Sandbox is a feature you open yourself: Microsoft describes it as a disposable, lightweight virtual machine with a separate kernel, available on Windows 10 and 11 Pro, Enterprise and Education. It gives you a clean desktop each time, discards everything when you close it, and has networking switched on by default unless you change its configuration file.
MXC works inside an app. It wraps individual commands or whole agents in a container with specific file, network and UI rules, so the agent can still work on your real project folder without seeing the rest of your files. If you want to try an unknown AI tool or model runner without risking your main install, Windows Sandbox (or a full virtual machine) is the practical choice today. If you want an agent to work on your files safely day to day, look for apps that support MXC. Our comparisons of Windows Sandbox vs Hyper-V and Windows Sandbox vs Sandboxie-Plus cover the user-facing options.
What MXC doesn't do
Microsoft is careful about the limits. Its documentation says containment "doesn't make generated instructions, outputs, or permitted actions trustworthy". If you give an agent write access to a folder, it can still delete or overwrite what's in it, and anything you allow it to send over the network can still leave your PC. Microsoft also says the host app must stay in charge of policy, and an agent must not choose or expand its own permissions without trusted logic or human approval.
The GitHub README also notes telemetry: on eligible Windows builds, MXC sends four Required diagnostic data events to Microsoft describing execution start and end, failures and process exits, and these can't be switched off by consent settings or administrative policy. Local open-source debug builds aren't set up to send them.
So treat MXC as a seat belt, not a reason to stop paying attention. Keep backups of anything an agent works on, give it a dedicated folder rather than your whole user profile, and read approval prompts properly. For more on the wider picture, see our guides to the best local AI agent apps, what MCP is and OpenClaw vs NemoClaw, which looks at NVIDIA's OpenShell sandbox.