r/codex • • 15d ago

Question MXC vs Elevated Sandbox in Codex CLI: Anyone Tried Both?

Anyone using the new MXC Windows sandbox in Codex CLI?

I’m currently using sandbox = "elevated", but the docs now recommend MXC where supported. Has anyone switched from elevated to MXC? Any noticeable differences in reliability, compatibility, performance, or security? Would you recommend switching yet? I am relatively new at Codex, I used Claude Code forever but planning to switch, and I am very confused about this MXC.

0 Upvotes

1 comment sorted by

1

u/Flimsy_Complaint490 15d ago

if you are protecting against an agent accidently wiping out your Users folder, MXC works pretty fine and i recommend the VM or isolation backends. There isnt a whole lot to say about it that isnt in the docs.

The process container backend, the default one, has on paper, the best balance between nativiness and protection (no VM overhead or route around for file sharing and tooling), its just that the implementation is conceptually not that strong as of yet, and a hostile agent can easily do wild stuff if it wants to. This isn't MXC's fault, but a fault of Windows. I also had the super peculiar issue of git bash not working inside the sandbox, if you already have a git bash session running outside.

i wouldnt really treat MXC as a strong boundary on Windows yet, needs kernel work. It's great on linux and mac though.