MXC Sandbox for Codex on Windows
Codex on Windows can now run inside Microsoft's new agent container, which sets up faster and locks down network and file access more tightly. Requires a compatible Windows 11 device.
Details
- Built on Microsoft Execution Containers (MXC), Microsoft's system for running AI agents in a container with declared limits on files, network, processes, and desktop access
- Setup doesn't need administrator approval, unlike Codex's older elevated Windows sandbox
- OpenAI recommends it as the default sandbox on compatible devices; choosing it explicitly fails rather than quietly falling back to the older sandbox
- Requires Windows 11 24H2 build 26100.9278 or later, or 25H2 build 26200.9278 or later
- Organizations can block it through Codex's managed admin settings
Best for
Letting Codex run commands on a Windows machine while keeping it walled off from files and network access it shouldn't touch.
When to use it
You use Codex on Windows and the old sandbox needed admin setup or felt too loose for your security team.
Who benefits
Windows-based developers and the IT admins who approve what coding agents can do on company machines.
Join the newsletter to get ahead with AI.
I share strategies, new modules, free guides, and tools to get you better at using AI in your work.
Leading a team? See team programs →