Menu

GitHub Copilot MXC Local Sandbox Availability: What Developers Need to Know

As of October 7, 2026, local sandboxing for GitHub Copilot is generally available across GitHub Copilot CLI, the GitHub Copilot app, and VS Code sessions using Agent Host. The feature, powered by Microsoft Execution Container (MXC) technology, provides a secure execution boundary for agentic workflows directly on a developer's local machine, with cross-platform support spanning Windows, macOS, and Linux. It is included with standard GitHub Copilot subscriptions at no additional cost.

How MXC Powers the Local Sandbox Architecture

Microsoft Execution Container serves as the isolation engine underneath GitHub Copilot's local sandboxing capability. Rather than wrapping Copilot in a traditional virtual machine or heavyweight container runtime, MXC translates a common declarative sandbox policy into native operating-system controls. On Windows, it leverages OS-level primitives;on macOS and Linux, it maps the same policy to platform-specific isolation mechanisms. The result is a consistent security posture regardless of which operating system a developer uses.

This translation layer matters because agentic coding workflows introduce a fundamentally different threat model compared to traditional IDE usage. When a developer asks Copilot to run shell commands, execute build scripts, or interact with local toolchains, those operations inherit the permissions of the user session by default. A command generated by a language model that inadvertently includes a destructive operation, or one triggered by a prompt injection scenario, could modify arbitrary files, exfiltrate environment variables, or reach out to external network endpoints. MXC constrains this blast radius at the kernel level, enforcing restrictions that the agent process itself cannot bypass. Notably, sandbox policies apply to tool execution independently of which model Copilot uses, meaning model execution and tool isolation are treated as separate concerns in the architecture.

Policy Dimensions and Enforcement Model

Local sandbox policies cover three primary dimensions: filesystem access, network access, and credential exposure. On the filesystem front, developers and organizations can specify which directories Copilot-initiated commands may read or modify. This includes the ability to mark certain paths as read-only, grant read-write access to specific project directories, and deny access to sensitive locations entirely. The workspace directory is trusted by default, minimizing friction for common workflows while still blocking access to the broader filesystem.

Network controls allow granular toggling of outbound internet access and local network communication. This proves particularly valuable when Copilot interacts with local services such as language servers or MCP (Model Context Protocol) servers. An organization can permit Copilot to communicate with a locally running MCP server on a known port while blocking arbitrary internet egress, preserving the utility of tool-augmented workflows without exposing the machine to unnecessary external connections.

Credential isolation addresses a persistent pain point in agentic development. Git credentials and GitHub CLI authentication tokens are commonly available in a developer's environment, and an unconstrained agent process could read and transmit these secrets. Under sandbox policies, Copilot's tool execution environment operates without direct access to stored credentials unless explicitly permitted. This applies to both interactive HTTPS Git operations and programmatic GitHub CLI usage.

Enterprise Governance and Managed Settings

For organizations adopting Copilot at scale, the enterprise-managed settings layer introduces a critical capability: administrators can centrally require sandboxing and enforce policies that individual developers cannot weaken. This is delivered through Microsoft Intune and other MDM platforms, enabling security teams to define organization-wide sandbox policies that apply across all managed devices.

The enterprise policy stack has been progressively built out throughout 2026. In August, GitHub shipped enterprise managed settings for MCP servers, giving administrators control over which MCP endpoints Copilot clients may connect to. September brought enterprise-managed sandbox support for JetBrains IDEs and enterprise-managed permissions for Copilot agent operations, allowing organizations to categorize operations as blocked, requiring human approval, or permitted without prompts. These capabilities feed into the local sandboxing model: when an enterprise policy mandates sandboxing, a session that cannot enforce the requested policy fails with an error rather than running without isolation. This fail-closed design ensures that security posture is never silently degraded.

The combination of MXC-based isolation and managed policy enforcement positions organizations to adopt more autonomous agent workflows, such as Copilot autonomously iterating on pull request feedback or running multi-step refactoring pipelines, while maintaining clear and auditable boundaries around what the agent can access.

Configuration Model and Practical Usage

Local sandboxing is disabled by default and must be enabled per project or per session. In the GitHub Copilot app, developers open project settings and toggle "Sandbox new sessions" under the sandbox configuration panel. This applies to new sessions going forward;already-running sessions are unaffected until restarted. For an active session, entering /sandbox on in the Copilot chat enables sandboxing for that session alone without altering the project default.

Project-level sandbox settings expose controls for additional read-write paths, additional read-only paths, denied folder lists, outbound internet and local network toggles, and credential permissions for Git and GitHub CLI. These settings describe the policy the app requests when a sandboxed session starts. The effective policy may be more restrictive when enterprise-managed settings apply, but never more permissive than what the project configuration specifies.

In Copilot CLI, sandboxing integrates with Docker's sandbox tooling. Developers run sbx run copilot ~/my-project to launch a sandboxed Copilot session with the workspace directory pre-trusted. Authentication is handled through stored secrets, where sbx secret set github --command 'gh auth token' provisions the necessary token without exposing it to the sandbox filesystem. The Docker template docker/sandbox-templates:copilot provides a preconfigured base image that trusts the workspace directory out of the box.

The GitHub Copilot app and Copilot CLI maintain separate sandbox configurations, and local sandboxing does not apply to cloud sandbox sessions or sessions running on remote hosts. This separation allows teams to define different policies for local development versus ephemeral cloud environments.

Timeline from Preview to General Availability

The journey to general availability spanned roughly four months. Local and cloud sandboxes for GitHub Copilot entered public preview on June 2, 2026, with an initial focus on isolating shell command execution initiated by Copilot. The preview laid the groundwork for broader CLI-level isolation as agentic workflows matured. Throughout the summer, Microsoft iterated on the underlying MXC technology, which also reached general availability on Windows 11 as part of a broader push to position the operating system as a secure host for AI agents.

In September 2026, local sandboxing reached the GitHub Copilot app in public preview, giving developers per-project configuration controls for filesystem, network, and credential policies. Enterprise-managed sandbox support followed for JetBrains environments. The October 7 GA announcement consolidated these threads into a unified release, making local sandboxing production-ready across the three primary Copilot surfaces: CLI, desktop app, and VS Code with Agent Host.

The pace of development reflects the industry's growing recognition that agentic coding tools require a fundamentally different security model than passive code completion. As language models gain the ability to execute commands, modify files, and interact with networked services, the execution boundary becomes as critical as the model's output quality. MXC-based local sandboxing represents one approach to solving this problem at the operating system level rather than relying solely on application-layer guardrails.

---

Frequently Asked Questions

Is local sandboxing available on all platforms?

Yes. MXC translates sandbox policies into native OS controls on Windows, macOS, and Linux. However, if a particular operating system cannot enforce the requested policy, the sandboxed session will fail with an error rather than run without isolation.

Does enabling local sandboxing affect Copilot's response quality or latency?

No. Sandbox policies apply only to tool execution, not to model inference. The model itself runs outside the sandbox boundary. The isolation layer adds negligible overhead to command execution since MXC uses native OS primitives rather than emulation or full virtualization.

Can I use local sandboxing alongside cloud sandboxes?

Yes. Local sandboxing and cloud sandboxes serve different use cases and are configured independently. Local sandboxing secures agent execution on your own machine, while cloud sandboxes provide fully isolated ephemeral Linux environments hosted by GitHub. A developer can use both, depending on whether a task requires local context or benefits from cloud offloading.

How do enterprise-managed sandbox policies interact with per-project settings?

Enterprise policies take precedence and can only make sandbox restrictions more stringent. If an organization requires sandboxing for all sessions, a developer cannot disable it at the project level. Project settings can further restrict access within the enterprise policy's boundaries but cannot relax them. The effective policy is always the intersection of both configurations, with the enterprise policy acting as the upper bound.