- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · secrets access · runs shell
- What's inside
The option
| Option | AConfig · v1.0.0+wwfix.2Microsoft MXC TypeScript SDK for sandboxed commands |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · secrets access · runs shell |
| What's inside |
What this thread does
As of November 2026, MXC v1.1.0 (released 2026-11-15) embeds OS sandboxing in your app across Windows, Linux and macOS. Do first: use the versioned Node entrypoint @microsoft/mxc-sdk/v1 and a deny-egress policy from Microsoft’s v1.1.0 example.
What it is
MXC (Microsoft eXecution Container) wraps each platform's own containment behind one versioned JSON policy and a TypeScript SDK, @microsoft/mxc-sdk. @simonw pointed to it on 8 October 2026, and Unsloth said it added MXC sandboxing to its product the same day (its own figure: under 100 ms of overhead).
| Platform | Default backend | Others |
|---|---|---|
| Windows 11 24H2+ | process container (AppContainer) | Windows Sandbox, WSLC, micro-VM, Hyperlight, isolation session (some experimental or Insider-only) |
| Linux x64/ARM64 | bubblewrap (needs bwrap installed) | LXC, Hyperlight |
| macOS | Seatbelt | none |
A policy sets read-only and read-write paths, outbound network (allow, deny, proxy, host filtering depending on backend) and UI access (clipboard, display). The SDK has one-shot run, streaming spawn, a PTY mode, and a provision/start/exec/stop lifecycle for persistent sandboxes.
When to use it
- You are building an agent, a code-execution tool or an app that runs model-written code, and need one sandbox API across all three OSes.
- You ship on Windows, where bubblewrap and Seatbelt don't exist.
Alternatives
- Anthropic's sandbox runtime (
srt, Apache-2.0): a CLI that wraps any command or local MCP server, with a network allow-list proxy. Easier if you want to sandbox an existing tool rather than embed a library. See the thread on approving fewer agent commands without full access. - Microsoft Quicksand (MIT): a Python API that launches and snapshots QEMU virtual machines for sandboxing agents, with prebuilt Linux images; stronger isolation, more overhead.
- Containers or a cloud VM per agent: see the thread on giving each coding agent its own cloud machine.
Caveats (as of November 2026)
- On Linux and macOS, proxy usage is cooperative, but the documented proxy-only policies enforce egress confinement. Use
default: 'deny'for egress when you don't need the network. - Some features differ by backend. Windows ProcessContainer in v1.1.0 requires native PSEC support; unsupported hosts or policies are rejected before workload launch. Check the backend guides and runtime probes before relying on a policy (schema; mynameisbart’s host-capability report, 29 October 2026).
- Experimental backends need an explicit opt-in.
- The SDK requires Node.js 24 or later. On supported Windows builds, Required diagnostic events are collected without request opt-in or user consent; telemetry is unavailable on Linux and macOS.
- A sandbox reduces damage from bad commands; it doesn't make untrusted code safe to run against your real secrets. Keep credentials out of readable paths and environment.
Patch release
MXC v1.0.1 (17 October 2026) keeps policy schema 1.0.0; do not change a policy’s version to 1.0.1. It fixes Seatbelt denied-path metadata exposure, macOS PTY deadlocks, Bubblewrap DNS with loopback resolvers, and WSLC execution/lifecycle bugs. It also rejects WSLC create-and-run requests combining port mappings with omitted or all-deny networking. Windows 11 version alone is insufficient: check Microsoft’s host-build table.
The independent Copilot integration report by mynameisbart (29 October) reports standalone MXC 1.0.1 launching shells on one managed Windows host while Copilot’s preflight failed; the issue was closed as completed on 2026-11-04. It does not establish that every integration succeeds.
Not for: turning on a sandbox in Claude Code or Codex
SDK behavior checked 2026-11-15; other evidence retains the 2026-11-03 review date.
Started from a post by @simonw, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.