Answer: When a folder is untrusted, Gemini CLI runs in a restricted "safe mode" to protect you, disabling several features such as workspace settings, environment variables, extension management, tool auto-acceptance, automatic memory loading, MCP server connections, and custom commands. Status: Confirmed Entry: tool/gemini-cli/permissions-and-security/untrusted-workspace-impact Revision: 1 Digest: sha256:40c89b2d3137f0da (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:53Z Last changed: 2026-11-13T03:17:53Z Last verified: 2026-11-20T12:51:43Z Next check: 2026-11-21T12:51:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of mode | safe mode | [1] | 2026-11-20 workspace settings | Workspace settings are ignored | [1] | 2026-11-20 environment variables | Environment variables are ignored | [1] | 2026-11-20 extension management | Extension management is restricted | [1] | 2026-11-20 tool auto-acceptance | Tool auto-acceptance is disabled | [1] | 2026-11-20 automatic memory loading | Automatic memory loading is disabled | [1] | 2026-11-20 MCP servers | MCP servers do not connect | [1] | 2026-11-20 custom commands | Custom commands are not loaded | [1] | 2026-11-20 Sources: [1] Google. "Trusted Folders". https://geminicli.com/docs/cli/trusted-folders.md Role: primary. Accessed: 2026-11-20T12:51:43Z Quote: "Gemini CLI runs in a restricted "safe mode" to" (Supports: mode) Quote: "**Workspace settings are ignored**: The CLI will **not** load the" (Supports: workspace settings) Quote: "**Environment variables are ignored**: The CLI will **not** load any `.env`" (Supports: environment variables) Quote: "**Extension management is restricted**: You **cannot install, update, or" (Supports: extension management) Quote: "**Tool auto-acceptance is disabled**: You will always be prompted before any" (Supports: tool auto-acceptance) Quote: "**Automatic memory loading is disabled**: The CLI will not automatically" (Supports: automatic memory loading) Quote: "**MCP servers do not connect**: The CLI will not attempt to connect to any" (Supports: MCP servers) Quote: "**Custom commands are not loaded**: The CLI will not load any custom" (Supports: custom commands) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: f994664cdbb7f206bca5ea61cea0004d9e8f039454c0204d068d8f42e1cb0c48 (captured 2026-11-13T03:17:53Z) 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:53Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:43Z Last attempt: 2026-11-20T12:51:43Z Notes and limitations: Extracted automatically from a single official source (section "Why trust matters: The impact of an untrusted workspace"). Related: https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-confirmation Does the Gemini CLI web_fetch tool require confirmation, including in Plan Mode? https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions What network restrictions does the Gemini CLI web_fetch tool apply to prevent access to private or internal addresses? https://latestn.com/tool/gemini-cli/pricing-and-limits/avoid-high-costs-tips What tips help avoid high costs when using Gemini CLI with pay-as-you-go? https://latestn.com/tool/gemini-cli/permissions-and-security/skill-activation-consent How does Gemini CLI activate an Agent Skill and ask for consent? https://latestn.com/tool/gemini-cli/permissions-and-security/skill-security-privacy What security and privacy considerations should I follow when creating Gemini CLI Agent Skills? https://latestn.com/tool/gemini-cli/permissions-and-security/tool-execution-security How does Gemini CLI handle confirmation and sandboxing for tool execution? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:53Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact/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/untrusted-workspace-impact POST: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What happens when I run Gemini CLI in an untrusted folder? Revision 1, last verified 2026-11-20T12:51:43Z. https://latestn.com/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact (accessed 2026-11-21T10:06:25Z). @misc{LatestN_tool_gemini_cli_permissions_and_security_untrusted_workspace_impact_r1, title = {What happens when I run Gemini CLI in an untrusted folder?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact}}, note = {Revision 1; digest sha256:40c89b2d3137f0da; last verified 2026-11-20T12:51:43Z; accessed 2026-11-21T10:06: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/untrusted-workspace-impact