Migration guide
Migrating from Letta to Cognee
Letta’s platform changes left teams that built on its memory APIs looking for a maintained home for agent memory. This guide outlines how to move that memory to Cognee’s open-source platform.
Based on public information as of June 2026. See each vendor's site for current details.
Letta (formerly MemGPT) keeps memory inside the agent loop: the model edits its own memory blocks and swaps context between tiers. Teams that need retrieval over large corpora, facts that supersede each other over time, or one memory shared across several agents and tools tend to outgrow that design — and want a memory layer that is not tied to a single agent runtime.
Why teams migrate to an open-source core
Cognee’s core is open source and the memory layer is independent of any one agent runtime. Memory lives in your infrastructure and is queryable from every agent and tool you run, not only from inside one agent’s context.
Your data is stored in systems you control and remains exportable. Run fully local, self-host, or use Cognee Cloud — the choice stays yours over time.
Cognee has 17k+ GitHub stars and 5M+ SDK runs per month, and runs in production at Bayer, the University of Wyoming, and Knowunity.
Migration outline
- 1
Export your memory from Letta
Export your agents as Letta Agent Files (.af); Cognee’s LettaSource adapter reads core memory blocks and message history directly.
- 2
Install Cognee and configure storage
pip install cognee, then point it at the graph and vector storage you want to use — fully local works.
- 3
Re-ingest your data
Load the exported memory with cognee.add(), then run cognee.cognify() to build the knowledge graph and vector index.
- 4
Point your agents at Cognee
Query memory with cognee.search() from the Python SDK, or connect Claude Code, Cursor, and other MCP clients through the MCP server.
The exact mapping depends on how your agents used Letta’s memory blocks, so treat this as a starting outline rather than a script. The full setup and API reference is at docs.cognee.ai.