Skip to main content
CrewAI agents don’t remember anything between runs by default. Supermemory fixes that. You get a memory layer that stores what happened, who the user is, and what they care about. Your crews can pick up where they left off.

What you can do

  • Give agents access to user preferences and past interactions
  • Store crew outputs so future runs can reference them
  • Search memories to give agents relevant context before they start

Setup

Install the required packages:
Configure your environment:
Get your Supermemory API key from console.supermemory.ai.

Basic Integration

Initialize Supermemory and inject user context into your agent’s backstory:

Core Concepts

User profiles

Supermemory tracks two kinds of user data:
  • Static facts: Things that don’t change often (preferences, job title, tech stack)
  • Dynamic context: What the user is working on right now

Storing memories

Save crew outputs so future runs can reference them:

Searching memories

Pull up past interactions before running a crew:

Example: research crew with memory

This crew has two agents: a researcher and a writer. The researcher adjusts its technical depth based on the user’s background. The writer remembers formatting preferences. Both can see what the user has asked about before.

More patterns

Crews with multiple users

Sometimes you need context from several users at once:

Only storing successful runs

You might not want to save every crew output:

Using metadata to organize memories

Metadata lets you filter memories by project, agent, or whatever else makes sense:

User profiles

How automatic profiling works

Search

Filtering and search modes

LangChain

Memory for LangChain apps

Vercel AI SDK

Memory middleware for Next.js