Back to Blog

How to add long-term memory to Claude

Learn how to add long-term memory to Claude.

Posted by

Claude is an amazing AI tool - more natural sounding than ChatGPT, more creative, and better at coding. With the introduction of Projects and Artifacts, it has quickly established itself as a solid choice with unique features.

There are a few areas where it still lacks though, and one of them is the lack of a long term memory.

What is long term memory?

In the context of an AI assistant, long term memory is the ability to remember things across chats and over time. While Claude has a good short term memory, with its 200K tokens context window, this is only useful in a single chat.

How can I get long term memory with Claude?

One way to approximate long term memory with Claude is via the use of projects (Requires Claude Professional). Projects let you add files and text content that is available in any chat you start within that project. You can add text content and fill it with important details for instance:Claude Memories with projects

  • My name is Asad
  • I am a developer
  • I prefer all my code to be in TypeScript
  • I am working on MemoryPlugin, a long term memory solution for ChatGPT, Claude and other AI tools
  • I like writing blog posts with a conversational tone
Etc.

One issue you'll quickly run into is that you don't want memories to stay static - you want new things to be remembered as you're having a conversation. You'll have to keep editing a text file and updating the project to get this.

A better way

Fortunately, there's a way that's both easier and better. That way is, you guessed it, MemoryPlugin! MemoryPlugin adds long term memory to Claude. Memories aren't linked to Projects but can be accessed in any chat. You also don't need to manually update a text file - Claude can instruct MemoryPlugin whenever it thinks there's something it should remember, and MemoryPlugin automatically updates its long term memory with the information.

Privacy, preserved

MemoryPlugin respects your privacy at all times. Your chats never leave your device and only the memories that Claude decides should be remembered are stored on our servers. Your data is encrypted and only accessible to you. You're in control of your memories and can delete any memory at any time from our website.

What if I'm using another app?

MemoryPlugin works across all your favorite AI tools.

Chrome extension

Our chrome extension works with:
  • Claude
  • ChatGPT
  • Gemini
  • LibreChat
You don't need paid versions of any of these services to use MemoryPlugin with them.

Custom GPT

Our custom GPT works with ChatGPT on both web and mobile but requires ChatGPT Plus.

TypingMind Plugin

If you use TypingMind, you can use our custom TypingMind plugin on desktop and mobile. You need the Premium version of TypingMind for this to work.