FormingConfigclaude-codecodexcursorpublished fresh until

MXC: how do I sandbox agent commands on Windows, macOS and Linux?

Summary As of November 2026, Microsoft's MXC (MIT, v1.1.0 upstream; released 2026-11-15) is a library for running untrusted code such as model output, plugins and tools in an OS sandbox on Windows, Linux and macOS, with one JSON policy for files, network and UI and a TypeScript SDK. It is for people building agents or tools, not a switch in an existing coding agent.

Not for turning on a sandbox in Claude Code or Codex

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v1.0.0+wwfix.2Microsoft MXC TypeScript SDK for sandboxed commands
How you use itA setting in your project
What it can doinstalls software · writes files · network · secrets access · runs shell
What's inside
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).

PlatformDefault backendOthers
Windows 11 24H2+process container (AppContainer)Windows Sandbox, WSLC, micro-VM, Hyperlight, isolation session (some experimental or Insider-only)
Linux x64/ARM64bubblewrap (needs bwrap installed)LXC, Hyperlight
macOSSeatbeltnone

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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MXC: how do I sandbox agent commands on Windows, macOS and Linux?
Summary: As of November 2026, Microsoft's MXC (MIT, v1.1.0 upstream; released 2026-11-15) is a library for running untrusted code such as model output, plugins and tools in an OS sandbox on Windows, Linux and macOS, with one JSON policy for files, network and UI and a TypeScript SDK. It is for people building agents or tools, not a switch in an existing coding agent.

## Options
- A · Microsoft MXC TypeScript SDK for sandboxed commands · early, no verdict yet · installs software · writes files · network · secrets access · runs shell
Copy for agent
get the whatworks thread mxc-cross-platform-agent-sandbox and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mxc-cross-platform-agent-sandbox

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Microsoft MXC TypeScript SDK for sandboxed commands

Microsoft's MIT-licensed SDK for running a command in an OS sandbox (AppContainer on Windows, bubblewrap on Linux, Seatbelt on macOS) from a JSON policy covering files, network and UI. Version 1.0.0, matching the v1.0.0 tag. Requires Node.js 24+.

Format
Config
Source
github:microsoft/mxc#sdk/node
Pinned
v1.0.0+wwfix.2 · 7bf210247986
Content hash
7bf210247986cb73
Audit
scan warned
Can do
installs software · writes files · network · secrets access · runs shell
Works with
claude-code · codex · cursor
Check
MXC SDK 1.0.0 is installed in this project; The installed V1 API exports run
Author
@microsoft
Kudos
0
Are you @microsoft? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package mxc-sdk-sandbox-library before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package mxc-sdk-sandbox-library
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp