
Claude Memory: How It Works, How to Turn It On, Import It, and Extend It

Yes, Claude has memory. Claude memory is the feature in Anthropic's Claude apps that lets Claude remember your role, projects, people and preferences across conversations, so you stop re-explaining context in every new chat. It is on by default for Free, Pro and Max plans at the time of writing and managed in one place, Settings > Memory, where you can view, edit, delete, pause, reset, import and export what Claude knows. A second, developer-facing surface, the Claude API memory tool, lets an application give Claude a persistent memory directory the application stores itself. This guide covers both, what changed recently, where the built-in memory stops, and how to extend it over MCP.
What is Claude memory?
Claude memory is the capability that lets Claude carry context from one conversation into the next. In the Claude app it is a set of short, individual topics about you and your work that Claude writes as you chat and reads at the start of new chats. In the Claude API it is a tool that lets Claude read and write memory files your application stores.
The two surfaces share a name and little else:
| Claude app memory | Claude API memory tool | |
|---|---|---|
| Who it is for | Anyone using claude.ai, Claude Desktop or Claude Mobile | Developers calling the Messages API |
| What is stored | Short topics: role, projects, people, preferences | Files under a /memories directory, any content Claude writes |
| Where it lives | Anthropic's servers, tied to your account | Your application's storage; Anthropic never hosts it |
| How it is controlled | Settings > Memory in the app | Your handler code for view, create, str_replace, insert, delete, rename |
| Default state | On for Free, Pro, Max; off per member on Team/Enterprise | Off until you add the memory tool to a request |
A third thing that often gets lumped in is Claude Code's memory: CLAUDE.md instruction files plus local auto memory notes written to ~/.claude/projects/<project>/memory/. It is covered in the Claude Code memory guide and does not share data with the Claude app's memory.
According to Anthropic's help center article on chat search and memory, Claude memory focuses on work-related context: your role and projects, the people and places in your work, communication and coding preferences, and ongoing work. Sensitive subjects such as health, race, religion or politics are left out by default, and government ID numbers, financial account numbers, criminal history and immigration status are never saved even if you ask.
How does Claude memory work in the Claude app?
In the Claude app, memory works by saving individual topics as you chat rather than summarizing conversations after they end. Mention that a deadline moved and the next conversation already knows. Each project keeps its own memory, incognito chats bypass memory entirely, and the whole set is listed as editable Topics in Settings > Memory.
Four mechanics explain most of what you will see in practice.
Topics, not transcripts
Claude does not retrieve across your full chat history when it uses memory. It keeps a list of short topic entries that it adds to and edits during conversations. Claude decides what is worth saving, and you can force a save by telling it to "remember this." Because entries are small and specific, correcting one fixes every future conversation that would have relied on it.
Memory is separate from "search past chats," a retrieval feature over your actual conversation history, available on paid plans (Pro, Max, Team and Enterprise) and controlled by its own toggle, "Search and reference chats." If you ask "what did we discuss about the launch?" and see a tool call appear, that is chat search, not memory.
Project-scoped memory
Each Claude project has its own memory. Inside a project, Claude uses that project's memory plus your account-level memory from chats outside projects, but not memory from other projects, and new facts are saved to the project. To isolate a project fully, turn off "Use account memory" under Memory on the project's page. This is the mechanism for client engagements or confidential workstreams that must not bleed into unrelated chats.
Incognito chats and per-chat memory off
Incognito chats, started from the ghost icon on a new chat outside a project, are not saved to your chat history or to memory, and are available on every plan. For a chat that stays in history but does not touch memory, open the "+" menu in the message box before the first message and switch "Memory" off; a crossed-out memory icon then appears next to the chat title. The setting is fixed once the chat starts.
One memory across chat, Cowork and Duet
Since the August 2026 update, memory from chat is shared with Claude Cowork when Cowork runs in the cloud, and what comes up in a Cowork task carries back to chat; Anthropic notes that locally run Cowork sessions do not use memory. Claude Duet, a research preview for Pro and Max, also reads and adds to the same memory. Claude Code is not part of this; it keeps its own files on your machine.
Which plans have memory on by default?
At the time of writing, according to Anthropic, memory is on by default for Free, Pro and Max on the web, Claude Desktop and Claude Mobile. On Team and Enterprise, owners decide whether memory is available at all, and it stays off for each member until they turn it on. Organizations with HIPAA, public-sector or custom data retention agreements do not get memory.
How to turn on memory in Claude
To turn on memory in Claude, open Settings > Memory and switch on "Generate memory from chats." On Free, Pro and Max it is already on by default, so this screen is mostly for confirming or adjusting. On Team and Enterprise, an owner must first enable memory for the organization before members see the toggle.
The steps, as documented by Anthropic at the time of writing:
- Open Claude on the web, Claude Desktop or the latest Claude Mobile app.
- Go to Settings > Memory.
- Turn on "Generate memory from chats."
- Optionally turn on "Include sensitive topics in memory" (off by default, never retroactive).
- Optionally turn on "Search and reference chats" on a paid plan to let Claude look back through past conversations on request.
Free, Pro and Max
Individual accounts control everything themselves; there is no admin step. If you see Memory under Settings > Capabilities instead of Settings > Memory, you are on the legacy memory experience, which Anthropic says a small number of Team and Enterprise organizations still use, and the toggle lives there.
Team and Enterprise admins
Owners and Primary Owners turn memory on in Organization settings > Capabilities. Once enabled, each member manages their own settings, and owners cannot view or edit any member's individual memories. Enabling memory does not enable sensitive topics; that stays a per-user opt-in. Before flipping the switch the other way, note that Anthropic states turning memory off at the organization level immediately and permanently deletes all memory entries for everyone in the organization.
Claude auto memory in Claude Code
Auto memory in Claude Code is a different setting from the app. It is on by default in local sessions, toggled with /memory inside a session (which writes autoMemoryEnabled to ~/.claude/settings.json), and disabled with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1. It saves four kinds of notes, user, feedback, project and reference, as plain markdown files per project. See the Claude Code memory guide.
How to view, edit, delete or clear Claude memory
To see and change what Claude remembers, open Settings > Memory. Everything is listed under Topics. Select a topic to read it, use the edit icon to change it, or select "Delete" to remove it. To clear everything, use "Reset memory," which permanently deletes all memories including project memories and cannot be undone.
Viewing and editing individual memories
The Topics list is the ground truth for what Claude memory holds. Entries are short, grouped by category, and edits apply to every conversation from then on. You can also manage memory from a chat: tell Claude what to remember, change or forget, and the update applies from your next conversation. In the legacy experience the same controls sit behind "View and edit your memory" in Settings > Capabilities.
Two things are easy to misunderstand. Deleting a conversation does not delete the memory entries generated from it; if a memory is wrong, delete the topic itself. And memory data is included in Claude's data exports, so an export is a complete record of what the app held at that moment.
How to delete Claude memory selectively
Open the topic in Settings > Memory and select "Delete," or tell Claude in a chat to forget it. If you turned on sensitive topics and later turn the setting off or decline the in-chat notice, Anthropic states that Claude removes any sensitive items it had already saved.
How to clear Claude memory completely
In Settings > Memory, switch "Generate memory from chats" off. You get two options:
- Pause memory keeps existing memories but stops Claude from using them or adding new ones. Conversations held while paused are not added later if you unpause.
- Reset memory permanently deletes all memories, including project memories, and cannot be undone. Export first if you might want the content back.
On Team and Enterprise, turning memory off for the organization deletes every member's memory immediately.
Exporting Claude memory for backup
Ask Claude in a normal chat: "Write out your memories of me verbatim, exactly as they appear in your memory." Save the answer to a local text or Markdown file. Anthropic documents this as the export path in its import and export article, and the same text is what you would paste into another assistant. Users migrated off the legacy experience can also export their legacy memory from Settings > Memory until September 9, 2026.
How to import memory into Claude from ChatGPT and other assistants
You can import memory into Claude by asking your previous assistant to list everything it remembers about you, then pasting that text into Settings > Memory > "Start import" and clicking "Add to memory." Claude extracts the paste into individual memory entries you can review. The flow is official but labeled experimental by Anthropic.
Memory imports are available on Free, Pro, Max, Team and Enterprise plans on the web and Claude Desktop, according to Anthropic. The short version of a Claude memory transfer from ChatGPT:
- In ChatGPT (a regular chat, not a temporary one), run Anthropic's export prompt, which asks the assistant to list every stored memory and learned context in a single code block, one entry per line, without summarizing or omitting. Claude shows this exact prompt inside its import screen.
- Reply "continue" until ChatGPT confirms the set is complete, then copy the block into a local file and delete anything you do not want to carry over.
- In Claude, open Settings > Memory, select "Start import," paste the text, and click "Add to memory."
- Click "See what Claude learned about you" to open a chat listing what actually landed. Add anything missing through the "Tell Claude what to change or remove" box or by telling Claude in chat.
What transfers is the "who you are and how you work" layer. Chat history, project files and Custom Instructions do not move through this flow, and Claude may skip personal details unrelated to work. The same prompt works for Gemini, Copilot or any other assistant with a memory feature, and running it in Claude produces an export you can carry the other way.
The full walkthrough, including the exact prompt text, the legacy-experience path, a transfer table and the prompt-based fallback when the import button is not visible, is in the guide on how to import ChatGPT memory into Claude. For what ChatGPT stores in the first place, see the ChatGPT memory guide.
What changed in the latest Claude memory updates?
The most recent change, on August 25, 2026, made Claude memory a single set of editable Topics shared between chat and cloud Cowork, with a new opt-in setting for sensitive topics. Some coverage calls this "Claude Memory 2.0," but Anthropic's own announcement does not use that name; it describes memory that works everywhere, with you deciding what is in it.
Anthropic's Claude release notes give the dated trail:
| Date | Change (according to Anthropic's release notes) |
|---|---|
| September 11, 2025 | Memory launched on Team plans with a memory summary; incognito chats introduced |
| September 18, 2025 | Memory on Enterprise plans |
| October 23, 2025 | Memory rolled out to Max, then gradually to Pro |
| March 2, 2026 | Memory available to all users, including the free plan |
| July 10, 2026 | Memory rebuilt as individual, categorized entries updated during conversations, replacing the daily summary |
| August 25, 2026 | Memory shared across chat and cloud Cowork; editable Topics in Settings > Memory; sensitive topics setting |
Three of these matter if you learned Claude memory earlier:
- The daily memory summary is gone. The original design synthesized conversations every 24 hours. Since July 2026, Claude writes topic entries live, which is why edits apply immediately and why the Topics list, not a paragraph summary, is what you manage.
- Settings moved. Memory controls used to sit under Settings > Capabilities; they are now under Settings > Memory. The help center documents both because a small number of Team and Enterprise organizations remain on the legacy version.
- Free users have memory. Since March 2026, memory is no longer a paid-plan feature. Search past chats remains limited to paid plans.
Cloud Cowork tasks and the Claude Duet research preview now read and write the same Topics. If you only use the API or Claude Code, none of these app changes affect you.
What is the Claude memory tool in the API?
The Claude memory tool is an Anthropic-provided tool for the Messages API that lets Claude create, read, update and delete files in a /memories directory that persists across conversations. It runs client-side: Claude requests file operations and your application executes them against storage you control, so Anthropic never hosts the memory.
Anthropic introduced the memory tool together with context editing as part of context management on the Claude Developer Platform, launched in public beta alongside Claude Sonnet 4.5 behind the context-management-2025-06-27 beta header. At the time of writing, Anthropic's memory tool documentation states that the memory tool itself no longer requires a beta header and is available on all Claude 4 and later models, while context editing remains in beta behind context-management-2025-06-27. Check the docs before you ship.
How the memory tool works
You add one entry to the tools array and implement a handler for six commands. The tool definition is the entire configuration; there is no input schema:
When the tool is present, Claude checks /memories before starting a task, records what it learns as it works, and reads those files back in later conversations. Each operation arrives as a tool_use block with a command field (view, create, str_replace, insert, delete or rename); your application performs it and replies in a tool_result block. A minimal Python handler using Anthropic's SDK helper:
BetaLocalFilesystemMemoryTool ships in the Python and TypeScript SDKs as a ready-made local-filesystem backend; subclass BetaAbstractMemoryTool to back memory with a database, object store or memory service instead. The /memories prefix is logical: your handler maps it onto a per-user directory, database keys or anything else, which is why the docs insist on rejecting any path that resolves outside the memory root.
What the memory tool is good for, and what it is not
Anthropic positions the tool for maintaining project context across agent sessions, applying lessons from past runs, and building a knowledge base over time. It pairs with context editing, which clears stale tool results client-side using the clear_tool_uses_20250919 strategy, and with server-side compaction. According to Anthropic's internal evaluation on agentic search, combining the memory tool with context editing improved performance by 39% over baseline, and context editing alone cut token consumption by 84% in a 100-turn web search test.
What the tool does not give you is retrieval. It is a file system, not an index: Claude decides what to write and which files to open, and nothing ranks or searches the memory directory for it. For a handful of files per user that is fine. For memory spanning thousands of documents, many users or several agents, you need a store behind the handler that can search, deduplicate and relate facts. The LLM memory explained guide covers the architectures involved.
What are the limits of Claude's built-in memory?
Claude's built-in memory is designed for one person's continuity inside Anthropic's products. It is not a shared knowledge base, it does not leave Anthropic's servers, it does not reach Claude Code or third-party tools, and you cannot inspect or tune how Claude decides what to remember. Those are the constraints to design around.
Concretely, at the time of writing:
- Per user, per project. Memory is tied to one account, and project memory is further isolated. Teammates cannot pool what Claude has learned, and owners on Team and Enterprise plans cannot see members' memories at all.
- No portability by default. App memory lives on Anthropic's servers. The import and export flow moves it as pasted text, which Anthropic labels experimental, and nothing syncs to ChatGPT, Gemini, Cursor or Codex.
- Claude Code is separate. The app's Topics and Claude Code's auto memory never meet. A preference learned in chat is unknown to the terminal agent in your repository, and vice versa.
- Selection is opaque. Claude decides what is "worth remembering." You can add or delete entries, but you cannot see why something was or was not saved, and recall is not deterministic.
- Deleting a chat does not delete its memories. Cleanup happens in the Topics list. On Team and Enterprise, memory follows the organization's chat retention policy and is included in admin exports.
- Plan and policy gates. Search past chats requires a paid plan. Memory is unavailable to organizations with HIPAA, public-sector or custom data retention agreements.
- The API tool has no retrieval. It gives Claude files and six commands. Ranking, search, entity resolution and time-awareness are up to whatever you put behind the handler.
None of this is a flaw for the intended use. It becomes a problem when you want memory that follows a team across tools, that an auditor can inspect, or that an agent fleet shares. For that, Claude needs an external memory layer, and the standard way to attach one is MCP.
Claude memory MCP and plugins: extending Claude with an external memory layer
A Claude memory MCP server is a separate process that stores memory outside Anthropic and exposes it to Claude through the Model Context Protocol, typically as tools named along the lines of remember, recall and forget. Claude Desktop, Claude Code and the Claude API can all call it, so one store serves every surface.
MCP is the open standard Anthropic published for connecting LLM applications to tools and data; Claude Desktop, Claude Code, Cursor, Codex and many other clients speak it. For memory, the protocol matters because it decouples the store from any one product. Point Claude Desktop and Claude Code at the same MCP memory server and they share memory, which is exactly what the built-in features cannot do.
How the MCP route differs from the built-in options
| Claude app memory | API memory tool | MCP memory server | |
|---|---|---|---|
| Storage | Anthropic | Your application | Your server, any backend |
| Shared across Claude Desktop, Claude Code and API apps | No | No | Yes |
| Shared with Cursor, Codex and other agents | No | No | Yes, if they connect to the same server |
| Retrieval | Claude reads Topics | Claude opens files | Server-side search, often vector plus graph |
| Setup | None | Handler code | Install and register a server |
Where to connect an MCP memory server
In Claude Code, register a server with claude mcp add, as an HTTP endpoint or a local stdio command; the MCP memory guide covers client configuration for Claude Desktop, Claude Code and Cursor. In Claude Desktop, local servers install as desktop extensions from Settings > Extensions (.mcpb packages), remote servers are added as connectors, and claude_desktop_config.json still works for stdio servers; the "+" menu > Connectors shows what is connected. For API applications, the memory tool handler can call the MCP server directly.
Claude memory plugins
A Claude memory plugin is an MCP server packaged with the behavior around it: hooks that recall context on each prompt and save at session end, plus skills or slash commands for explicit control. Claude Code installs plugins from marketplaces with claude plugin install; Claude Desktop supports plugins and desktop extensions through its directory. A bare MCP server only acts when Claude decides to call a tool; a plugin can make recall and capture automatic.
Options range from the reference implementation to full memory engines:
- Reference memory server. The Model Context Protocol project ships
@modelcontextprotocol/server-memory, a small knowledge-graph server that persists entities and relations to a local JSONL file over stdio. Good for personal facts and for learning the tool-calling loop. - Hosted conversational memory services. MCP endpoints in front of a hosted memory API, usually vector-based with per-user namespaces. Zero setup, no control of storage.
- Open-source memory engines. Self-hostable servers that build a searchable store, often a knowledge graph plus vector index, from conversations, documents and code, and expose it to any MCP client. Cognee's MCP server and Claude Code plugin, described next, are in this category.
The questions to ask are the ones the built-in memory cannot answer: Can Claude Desktop, Claude Code and your API agents share it? Can you export the whole store? Does retrieval return related facts and their provenance rather than only similar text? Does it track when a fact was true? Can several teams use one deployment without seeing each other's data?
How Cognee extends Claude memory
Cognee is an open-source memory engine (Apache 2.0, github.com/topoteretes/cognee, about 32.5k GitHub stars as of October 2026) that gives Claude a persistent memory layer you control. It stores memory as a knowledge graph plus vector index in backends you run and exposes four verbs, remember, recall, improve and forget, through Python and TypeScript SDKs and an MCP server.
Against the limits above, Cognee changes four things. Memory lives in your storage (a single Postgres with pgvector, or Neo4j, Kuzu, FalkorDB or LanceDB), not Anthropic's. One store is shared across Claude Desktop, Claude Code, the Claude API and clients such as Cursor, Codex, Cline and Continue. Retrieval is hybrid graph-plus-vector search over explicit entities and relationships, so recall is inspectable. And temporal mode keeps superseded facts with validity windows, so Claude can answer "what was true in Q2?" without blending stale and current facts.
Claude Code: the cognee-memory plugin
Two commands in a terminal with Claude Code installed:
The plugin registers hooks on SessionStart (initialize memory), UserPromptSubmit (inject relevant graph context into each prompt), PostToolUse (capture significant tool calls, with credentials and .env contents redacted), PreCompact (write a memory anchor before the context window is summarized) and SessionEnd (sync the session into the permanent graph), and ships skills such as cognee-remember, cognee-search, cognee-forget and cognee-handoff for explicit control. Local mode, the default, runs a Cognee server on localhost:8011 so nothing leaves your machine; cloud mode points the plugin at Cognee Cloud with COGNEE_API_KEY. The step-by-step tutorial covers configuration.
Claude Desktop and other MCP clients
For Claude Desktop, Cursor, Codex or a self-hosted setup, run the Cognee MCP server directly. The Docker image cognee/cognee-mcp supports stdio, SSE and Streamable HTTP via TRANSPORT_MODE:
Register the endpoint in Claude Code with claude mcp add --transport http cognee http://localhost:8000/mcp. Claude Desktop takes stdio servers through claude_desktop_config.json, so run the same image with TRANSPORT_MODE=stdio and "command": "docker", or add the HTTP endpoint as a custom connector. Cognee Cloud users can skip the container and register the hosted endpoint:
By default each MCP client gets its own dataset (claude_code_memory, cursor_vscode_memory), so agents do not share memory by accident; point them at a common dataset when shared recall is the goal. Datasets carry read, write, delete and share permissions.
Claude API and Agent SDK
For applications using the memory tool, Cognee is a natural backend for the handler: map /memories operations onto remember and recall so Claude's file-style requests land in a searchable graph instead of a flat directory. The Claude Agent SDK integration shows the same pattern. Existing memory can be brought across with import adapters such as Mem0Source, and any dataset can be exported in the open COGX format, so the store is never locked to Cognee either.
Pricing as of October 2026: self-hosted is free; Cognee Cloud has a free tier with 1M tokens and one workspace, and the Standard plan is $1.00 per 1M tokens processed plus $5 per additional workspace. Enterprise adds bring-your-own-cloud deployment. Details on the pricing page.
Next steps
If you only use the Claude app, open Settings > Memory once, read the Topics list, delete what should not be there, and decide whether sensitive topics and chat search should be on. Arriving from ChatGPT, run the import and verify it with "See what Claude learned about you"; the import guide has the full procedure. If you build on the API, add the memory_20250818 tool, start with the SDK's filesystem backend, and move to a searchable store behind the handler when memory outgrows a folder. If you work across Claude Desktop, Claude Code and other agents and want one memory that follows you, install the Cognee plugin or MCP server and point every client at the same dataset. Related guides: Claude Code memory, MCP memory, Cursor memory, Codex memory, OpenClaw memory, codebase memory for agents that work on a repository, and AI agent memory. The MCP overview and Claude Desktop integration pages cover the server setup.
FAQ
Does Claude have memory?
Yes. Claude remembers your role, projects, people and preferences across conversations as a set of short, editable topics. At the time of writing, memory is on by default for Free, Pro and Max plans on the web, Claude Desktop and Claude Mobile, and available on Team and Enterprise once an owner enables it. You manage it under Settings > Memory. The Claude API has no memory by default but offers a client-side memory tool developers can enable.
How do I turn on memory in Claude?
Go to Settings > Memory and switch on "Generate memory from chats." On Free, Pro and Max plans it is already on by default, so the toggle is usually for confirming or adjusting. On Team and Enterprise plans, an owner must first enable memory in Organization settings > Capabilities, after which each member turns it on individually. If you see Memory under Settings > Capabilities instead, you are on the legacy experience and the toggle is there.
How do I import my ChatGPT memory into Claude?
Ask ChatGPT to list every memory and learned context about you in a single code block (Claude's import screen shows the exact prompt), copy the result, then open Settings > Memory in Claude, select "Start import," paste the text and click "Add to memory." Claude extracts it into individual entries you can review. Chat history and files do not transfer. Anthropic labels imports experimental, so check the result and add anything missing.
How do I delete or clear Claude's memory?
To delete one memory, open Settings > Memory, select the topic and choose "Delete," or tell Claude in a chat to forget it. To clear everything, switch "Generate memory from chats" off and choose "Reset memory," which permanently deletes all memories including project memories and cannot be undone. "Pause memory" keeps existing entries but stops Claude from using or adding to them. Deleting a conversation does not delete memories derived from it.
What is the Claude memory tool?
The Claude memory tool is an Anthropic-provided API tool, type memory_20250818, that lets Claude create, read, update and delete files under a /memories directory that persists across conversations. It runs client-side: Claude requests view, create, str_replace, insert, delete or rename operations and your application executes them against storage you control. It launched in beta behind the context-management-2025-06-27 header; Anthropic's docs now state the tool itself no longer requires a beta header.
Is Claude memory available on the free plan?
Yes. According to Anthropic's release notes, memory became available to all Claude users, including the free plan, on March 2, 2026, and it is on by default for Free accounts at the time of writing. Memory import is also available on the Free plan. Search past chats, which is a separate retrieval feature over your conversation history, remains limited to paid plans (Pro, Max, Team and Enterprise). Incognito chats are available on every plan.
Does Claude memory work in Claude Code?
No, not the app's memory. Claude Code has its own system: CLAUDE.md instruction files you write and auto memory notes Claude writes to ~/.claude/projects/<project>/memory/, which are machine-local and never sync with the Topics in the Claude app. To give Claude Code and Claude Desktop one shared memory, connect both to an external MCP memory server such as Cognee, installed in Claude Code with claude plugin install cognee-memory@cognee.
Related reading





