cd /news/ai-agents/cloud-and-local-sandboxes-for-github… · home topics ai-agents article
[ARTICLE · art-19558] src=github.blog pub= topic=ai-agents verified=true sentiment=↑ positive

Cloud and local sandboxes for GitHub Copilot now in public preview

GitHub Copilot now runs inside secure, isolated sandboxes both locally and in the cloud, giving developers and enterprises a controlled environment for agentic workflows. The sandboxes provide restricted access to filesystems, networks, and system capabilities, with local sandboxes built on Microsoft MXC technology and cloud sandboxes hosted by GitHub as fully isolated, ephemeral Linux environments. The feature, now in public preview, allows organizations to enforce policies through Microsoft Intune and other MDM platforms while enabling developers to safely run agent-generated code and offload compute-intensive tasks.

read3 min publishedJun 2, 2026

GitHub Copilot can now run inside secure, isolated sandboxes, both locally on your machine and in the cloud. Sandboxed Copilot experiences provide isolated environments for Copilot’s tool execution locally as well as fully isolated cloud sandboxes hosted by GitHub.

This gives Copilot a safe place to interact with your code, tools, filesystem, and network, all within the policies you define, so developers and enterprises can adopt agentic workflows without giving up isolation or control.

Why it matters for agentic development Copilot is evolving from an in-editor assistant into an agentic coding partner that runs tools, executes commands, and modifies files on a developer’s behalf. As Copilot takes more actions, developers and enterprises need stronger guarantees around security, isolation, and control.

Agentic development is interactive, stateful, and parallel, and it needs an execution layer built for that reality. Cloud and local sandboxes for GitHub Copilot provide that layer natively, with consistent identity, governance, and policy controls built in. As AI agents become a larger part of the software development lifecycle, secure execution environments become foundational infrastructure, and sandboxes provide that layer for Copilot.

Local sandboxes for GitHub Copilot Inside any Copilot session, enable sandboxing with /sandbox enable

. Shell command execution initiated by Copilot for that session runs with restricted access to your filesystem, network, and system capabilities, so you can experiment with agentic workflows while staying in control of what Copilot can touch on your machine. Local sandboxing is built on Microsoft MXC technology for a consistent isolation experience across macOS, Linux, and Windows. Enterprise teams can also centrally configure and enforce local sandbox policies through Microsoft Intune and other MDM platforms. Local sandboxes are included in the standard GitHub Copilot seat.

This release focuses on isolating shell command execution initiated by Copilot, laying the foundation for broader CLI-level isolation as agentic workflows mature.

Key use cases developers and teams can unlock

  • Safely run agent-generated code on your machine through isolated tool execution, without giving Copilot unrestricted access to the filesystem, network, or system.
  • Standardize isolation across macOS, Linux, and Windows with a consistent sandboxing experience built on Microsoft MXC.
  • Apply enterprise policy to local Copilot execution by centrally configuring and enforcing sandbox policies through Microsoft Intune and other MDM platforms.

Cloud sandboxes for GitHub Copilot Launch a fully isolated, ephemeral Linux sandbox hosted by GitHub directly from Copilot with copilot --cloud

. Each session inherits your existing Copilot cloud agent policies, so the security controls your org already trusts apply on day one with no additional setup.

Key use cases developers and teams can unlock

  • Run Copilot tasks in fully isolated cloud environments for stronger security boundaries around agent execution.
  • Continue Copilot sessions across devices, picking up where they left off regardless of where a session was started.
  • Offload compute-intensive workflows and run multiple Copilot tasks in parallel without consuming local resources.

Get started To get started, read the docs for sandboxes for GitHub Copilot in local environments and cloud environments, see pricing for sandboxes for GitHub Copilot in cloud environments, or join the discussion in the GitHub Community. Learn more at our Microsoft Build demo session.

── more in #ai-agents 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cloud-and-local-sand…] indexed:0 read:3min 2026-06-02 ·