CrewAI memory
CrewAI memory as the native 1.x external memory backend: durable, shared, cross-execution crew memory via Memory(storage=...).
Overview
Install crewai-memorysync and point Memory(storage=MemorySyncStorage(...)) at MemorySync: CrewAI’s own save/recall loop runs against MemorySync instead of local LanceDB files, so crew memory survives redeploys and is shared across services. Each record is one value in MemorySync framework state, and its content is extracted into facts every MemorySync surface can recall; an update replaces the record’s facts, and deletes and resets remove them. Five agent tools and a one-line task-context helper complete the surface. The only memory vendor implementing CrewAI 1.x’s actual StorageBackend protocol.
Setup status and requirements
- Supported version
- crewai-memorysync 1.1.0 (PyPI)
- Last setup review
- 2026-10-01
- Permissions
- A MemorySync API key with read and write scopes; deletes and resets need delete permission.
- Limits
- Requires crewai 1.0+ (Python 3.10+). Full resets require allow_full_reset=True by design. CrewAI embeds queries with its own embedder; keep one embedding model per store.
Capabilities
- Genuine StorageBackend: CrewAI drives saves and recalls automatically
- Memory survives redeploys and is shared across crews and services
- Built-in-parity search: same score scale and filter semantics as LanceDB
- Retry-safe writes: one live value per record, so an identical save extracts nothing twice
- Record content becomes facts; updates replace them, deletes remove them
- Full-wipe guard: reset(None) refused without an explicit opt-in
- Five never-raise agent tools with a read-only mode
- One-line register_memorysync() for Memory(storage="memorysync")
Quick Start
from crewai import Crewfrom crewai.memory import Memoryfrom crewai_memorysync import MemorySyncStoragecrew = Crew(agents=[researcher, writer],tasks=[research_task, write_task],memory=Memory(storage=MemorySyncStorage(user_id="support-crew")),)crew.kickoff()
Use Cases
Crews that carry context across executions
One knowledge base shared by every crew member
Per-customer isolated crew memory
Guides and related pages
Related integrations
Explore More
Add long-term memory to CrewAI
Start free with 10,000 add requests a month and no credit card. Memory is stored per end user and comes back in every later session.
