Answer: Project-specific memory is stored in repository `GEMINI.md` files and in a per-project private memory folder, while global memory is stored in the `~/.gemini/GEMINI.md` file. Status: Confirmed Entry: tool/gemini-cli/memory-and-context/memory-file-locations Revision: 1 Digest: sha256:62c585cc74de8d74 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:19:11Z Last changed: 2026-11-13T03:19:11Z Last verified: 2026-11-20T12:54:12Z Next check: 2026-11-21T12:54:12Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Project memory file | GEMINI.md | [1] | 2026-11-20 Private project memory | per-project private memory folder | [1] | 2026-11-20 Global memory file | ~/.gemini/GEMINI.md | [1] | 2026-11-20 Sources: [1] Google. "Memory files". https://geminicli.com/docs/tools/memory.md Role: primary. Accessed: 2026-11-20T12:54:12Z Quote: "shared project instructions go in repository `GEMINI.md` files" (Supports: Project memory file) Quote: "private project notes go in the per-project private memory folder" (Supports: Private project memory) Quote: "cross-project personal preferences go in the global `~/.gemini/GEMINI.md` file" (Supports: Global memory file) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: d5f23e1060a0a5edaca6557c2a7f4bd8ef3bc4ea16371c9501f1b6901caa86a0 (captured 2026-11-13T03:19:11Z) 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:19:11Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:54:12Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:54:12Z Last attempt: 2026-11-20T12:54:12Z Notes and limitations: Extracted automatically from a single official source (section "Technical reference"). Related: https://latestn.com/tool/gemini-cli/memory-and-context/memory-loading-behavior How does Gemini CLI load stored memories into future sessions? https://latestn.com/tool/gemini-cli/memory-and-context/modularize-context-imports How do I modularize context with imports in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/refresh-context-gemini-cli How do I refresh the context in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/import-path-formats Which path formats can Gemini CLI use for GEMINI.md imports? https://latestn.com/tool/gemini-cli/memory-and-context/include-directory-context How do I include an entire directory as context in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/include-multiple-files How do I include multiple files in a single Gemini CLI prompt? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:19:11Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/memory-and-context/memory-file-locations/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/memory-and-context/memory-file-locations POST: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/memory-file-locations with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/memory-file-locations?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where does Gemini CLI store project-specific and global memory files? Revision 1, last verified 2026-11-20T12:54:12Z. https://latestn.com/tool/gemini-cli/memory-and-context/memory-file-locations (accessed 2026-11-21T10:00:17Z). @misc{LatestN_tool_gemini_cli_memory_and_context_memory_file_locations_r1, title = {Where does Gemini CLI store project-specific and global memory files?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/memory-and-context/memory-file-locations}}, note = {Revision 1; digest sha256:62c585cc74de8d74; last verified 2026-11-20T12:54:12Z; accessed 2026-11-21T10:00:17Z} } 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/memory-and-context/memory-file-locations