Skip to content

← All guides

How to Add Persistent Memory to CrewAI Agents

CrewAI crews lose inter-task knowledge between runs. Add persistent memory so your agents remember past research, decisions, and context across every execution.

The Problem

  • Crew memory resets after every run
  • Agents can't build on findings from previous executions
  • Entity knowledge is lost between short-term and long-term memory
  • No way to roll back if an agent stores incorrect information

The Solution: Novyx

novyx-crewai provides a NovyxStorage backend that works with all 3 CrewAI memory types — short-term, long-term, and entity. Your crews remember everything across runs.

Quick Start

Install the integration package:

bash
pip install novyx-crewai

Add persistent memory to your chain:

python
from novyx_crewai import NovyxStorage
from crewai import Crew, Agent, Task

storage = NovyxStorage(api_key="YOUR_API_KEY", memory_type="short_term")

researcher = Agent(
    role="Research Analyst",
    goal="Find market insights",
    backstory="Expert researcher with years of experience"
)

task = Task(
    description="Research AI memory solutions",
    agent=researcher,
    expected_output="Market analysis report"
)

crew = Crew(
    agents=[researcher],
    tasks=[task],
    memory=True,
    storage=storage  # Persistent memory across crew runs
)

result = crew.kickoff()

What You Get

Cross-Run Memory

Crew findings persist across executions. Agents build on past research instead of starting over.

All 3 Memory Types

Works with CrewAI short-term, long-term, and entity memory. One storage backend for everything.

Semantic Search

Agents recall relevant memories by meaning. Find past insights without exact keyword matches.

Rollback & Audit

Point-in-time rollback and cryptographic audit trail. Undo mistakes and track every change.

How It Works

1

Install & configure

Install novyx-crewai and pass your API key. Choose your memory type.

2

Pass storage to your Crew

Set memory=True and pass NovyxStorage. Your existing agents and tasks stay the same.

3

Memory persists automatically

Every run builds on the last. Agents recall past findings, entities, and context.

Frequently Asked Questions

How do I add persistent memory to CrewAI agents?

Install novyx-crewai with pip, then pass NovyxStorage as the storage backend when creating your Crew. It works with all 3 CrewAI memory types: short-term, long-term, and entity memory.

Does CrewAI have built-in persistent memory?

CrewAI supports memory but stores it in process memory by default. Novyx provides a persistent storage backend that survives restarts, supports semantic search, and enables rollback.

Can CrewAI agents share memory with Novyx?

Yes. Using Novyx Context Spaces, multiple CrewAI agents can read and write to shared memory namespaces. Agent A learns it, Agent B knows it — across sessions and processes.

See all integrations on the Integrations page, or read the API docs.

Start Building with Persistent Memory

5,000 memories free. No credit card required.

Start Free

Enter your email to create your developer account.