Microsoft Execution Containers (MXC)

Microsoft Execution Containers (MXC) is an open-source, policy-driven execution technology for running workloads with defined resource permissions. You can use the .NET, TypeScript, or Rust SDK in your app to select a workload, describe what it can access, and run it in a supported containment environment.

Apps, agents, and developer tools often run code that they didn't create or fully control, such as AI-generated commands, third-party tools, and user-provided scripts. Without containment, that code can inherit broad access to files, credentials, network services, and other resources. MXC helps you limit that access to what the task requires.

MXC supports Windows, Linux, and macOS through platform-specific containment backends. A container doesn't necessarily mean a virtual machine or a container image: a workload can run in an operating-system process sandbox, a separate session, or a virtualized environment. Available features and restrictions depend on the MXC release, backend, and host.

These Learn articles explain the concepts and integration workflow. The MXC documentation on GitHub provides detailed SDK, schema, backend, and implementation guidance.

Learn more