Answer: To enable local sandboxing, enter the command /sandbox enable in an interactive Copilot CLI session. Sandboxing starts being used immediately for the current session and continues for current and future interactive sessions and programmatic sessions. Status: Confirmed Entry: tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli Revision: 3 Digest: sha256:807fa091cda67737 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:23:32Z Last changed: 2026-11-18T12:55:38Z (scope: — → current and future interactive sessions, and for programmatic sessions) Last verified: 2026-11-20T13:01:31Z Next check: 2026-11-21T13:01:31Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | /sandbox enable | [1] | 2026-11-20 when applied | immediately | [1] | 2026-11-20 scope | current and future interactive sessions, and for programmatic sessions | [1] | 2026-11-20 restart command | copilot --continue | [1] | 2026-11-20 Sources: [1] GitHub. "Using local sandboxing - GitHub Docs". https://docs.github.com/en/copilot/how-tos/cloud-and-local-sandboxes/using-local-sandboxing Role: primary. Accessed: 2026-11-20T13:01:31Z Quote: "To enable local sandboxing, enter the following command in an interactive Copilot CLI session: Shell /sandbox enable" (Supports: command) Quote: "Sandboxing starts being used immediately for the current session." (Supports: when applied) Quote: "it continues to be used for the current and future interactive sessions, and for programmatic sessions" (Supports: scope) Quote: "Close the session and restart it, for example by running copilot --continue ." (Supports: restart command) Snapshot SHA-256: 736255f931a103331949c7e3210922670f15f591fc4337648a9597df07498485 (captured 2026-11-18T12:55:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T12:55:38Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:01:31Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:01:31Z Last attempt: 2026-11-20T13:01:31Z Notes and limitations: Extracted automatically from a single official source (section "Enabling local sandboxing"). Related: https://latestn.com/tool/github-copilot/permissions-and-security/enable-local-sandboxing-repository How do I enable local sandboxing for a repository in the GitHub Copilot app? https://latestn.com/tool/github-copilot/permissions-and-security/enforce-policies-pretooluse How do I enforce policies on Copilot CLI tool use with a preToolUse hook? https://latestn.com/tool/github-copilot/permissions-and-security/environment-variables-auth How do I use environment variables for authentication in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/permissions-and-security/enable-assisted-permissions-cli How do I enable assisted permissions so GitHub Copilot CLI runs safe commands without manual approval? https://latestn.com/tool/github-copilot/permissions-and-security/enable-copilot-cli-actions-policy How do I enable the policy to use GitHub Copilot CLI in GitHub Actions with GITHUB_TOKEN? https://latestn.com/tool/github-copilot/permissions-and-security/enable-local-sandboxing How do I enable local sandboxing for GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:55:38Z | changed | scope: — → current and future interactive sessions, and for programmatic sessions | [1] 2026-11-18T12:55:38Z | changed | when applied: — → immediately | [1] 2026-11-18T12:55:38Z | changed | scope of persistence: current and future interactive sessions, and for programmatic sessions → — | [1] 2026-11-18T12:55:38Z | changed | when it takes effect: immediately → — | [1] 2026-11-16T12:44:54Z | changed | scope of persistence: — → current and future interactive sessions, and for programmatic sessions | [1] 2026-11-16T12:44:54Z | changed | when it takes effect: — → immediately | [1] 2026-11-16T12:44:54Z | changed | scope: current and future interactive sessions, and for programmatic sessions → — | [1] 2026-11-16T12:44:54Z | changed | when applied: immediately → — | [1] 2026-11-13T03:23:32Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli POST: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable local sandboxing in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:01:31Z. https://latestn.com/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli (accessed 2026-11-21T10:00:01Z). @misc{LatestN_tool_github_copilot_permissions_and_security_enable_local_sandboxing_cli_r3, title = {How do I enable local sandboxing in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli}}, note = {Revision 3; digest sha256:807fa091cda67737; last verified 2026-11-20T13:01:31Z; accessed 2026-11-21T10:00:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/permissions-and-security/enable-local-sandboxing-cli