Answer: You can change where Gemini CLI stores its trusted folders file by setting the `GEMINI_CLI_TRUSTED_FOLDERS_PATH` environment variable to the desired absolute file path. By default, trust settings are saved to `~/.gemini/trustedFolders.json`. Status: Confirmed Entry: tool/gemini-cli/settings/override-trust-file-location Revision: 1 Digest: sha256:5df90f6889f6b1dc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:54Z Last changed: 2026-11-13T03:17:54Z Last verified: 2026-11-20T12:51:44Z Next check: 2026-11-21T12:51:44Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Environment variable | GEMINI_CLI_TRUSTED_FOLDERS_PATH | [1] | 2026-11-20 Default trust file location | ~/.gemini/trustedFolders.json | [1] | 2026-11-20 Sources: [1] Google. "Trusted Folders". https://geminicli.com/docs/cli/trusted-folders.md Role: primary. Accessed: 2026-11-20T12:51:44Z Quote: "`GEMINI_CLI_TRUSTED_FOLDERS_PATH` environment variable to the desired absolute" (Supports: Environment variable) Quote: "By default, trust settings are saved to `~/.gemini/trustedFolders.json`." (Supports: Default trust file location) 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:54Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:44Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:44Z Last attempt: 2026-11-20T12:51:44Z Notes and limitations: Extracted automatically from a single official source (section "Overriding the trust file location"). Related: https://latestn.com/tool/gemini-cli/settings/remote-subagent-proxy How do I configure a proxy for remote subagents in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/restart-after-geminiignore-change Do I need to restart Gemini CLI after changing .geminiignore? https://latestn.com/tool/gemini-cli/settings/session-retention-limits How do I configure session retention and session limits in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/local-routing-configuration How do I configure Gemini CLI to use a local model for routing decisions? https://latestn.com/tool/gemini-cli/settings/manage-tools How do I configure or discover tools in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/open-edit-settings How do I open and edit Gemini CLI settings? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:54Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/settings/override-trust-file-location/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/settings/override-trust-file-location POST: https://latestn.com/dispute/tool/gemini-cli/settings/override-trust-file-location with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/settings/override-trust-file-location?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I change where Gemini CLI stores its trusted folders file? Revision 1, last verified 2026-11-20T12:51:44Z. https://latestn.com/tool/gemini-cli/settings/override-trust-file-location (accessed 2026-11-21T10:02:04Z). @misc{LatestN_tool_gemini_cli_settings_override_trust_file_location_r1, title = {How do I change where Gemini CLI stores its trusted folders file?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/settings/override-trust-file-location}}, note = {Revision 1; digest sha256:5df90f6889f6b1dc; last verified 2026-11-20T12:51:44Z; accessed 2026-11-21T10:02:04Z} } 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/settings/override-trust-file-location