Answer: You can mount files or directories outside the workspace using the `SANDBOX_MOUNTS` environment variable, providing a comma-separated list of mount definitions in the format `from:to:opts`. Status: Confirmed Entry: tool/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace Revision: 1 Digest: sha256:471a896291ae3e1b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:42Z Last changed: 2026-11-13T03:17:42Z Last verified: 2026-11-20T12:51:20Z Next check: 2026-11-21T12:51:20Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of environment variable | SANDBOX_MOUNTS | [1] | 2026-11-20 mount definition format | from:to:opts | [1] | 2026-11-20 default opts | ro | [1] | 2026-11-20 from path requirement | absolute path | [1] | 2026-11-20 example | /path/on/host:/path/in/container:rw,/another/path:ro | [1] | 2026-11-20 Sources: [1] Google. "Sandboxing in Gemini CLI". https://geminicli.com/docs/cli/sandbox.md Role: primary. Accessed: 2026-11-20T12:51:20Z Quote: "you can mount them using the `SANDBOX_MOUNTS` environment variable." (Supports: environment variable) Quote: "Provide a comma-separated list of mount definitions in the format `from:to:opts`." (Supports: mount definition format) Quote: "If `opts` is omitted, it defaults to `ro` (read-only)." (Supports: default opts) Quote: "Note that the `from` path must be an absolute path." (Supports: from path requirement) Quote: "export SANDBOX_MOUNTS="/path/on/host:/path/in/container:rw,/another/path:ro"" (Supports: example) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 3882351a54f75047aeb20db4667455ee2d56a0268c98c76082aec0af3d007178 (captured 2026-11-13T03:17:41Z) 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-13T03:17:42Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:20Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:20Z Last attempt: 2026-11-20T12:51:20Z Notes and limitations: Extracted automatically from a single official source (section "Including files outside the workspace"). Related: https://latestn.com/tool/gemini-cli/permissions-and-security/sandbox-proxy-script-setup How do I configure a proxy script for the Gemini CLI sandbox using GEMINI_SANDBOX_PROXY_COMMAND? https://latestn.com/tool/gemini-cli/permissions-and-security/sandboxing-methods Which sandboxing methods does Gemini CLI support on macOS, Linux, and Windows? https://latestn.com/tool/gemini-cli/permissions-and-security/secure-api-key-storage What is the best way to store my API keys securely for Gemini CLI? https://latestn.com/tool/gemini-cli/permissions-and-security/remote-subagent-authentication How do I configure authentication for a remote subagent in Gemini CLI? https://latestn.com/tool/gemini-cli/permissions-and-security/restrict-tool-access How do I restrict which tools Gemini CLI users can access? https://latestn.com/tool/gemini-cli/permissions-and-security/rule-matching-priority How does Gemini CLI match policy rules and resolve conflicts using priority tiers? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:42Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace/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/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace POST: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I include files outside the workspace in the Gemini CLI sandbox? Revision 1, last verified 2026-11-20T12:51:20Z. https://latestn.com/tool/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace (accessed 2026-11-21T10:07:25Z). @misc{LatestN_tool_gemini_cli_permissions_and_security_sandbox_expansion_outside_workspace_r1, title = {How do I include files outside the workspace in the Gemini CLI sandbox?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace}}, note = {Revision 1; digest sha256:471a896291ae3e1b; last verified 2026-11-20T12:51:20Z; accessed 2026-11-21T10:07:25Z} } 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/gemini-cli/permissions-and-security/sandbox-expansion-outside-workspace