Guide
How to give Claude long-term memory
What Claude remembers on its own (memory, Projects, CLAUDE.md), where it stops, and how to share one memory across claude.ai, Desktop and Claude Code.

Abbas Askari · 5 min read
Claude already remembers more than it used to. The Claude apps keep a memory of your chats, Projects keep files and instructions together, and Claude Code reads a CLAUDE.md file and keeps notes of its own. For many people that is enough.
It stops at a few edges, though. Each memory lives in one place: your chats, one project, one repository on one computer. And Claude only remembers what you told Claude. This guide covers what each built-in memory does, where it stops, and how to add one long-term memory that claude.ai, Claude Desktop and Claude Code all share.
Every fact about Claude below is from Anthropic’s own pages, read on 24 November 2026, and linked. We make Alexein, the memory in the last part, and say so.
What Claude remembers on its own
Memory in claude.ai, Claude Desktop and the phone apps
According to Anthropic’s help page on memory, Claude builds memory from your chats as you go, saving it “as a set of individual topics as you chat”. You can also ask it to remember something directly. It keeps everyday working context: your role and projects, the people in your work, your preferences, and ongoing project details. By default it leaves out personal or sensitive topics, such as health or politics, unless you opt in.
- Who has it. On Free, Pro, Max and Ultra, memory is on by default on the web, Claude Desktop and mobile. On Team and Enterprise, an owner decides whether it is available.
- Past-chat search. Paid plans can also have Claude search earlier chats.
- Controls. Under Settings › Your Claude you can turn Generate memory from chats on or off, pause memory, or reset it. Incognito chats are not saved to memory at all.
- Moving it. Anthropic says memory can be imported from other AI assistants or exported, and calls this experimental.
Projects
Projects are “self-contained workspaces with their own chat histories and knowledge bases”. You upload documents, text or code, and set instructions, and every chat in the project starts with them. They are on every plan; free accounts can create up to five.
Each project also has its own memory. Inside a project, Claude uses that project’s memory and your account memory, but not other projects’ memory. You can turn off Use account memory on a project to keep it fully apart.
CLAUDE.md and auto memory in Claude Code
Anthropic’s Claude Code memory docs start plainly: “Each Claude Code session begins with a fresh context window.” Two things carry knowledge from one session to the next.
- CLAUDE.md files are instructions you write. There is one for you in every project (
~/.claude/CLAUDE.md), one per project, checked in and shared with your team (./CLAUDE.md), a private one per project (./CLAUDE.local.md), and one an organisation can manage for everyone. Claude Code loads them at the start of every session. Anthropic suggests keeping each under 200 lines. - Auto memory is notes Claude Code writes itself: your role and preferences, corrections you give it, project decisions it can’t read from the code, and where to find things. It is on by default in local sessions, and
/memoryturns it on or off. It is kept per repository, and the first 200 lines or 25KB of its index load at the start of each session.
Where Claude’s memory stops
Each of these is good at its own job. The limits are about reach.
- Chat memory and Claude Code memory are separate. What you tell Claude in a chat isn’t written to your CLAUDE.md, and Claude Code’s notes live in a folder on your computer.
- Claude Code’s memory stays on one computer. In Anthropic’s words, “Auto memory is machine-local”, and its files “are not shared across machines or cloud environments”. Its notes are kept per repository, too.
- Projects keep their memory to themselves. That is the point of a project, but it means a decision made in one project isn’t known in the next.
- It only knows what passed through Claude. Claude remembers your chats with Claude. What a colleague said in Slack, the email that changed a deadline, or the pull request that settled an argument reaches its memory only if you paste it in or ask it to look.
- It is Claude’s. If you also use ChatGPT, Cursor or another assistant, each keeps its own memory, and you repeat yourself in each.
- CLAUDE.md is written by hand. It is instructions, and Anthropic recommends keeping it short, so it is not a place for everything you know about a project.
How to add one memory across Claude
The way to share one memory across every Claude app is to keep it outside them, and connect each app to it. claude.ai, Claude Desktop and Claude Code all connect to MCP servers, and custom connectors are available on every Claude plan, from Free (limited to one custom connector) to Enterprise.
Alexein is a memory of your own built for this. The assistants you connect search it before they answer and save what you tell them. The apps you connect, such as Gmail, Slack, GitHub, Notion and Linear, keep it up to date. Only you can read it, and you can see, correct and forget everything in it. The steps below are from Alexein’s setup docs.
1. Sign up
Create an account at My memory. There is no key to copy for claude.ai: you sign in to Alexein from Claude instead.
2. Add it to claude.ai (and Claude Desktop)
- In claude.ai, open Customize › Connectors.
- Select + Add, then Add custom connector.
- Name it
Alexein, pastehttps://api.alexein.ai/v1/mcpas the URL, and select Continue. - Keep the settings Claude finds, select Continue, then Add.
- In the Alexein window, sign in, choose Read and save, and select Allow.
The connector also works in Claude Desktop and the Claude phone apps, so there is nothing more to add there. Then paste a few lines into Settings › Your Claude › Instructions telling Claude to search memory before it answers and to save new details without asking; the claude.ai guide has the exact lines, and the Team and Enterprise setup.
3. Add it to Claude Code
In Claude Code, add Alexein’s plugin, one command at a time:
/plugin marketplace add Alexein-AI/claude-plugins/plugin install alexein@alexein, and choose Install for you (user scope) so it is there in every project.- Run
/mcp, choose alexein, select Authenticate, sign in, and select Allow.
The plugin also puts a short note about using memory in front of Claude Code at the start of every session. Without the plugin, one claude mcp add command adds the server instead; the Claude Code guide has it, and a key for scripts and CI.
4. Connect your apps, and check it works
Under My memory › Connectors, connect the apps you work in; the connectors list shows what each one reads. Then ask Claude, in any of the three, “What do you remember about me?”. Tell it something new in claude.ai, and ask about it in Claude Code.
Keep CLAUDE.md, too
Adding a shared memory doesn’t replace Claude’s own. CLAUDE.md is still the right place for a repository’s build commands and rules, checked in for your team. Projects still keep a set of files together. A shared memory is for what should follow you everywhere: who you work with, what you decided, what you prefer, and what happened in your other apps.
Want to see what that changes in practice? Read our test of Claude Code on team knowledge, or see every assistant Alexein connects to on the MCP page.
Questions
Does Claude remember previous chats?
Yes, if memory is on. Claude builds memory from your chats as you go, and paid plans can also search past chats. It is on by default on Free, Pro, Max and Ultra, and you control it under Settings › Your Claude.
Does Claude Code have long-term memory?
Yes, in two forms: CLAUDE.md files you write, loaded at the start of every session, and auto memory, notes Claude Code writes itself per repository. Both live on your machine, and Anthropic says auto memory is not shared across machines or cloud environments.
Is claude.ai memory shared with Claude Code?
No. Chat memory lives in the Claude apps, and Claude Code’s memory is CLAUDE.md files and notes on your computer; one doesn’t read the other. To share one memory across both, connect the same MCP memory server to each.
How do I give Claude memory across claude.ai, Claude Desktop and Claude Code?
Add one memory server to all of them. With Alexein, add it as a custom connector in claude.ai, which carries over to Claude Desktop, and install its plugin in Claude Code. Then they all search and save to the same memory.