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

Migration outline

  1. 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. 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. 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. 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.

Go deeper

Give your agents memory you own