cd /news/ai-products/local-sandboxing-in-the-github-copil… · home topics ai-products article
[ARTICLE · art-138280] src=github.blog ↗ pub= topic=ai-products verified=true sentiment=· neutral

Local sandboxing in the GitHub Copilot app

GitHub launched local sandboxing in public preview for the GitHub Copilot app, letting developers configure per-project limits on filesystem access, network resources, and credentials for local repository and working tree sessions. The feature is off by default and is enabled by turning on "Sandbox new sessions" in app settings or by entering /sandbox on for an active local session, and sandboxed shells fail with an error rather than running unsandboxed if the operating system cannot enforce the requested policy. Local sandboxing does not apply to cloud sandbox sessions or sessions on a remote host, and GitHub Copilot app and Copilot CLI sandbox settings are configured separately.

by read1 min views2 publishedSep 23, 2026
Local sandboxing in the GitHub Copilot app
Image: GitHub Changelog

Local sandboxing helps reduce the potential impact of unintended commands by limiting access to files, network resources, and credentials on your machine. In the GitHub Copilot app, you configure it per project for local repository and working tree sessions.

The project’s sandbox settings include:

  • Filesystem: Additional read/write, additional read-only, and denied folder lists.
  • Network: Outbound internet and local network settings.
  • Credentials: Git credentials for authenticated HTTPS git operations, and GitHub CLI credentials for GitHub CLI authentication.

These project settings describe the policy that the app requests when a sandboxed session starts. The effective policy can be more restrictive when enterprise-managed settings apply.

If your operating system cannot enforce the requested policy, the sandboxed shell fails with an error rather than running without a sandbox.

## [Get started](#get-started)

Local sandboxing is off by default. Open the app settings, select your project, and turn on Sandbox new sessions under “Sandbox”. This applies to new sessions in the project, not sessions already running. Changes to filesystem, network, and credential settings apply to new sessions or when an existing session restarts.

To enable sandboxing for an active local session, enter /sandbox on. This changes that session without changing the project default.

Local sandboxing does not apply to cloud sandbox sessions or sessions running on a remote host. GitHub Copilot app and Copilot CLI sandbox settings are configured separately.

Local sandboxing is in public preview and subject to change.

Learn more about configuring local sandboxing in the GitHub Copilot app.

── more in #ai-products 4 stories · sorted by recency
── more on @github 3 stories trending now
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/local-sandboxing-in-…] indexed:0 read:1min 2026-09-23 ·