Does Claude Code share memory with claude.ai?

Updated December 2, 2026

Nope. No built-in sync between Claude Code's memory and claude.ai's memory as of December 2026.

What Claude Code learns in your terminal stays there.

What you tell Claude in the browser (or on the phone) stays there too.

Lots of folks have requested it. There's a "Claude Code Should Access User's claude.ai Memory and Context" feature request for Claude Code on GitHub (issue #14228). And another called "No context path between claude.ai and Claude Code".

You'll need to move the context yourself. There are three ways to do it.

What does Claude Code remember?

Claude Code gets a new context window for each session.

Two things persist between sessions (per Anthropic's docs):

  • CLAUDE.md files. Your written instructions. Always loaded.
  • Auto memory. Claude's automatic notes based on your corrections and preferences.

Auto memory is a set of files in a folder (~/.claude/projects/<project>/memory/) per repo. The index is a MEMORY.md file.

Anthropic is clear about how far auto memory travels. "Auto memory is machine-local." "Files are not shared across machines or cloud environments."

What does claude.ai remember?

There's a memory feature in claude.ai.

Works across web, desktop and phone apps. In Settings > Capabilities > Memory.

This memory is separate from what we've covered above.

How do you share context between them?

1. Copy & paste by hand

Paste the relevant parts from one to the other. Free and available now. Requires that you remember to do it. Always.

2. Put your notes file in the repo

Have a notes file in Markdown in the repo. Then paste or upload that into a claude.ai Project. You can add files to a Project as project knowledge.

Claude Code can read the notes file in the repo. claude.ai will use the notes file copy you upload. That copy is only as current as your last upload. When you make decisions in chat, you have to copy them back to the notes file by hand.

3. Use the same MCP server for both

Both Claude Code and claude.ai support using a remote MCP server. (claude.ai terms these custom connectors.) You could use a single MCP server in between. Then both can read and write to the same notes.

This is something else to set up. The notes are on a server, not your repo. There are several MCP servers that do this. We compare five MCP memory tools and we also build one. It's called Pannier.

How does Pannier do it?

Pannier is a hosted remote MCP server. It's used by connected agents to read and write small records of context: goals, decisions, instructions, preferences, progress, next steps, skills.

No chat transcripts are saved. It doesn't sync the two built-in memories in Claude either. It's a companion to them.

  • The apps have separate private connection URLs. If you revoke one of these, only that app is cut off.
  • If you save over an existing topic, it overwrites the current entry. But it keeps the old one in history.
  • If two agents save conflicting decisions, Pannier will flag the conflict.

Agents access this using get_context to read. And save_context to write. Other tools are list_projects, get_history, resolve_conflict, archive_entry.

How do you integrate Claude Code + claude.ai with Pannier?

To use it you'll need two Pannier URLs. One for each app.

Claude Code

Do this in your terminal:

claude mcp add --transport http --scope user pannier <your Pannier URL>

This will add Pannier for all your projects.

claude.ai (or Claude desktop)

  1. Go to Plugins in the sidebar, then Add > Add custom connector. (You can go to Settings > Connectors and you'll see the same screen.)
  2. Call it Pannier and paste in your URL.
  3. Click Continue. Leave Authentication on "No sign-in". Click Add.

You'll see in Claude "Connected to Pannier". You'll see Pannier on in your chat now, under + > Plugins. Any connectors you add on claude.ai will show up in your Claude app on your phone too.

Hand off a task

Don't quit your terminal yet. Ask Claude Code to save your goal, decisions, state and next step into Pannier.

Now go to claude.ai and type:

Load my Pannier context.

(You can do the same in Claude Code.)

Do you still need CLAUDE.md?

Yes! You need it! CLAUDE.md is good for your repo rules. Like what your package manager is, your test commands and your conventions. Pannier is for stuff that's changing. Progress, decisions, next step. Plus it's for anything that needs to get to apps that don't read your repo. Like claude.ai and ChatGPT.

Which one should you use?

If you're flipping once a week, copy it.

If all claude.ai needs to do is read your notes, use a notes file and a Project.

If you're flipping all day, use a shared MCP server.

Pannier has a Free plan that supports 1 project and 2 connected agents. This is exactly the last case: Claude Code and claude.ai. You get 30 days of history. You can always export everything as JSON or Markdown.

Pro is $8/month. You get unlimited agents. Full history.

Start free