Free · AI memory

Give Claude Code a memory that lasts across every chat

Close the chat and your AI forgets everything, so you explain it all again tomorrow. MemPalace is a free memory that remembers your work across every session, and every AI tool you connect to it.

What you’ll need

  • Claude Code, Codex, Cursor or any AI coding tool. Most need a paid plan, about $20 a month.
  • MemPalace itself is free, open source and needs no API key. Your AI tool installs it for you.
  • A folder of your real work to start it with, like notes, docs, sent emails or call notes.

What it does for you

  • Your team plugs right in. They see what you’ve been working on, so you don’t have to recap it or train them on it.
  • It works across AIs. Claude Code, Codex and Cursor all read the same memory, so switching models doesn’t lose anything.
  • It finds the right thing. Ask about a client or a decision from weeks ago, and it pulls the note you need.
  • Saving is simple. It files everything by project and topic on its own.
  • It learns how you write. Every fix you make to a draft becomes a rule for the next one.
  • It backs itself up every night, once you add the second prompt below.

Paste this into your AI coding tool

Put your folder in the brackets first. You’ll approve a few permission pop-ups while it installs.

Paste into your AI coding tool

Set up MemPalace for me. It's a free, open-source memory for AI tools (github.com/MemPalace/mempalace). Ask me before anything that needs my password, and tell me what each step did.

1. Install it with pip install mempalace. It needs Python 3.9 or newer. If pip won't install it system-wide, use pipx or a virtual environment instead. Check it works with mempalace --version.
2. Create my palace from my real work: run mempalace init [a folder with your notes, docs, sent emails or call notes] --yes --no-llm --auto-mine. That keeps everything on my computer.
3. Connect it to this tool as an MCP server. Run mempalace mcp and use the line it prints for you, like claude mcp add mempalace -- mempalace-mcp or codex mcp add mempalace -- mempalace-mcp. In Cursor, add a server called mempalace that runs mempalace-mcp. If mempalace-mcp isn't found, use its full path. Then check it shows as connected.
4. Add this rule to my instructions file (CLAUDE.md, AGENTS.md or my Cursor rules): "Before you start a task, search MemPalace for what we've already done and decided on it. When we finish, save what we did, what we decided and why. Before you write anything in my voice, search MemPalace for my writing rules. Every time I change a draft, ask me why if I didn't say, then save it as a rule: what you wrote, what I changed, and why."
5. Run mempalace status and show me what got saved.

Then connect it to every AI tool you use, with the same line. When you fix a draft, tell it why, and it saves the rule for next time.

Optional

Get the next free build by email.

One build like this every Tuesday, with the prompt to copy. The guide stays free either way.

No spam, unsubscribe anytime.

Then make it save on its own

Out of the box, it only saves when you ask. Paste this in the same chat so it saves after every session and backs itself up each night.

Paste into your AI coding tool

Make my MemPalace save on its own and back itself up.

1. Run mempalace hook run --help to see which hooks this version supports. Then add hooks to this tool's settings so it runs mempalace hook run --hook stop and --hook precompact with the right --harness (claude-code or codex) at the end of each session and before the chat gets compacted.
2. Set up a backup that copies my palace folder (run mempalace status or check ~/.mempalace/config.json to find it) to [a backup folder] every night, with launchd on a Mac or cron on Linux. Keep the last 7 copies.
3. Test both once, and tell me where the backups go.

Using it for your business

  • Before a client call, ask it what you said last time and what they asked for. It pulls it from your notes.
  • When someone new joins, connect them to the same memory. They can ask it what’s been done instead of asking you.
  • Save how you do things, like your pricing rules or how you answer a lead, once. Every AI you use follows it after that.

Stuck? Message me on LinkedIn and I’ll help you get it running.