where are claude code memories stored?
claude code stores its memory as plain markdown files on your computer. the instructions you write live in CLAUDE.md files, such as ~/.claude/CLAUDE.md for all your projects, and the notes claude writes itself, called auto memory, live in ~/.claude/projects/<project>/memory/.
download the ReMynd desktop app
this guide follows anthropic's claude code memory docs, read on november 30, 2026. anthropic's product page calls claude code an ai coding agent and assistant. if you searched claude code memory location or claude code memory files, the table below lists the main places anthropic names.
where does claude code keep each kind of memory?
anthropic's docs say each claude code session begins with a fresh context window, and two things carry knowledge across sessions: CLAUDE.md files that you write, and auto memory that claude writes. the CLAUDE.md location depends on its scope. here is where each one lives:
| memory | location | who writes it | shared with |
|---|---|---|---|
| managed policy CLAUDE.md | a system folder, with separate paths for macos, linux and wsl, and windows | it or devops | all users in the organization |
| user CLAUDE.md | ~/.claude/CLAUDE.md | you | only you, in all projects |
| project CLAUDE.md | ./CLAUDE.md or ./.claude/CLAUDE.md | you | team members via source control |
| local CLAUDE.md | ./CLAUDE.local.md (add it to .gitignore) | you | only you, in the current project |
| project rules | .claude/rules/ in the project, or ~/.claude/rules/ for every project | you | project rules go with the project; ~/.claude/rules/ applies to every project on your machine |
| auto memory | ~/.claude/projects/<project>/memory/ | claude | machine-local; not shared across machines |
CLAUDE.md and CLAUDE.local.md files in your working directory and the folders above it load at launch. files in subfolders load on demand, once claude reads, writes or edits a file there. because CLAUDE.local.md is personal, anthropic says to add it to your .gitignore file, which git uses for intentionally untracked files.
where is claude code auto memory stored?
each project gets its own folder at ~/.claude/projects/<project>/memory/. anthropic says the <project> path is derived from the git repository, so all worktrees and subdirectories of the same repo share one auto memory folder. outside a git repo, the project root is used instead. if you set CLAUDE_CODE_PROJECT_DIR_NAME beside CLAUDE_CONFIG_DIR, claude code uses that name as the <project> folder under <config dir>/projects/ instead (claude code v2.1.234 or later).
inside the folder, MEMORY.md is an index with one line per memory, and each memory sits in its own topic file, such as user_role.md or feedback_testing.md. the first 200 lines or 25KB of MEMORY.md, whichever comes first, load at session start. topic files don't load at startup; claude reads them with its file tools when it needs them.
anthropic lists four kinds of notes that claude saves for itself, recorded as a type field in each file's frontmatter:
- user: your role, expertise and working preferences.
- feedback: corrections you give claude and approaches you confirm.
- project: ongoing work, deadlines and decisions that claude can't derive from the code or git history.
- reference: where to find information outside the project, such as an issue tracker or dashboard.
auto memory is machine-local, and anthropic says its files are not shared across machines or cloud environments. claude code's cleanup of old session transcripts skips the memory folder, so MEMORY.md and topic files stay until you or claude edits or deletes them.
can you move or turn off claude code memory?
yes, both. to store auto memory somewhere else, set autoMemoryDirectory in a settings.json file; anthropic says the value must be an absolute path or start with ~/.
auto memory is on by default in local sessions. to turn it off:
- open /memory in a session and use the auto memory toggle. it saves autoMemoryEnabled to your user settings at ~/.claude/settings.json.
- for a single project, set "autoMemoryEnabled": false in that project's settings.
- to turn it off with an environment variable, set CLAUDE_CODE_DISABLE_AUTO_MEMORY=1.
how do you see and edit claude code memories?
run /memory. anthropic says it lists your CLAUDE.md, CLAUDE.local.md and other memory file locations across user and project scopes, lets you toggle auto memory, and offers to open the auto memory folder. auto memory files are plain markdown, so you can edit or delete them at any time.
to check which CLAUDE.md files actually loaded, run /context all and look under memory files. when you ask claude to remember something, like "always use pnpm, not npm," it saves that to auto memory; to put it in CLAUDE.md instead, ask for that directly or edit the file yourself.
what claude code memory does not hold
claude code memory holds what you write and what claude learns from working with you. in our reading, none of the auto memory types anthropic lists is a record of what was on your screen, such as an error you saw in a browser tab or a doc you read before you opened the terminal. anthropic also says claude skips anything it can derive from the codebase.
that gap is where ReMynd fits. it is a desktop app that gives your computer a photographic memory: it records your screen and keeps the searchable index on your computer. ReMynd's claude switch sets up claude code on mac and windows, with a cli plus a skill. turn on the claude switch in ReMynd's settings → integrations, and claude code can then search your screen history.
ReMynd captures only what is on your screen, starting from install, so it can't recover work from before you installed it. the commands are listed on the ReMynd cli page. on a mac it needs apple silicon and macos 15 or later, and ReMynd also runs on windows 11 (x64 or arm64).
for the codex side of this, see how do codex memories work in the chatgpt desktop app?, and for agents in general, giving an ai coding agent memory of your actual work.
limits
this page follows anthropic's claude code memory docs as of november 2026. some features need a recent claude code version. we did not inspect a live ~/.claude folder for this page.