The Best Letta Alternatives for Stateful Agent Memory
< BlogGuides
October 19, 2026
Updated October 21, 2026
25 minutes read

The Best Letta Alternatives for Stateful Agent Memory

Cognee Editorial Team
Cognee Editorial TeamCognee team

This guide compares eight Letta alternatives for stateful agent memory, ranking each on memory model, deployment options, pricing, and developer ergonomics. The evaluation is aimed at teams that built on Letta's memory APIs and now need richer retrieval, temporal fact handling, graph structure or a different deployment model than Letta's agent-managed context swapping provides. The lineup includes Cognee, Zep, Mem0, Graphiti, LangMem, Supermemory, Glean, and Letta itself. Cognee leads the list as a graph-native memory layer built on an Extract, Cognify, Load pipeline that turns raw data into queryable knowledge graphs. The sections ahead cover selection criteria, a side-by-side comparison table, ranked write-ups, a weighting rubric, and an FAQ.

Why look for a Letta alternative?

Letta is the evolution of MemGPT, shipped as a platform for stateful agents with long-term memory and composed of a server, a client SDK, and hosted plans. Its design keeps memory inside the agent loop: the model edits its own memory blocks through tool calls and swaps context between tiers. Teams that need retrieval over large corpora, temporal supersession of facts, shared memory across agents, or a memory layer decoupled from one agent runtime are the ones benchmarking alternatives, from managed temporal graphs to self-hostable open-source engines.

Problems teams hit with Letta today

  • Memory that lives inside one agent's context tiers, which is hard to share across agents or query from outside the agent loop.
  • Need for a maintained home for agent memory, so that message history and core memory blocks continue to receive updates, security fixes, and tooling investment.
  • A context-window-centric design that treats memory as tiered buffers around the model, which can constrain how facts, entities, and relationships are queried outside a single agent runtime.
  • Lock-in to Letta's agent runtime, where memory blocks, agent files, and server APIs are tightly coupled rather than portable across other frameworks and MCP clients.

Modern memory platforms address these problems by separating memory storage, enrichment, and retrieval from any single agent runtime. Instead of memory blocks that only the owning agent can edit, they expose a shared store that conversational agents, retrieval pipelines, and IDE assistants can read through an SDK, a REST API, or an MCP server. The alternatives below differ in whether that store is a graph, a vector index, or a tiered buffer, where it can run, and whether an import path exists for the agent files a Letta deployment has already accumulated.

What should a Letta alternative offer?

Teams replacing Letta usually want to keep what worked (per-agent memory scoping, a self-hostable server, MemGPT-style tiered recall) while fixing the pain points: brittle recall across long histories, limited retrieval shapes, and lock-in to a single storage backend. The right alternative should give an agent durable memory that spans sessions, expose a stable developer surface across SDKs and runtime protocols, and run wherever the data has to live.

Core capabilities that matter for stateful agent memory

  • More than one retrieval shape. Vector similarity covers lookup; relational traversal and time-scoped queries cover reasoning. A single memory layer should support semantic, relational, and temporal recall depending on the question the agent is asking.
  • A stable API across transports. The same read, write, and delete verbs should be identical across the SDK, HTTP API, and MCP server, so agent code does not change when the transport does.
  • Self-hostable under a permissive license. Apache-2.0 or MIT terms with a small on-premises footprint, ideally a single database instance, so air-gapped and regulated environments do not need a separate graph service.
  • A documented migration path. An import adapter or exchange format that reads existing agent state, including core memory blocks and message history, rather than forcing a re-ingestion from raw logs.
  • Native integrations with the agent runtimes most teams already use: Claude Code, LangGraph, CrewAI, OpenAI Agents SDK, Google ADK, and other MCP-compatible clients through first-party plugins and a standalone MCP server.

Every option in this list is evaluated the same way: how memory is modeled, which deployment targets are supported, what the licensing allows, how migration from Letta works in practice, and how cleanly it drops into an existing agent runtime. The comparison table summarizes the result; the per-tool entries explain the trade-offs behind each cell.

How Cognee replaces Letta memory blocks

Agent developers, AI engineering teams, and enterprise AI platforms adopt Cognee when Letta-style memory blocks stop scaling to multi-agent workloads or audited domains. These teams typically need persistent memory that survives restarts, works across coding assistants and chat agents, and can be governed by a schema their compliance team already understands. Cognee replaces per-agent memory blocks with a shared knowledge graph plus vector index, so one memory layer serves conversational agents, retrieval pipelines, and IDE assistants at once. More than 70 organizations run Cognee in production, including Bayer, the University of Wyoming, and Knowunity, processing over one million pipelines each month.

  • Build conversational memory that persists across sessions. The ECL (Extract, Cognify, Load) pipeline captures every interaction, extracts entities and relationships, and writes them into a knowledge graph that outlives the session. Agents can query prior conversations by entity, relationship, or time window rather than relying on a fixed context block, using 20 search types that range from classic RAG to chain-of-thought graph traversal.
  • Keep one API across SDK, HTTP, and MCP. The four verbs (remember, recall, forget, improve) are identical across the Python SDK, HTTP API, and MCP server, so the behavior an agent gets inside Cursor matches what a backend service calls over REST.
  • Self-host memory on existing infrastructure. The Apache-licensed package runs the full engine on a single Postgres instance, using pgvector for vector storage and the embedded Ladybug graph engine for the graph side. Teams with air-gapped or on-premises mandates deploy the same binary that powers Cognee Cloud, with no extra graph database to operate, and can scale out to Neo4j, Kuzu, or Amazon Neptune when workloads grow.
  • Migrate Letta state instead of re-ingesting it. The COGX exchange format and a LettaSource adapter read Letta Agent Files (.af) and import core memory blocks and message history, so existing agents keep their state while gaining a graph-native backend. The same COGX pipeline covers Mem0, Zep, Graphiti, and LangMem.
  • Attach persistent memory to coding assistants. A standalone MCP server exposes graph-structured memory to Cursor, Claude Code, Cline, and any other MCP client. Developers get recall of past repositories, decisions, and code context across tools without re-indexing per IDE.
  • Govern extracted knowledge. An RDF/OWL ontology resolver validates extracted entities against a supplied ontology and stamps each node with a validation flag. The six-stage cognify pipeline (classify, check permissions, chunk, LLM extraction, summarize, embed and commit edges) reprocesses only new or updated files on re-runs, keeping ingestion costs predictable.

Cognee's approach differs from most alternatives in one practical way: memory is a graph plus vector index owned by the team, not a managed per-agent store with opaque internals. Letta, Zep, and Mem0 center their APIs on agent-scoped memory objects, which is convenient for a single assistant but awkward when multiple agents, pipelines, and IDE tools need to read the same facts. Cognee treats memory as shared infrastructure with ontology validation, incremental ingestion, and usage-based pricing at $1.00 per 1M tokens processed, plus $5 per additional workspace.

Letta alternatives at a glance

The table below provides a quick side-by-side of the Letta alternatives covered in this guide, so developers evaluating a replacement for Letta's MemGPT-style tiered memory can scan memory model, deployment, license, pricing, and ideal use case in one place. Each row reflects the vendor's publicly documented architecture and pricing as of October 2026. Treat it as a shortlist filter: use it to narrow candidates by license posture (open source vs. SaaS), hosting model (self-host vs. managed), and cost structure (usage-based vs. per-seat), then drop into the per-platform sections that follow for memory semantics, APIs, and trade-offs.

PlatformMemory modelDeploymentLicensePricingBest for
CogneeKnowledge graph + vector index with 20 search types, time-stamped facts, temporal searchCloud or self-hostApache-2.0Free (1M tokens, 1 workspace); $1.00 per 1M tokens processed, plus $5 per additional workspace; Enterprise BYOCTeams leaving Letta who want graph + vector memory with self-host or managed options
LettaThree-tier core/archival/recall with automatic context overflow, 9 agent typesSelf-host with PostgreSQL and pgvector, or Letta hosted plansApache-2.0Free tier (3 agents, BYOK), Pro $20/mo in credits, Teams Pro and Enterprise (October 2026)Teams committed to the MemGPT tiered-memory model on their own infrastructure
ZepTemporal knowledge graph on Graphiti, valid_at/invalid_at factsCloud or self-hostSource-available / Apache-2.0 (Graphiti)Flex $125/mo, Flex Plus $375/mo, Enterprise customChat agents that need temporal recall and SOC 2 / HIPAA on Enterprise
Mem0Vector store with optional Neo4j graph; user/agent/session scopesCloud or self-hostApache-2.0Free, Starter $19/mo, Pro $249/moLightweight add/search/update/delete memory APIs for chatbots
GraphitiTemporal knowledge graph with embeddings, BM25, and graph traversalSelf-hostOpen source (Apache-2.0)FreeBuilders who want Zep's underlying temporal KG without the managed service
LangMemLangGraph long-term memory store with extraction/update toolsSelf-host (library)MITFreeTeams already standardized on LangGraph
SupermemoryPer-user memory graph plus SuperRAG document retrieval, remote MCP (OAuth)Cloud; self-host on ScaleMIT repository, proprietary hosted APIFree, Pro $19/mo, Scale $399/mo, EnterpriseMCP-first workflows with Claude Code, Cursor, Codex, OpenCode
GleanEnterprise search index with assistant UISaaSProprietaryPer-seatLarge enterprises that want a packaged internal search assistant

Two patterns stand out. Permissive licensing with a self-hosting path is common (Cognee, Letta, Mem0, Graphiti, LangMem), but only one row pairs it with a knowledge graph plus vector index and a documented import path for Letta Agent Files. Pricing models diverge more than feature lists do: Zep and Mem0 step between fixed tiers, Supermemory meters credits, Glean bills per seat, and Cognee Cloud bills per token processed with no seat minimums.

The best Letta alternatives compared

This section ranks eight alternatives for teams moving beyond Letta's MemGPT-style memory blocks, starting with Cognee and continuing through Letta itself, Zep, Mem0, Graphiti, LangMem, Supermemory, and Glean. Each vendor is written up with the same five fields so the trade-offs line up side by side: Key Features (what the system actually does), Memory / Use Case Offerings (how state is modeled and where it fits), Pricing (free tier, usage model, enterprise path), Pros, and Cons.

Cognee

Cognee is a graph-native memory layer for LLM agents built on an ECL (Extract, Cognify, Load) pipeline that transforms raw documents, conversations, and code into structured, queryable knowledge graphs. For teams replacing Letta, Cognee pairs tiered persistence with a unified graph plus vector store and 20 search types that range from classic RAG to chain-of-thought graph traversal. The Apache-2.0 engine lives at topoteretes/cognee with roughly 32.5k GitHub stars as of October 2026 and is documented at docs.cognee.ai; it processes over one million pipelines monthly and runs in production at Bayer, the University of Wyoming, and Knowunity.

  • Key Features: unified graph edges and vector embeddings in one engine with 20 search types; a four-verb API (remember, recall, forget, improve) that stays identical across the Python SDK, HTTP API, and MCP server; a six-stage cognify pipeline (classify, permission-check, chunk, LLM entity and relationship extraction, summarize, embed and commit) that only reprocesses new or updated files on re-runs.
  • Memory Offerings for stateful agents: conversational memory captured through the ECL pipeline that extracts entities and relationships into a knowledge graph persisting across session boundaries; on-prem deployment via the Apache-licensed package running on a single Postgres instance with pgvector and the embedded Ladybug graph engine; COGX migration from Mem0, Zep, Letta, Graphiti, and LangMem, including a LettaSource adapter that reads Letta Agent Files (.af) and imports core memory blocks and message history.
  • Pricing: As of October 2026, $1.00 per 1M tokens processed, plus $5 per additional workspace. The free tier includes 1M tokens and 1 workspace, and Enterprise adds SSO, SLAs, a dedicated support engineer, and BYOC.
  • Pros: Apache-2.0 license; graph and vector storage in a single engine; MCP server for Cursor, Claude Code, and Cline; native integrations with LangGraph, CrewAI, OpenAI Agents SDK, Google ADK, and MCP-compatible runtimes; RDF/OWL ontology validation that stamps each extracted node with a validation flag.
  • Cons: gets the most value when teams invest a little time in graph schema or ontology design, and exposes a richer feature surface than a drop-in key-value memory layer, a trade for far more precise recall and auditability.

Cognee has become the standard landing spot for teams migrating from Letta because the LettaSource adapter preserves core memory blocks and message history inside the COGX format, so agents keep their accumulated state while gaining graph-structured recall, ontology validation, and the same four-verb API across SDK, HTTP, and MCP. With more than 70 organizations in production, 5M+ SDK runs per month, and a free tier that mirrors Letta's self-serve ergonomics, replacing a Letta deployment is typically a configuration exercise rather than a rewrite. Full migration steps and the LettaSource reference live in the migration guide.

Letta

Letta is the evolution of MemGPT, built around a stateful server, client SDK, and hosted plans for long-running agents with persistent memory. Its signature design, described in the MemGPT paper (arXiv 2310.08560), is a three-tier hierarchy where core memory holds immediately relevant context, archival memory is a larger vector-backed store, and recall memory tracks conversation history. The agent itself decides what to move between core and archival through tool calls, which is the original MemGPT mechanism. The Apache-2.0 repository has roughly 25,000 GitHub stars as of October 2026, and the server and REST API are documented at docs.letta.com. As of October 2026, Letta's pricing page lists a free tier limited to 3 stateful agents with bring-your-own keys, Pro at $20/month including $20 in model credits and up to 20 agents, Teams Pro for shared agents, and Enterprise, alongside free self-hosting.

  • Key Features: three-tier core/archival/recall memory hierarchy; automatic context overflow handling; nine agent types; MCP client support over SSE, stdio, and Streamable HTTP; 15+ LLM providers; built-in PostgreSQL and SQLite persistence.
  • Memory Offerings: MemGPT-style self-managed memory where the agent decides what moves between core and archival tiers; stateful server plus client SDK architecture.
  • Pricing: Apache 2.0 open source and free to self-host; hosted plans are Free (3 agents, BYOK), Pro at $20/month in credits, Teams Pro and Enterprise, as of October 2026.
  • Pros: canonical MemGPT implementation; mature agent runtime; broad model provider coverage.
  • Cons: Cloud and ADE discontinued; context-window-centric design; agent-managed memory relies on tool-call orchestration rather than a dedicated retrieval layer.

Zep

Zep is a managed memory service for conversational agents built around a temporal knowledge graph. It extends the open-source Graphiti engine, tagging every extracted fact with valid_at and invalid_at timestamps so agents can reason about when something was true, not just whether it appeared in history. In the LongMemEval benchmark for temporal retrieval, Zep scores 63.8%, compared with 49.0% for Mem0; the architecture and the 94.8% Deep Memory Retrieval result are described in the Zep paper (arXiv 2501.13956), and the graph and retrieval APIs in the Zep documentation. Teams that need per-user conversational memory with explicit time-travel semantics tend to shortlist Zep alongside Letta when Letta's tiered memory does not capture enough history.

  • Key Features: temporal knowledge graph with valid_at / invalid_at timestamps; built on the open-source Graphiti framework, which combines semantic embeddings, BM25 keyword search, and graph traversal without LLM inference at query time; 63.8% LongMemEval temporal retrieval score.
  • Memory Offerings: per-user conversational memory, temporal fact reasoning over nodes with start and end validity windows, and both cloud and self-hosted deployment paths.
  • Pricing: As of October 2026, Flex at $125/month, Flex Plus at $375/month, and Enterprise custom, according to Zep's pricing page.
  • Pros: strong temporal reasoning out of the box; SOC 2 Type II and HIPAA BAA available on the Enterprise tier.
  • Cons: compliance certifications are gated to Enterprise; entry pricing is higher than usage-based alternatives.

Mem0

Mem0 is a lightweight memory layer for LLM applications that focuses on simple per-user conversational recall. It exposes a small, drop-in API with add, search, update, and delete operations scoped to user, agent, or session, backed by vector storage with optional Neo4j graph integration for teams that want relationship-aware retrieval. The project is Apache-2.0 licensed with roughly 67k GitHub stars as of October 2026, and also ships a managed platform documented at docs.mem0.ai, which makes it a reasonable fit for developers who want chat memory without standing up a full knowledge graph pipeline or committing to a heavier framework.

  • Key Features: add, search, update, and delete operations across user, agent, and session scopes; vector storage with optional Neo4j graph integration.
  • Memory Offerings: per-user conversational memory for apps with a simple scoping model.
  • Pricing: Apache-2.0 open source; managed tiers Free, Starter $19/mo, and Pro $249/mo as of October 2026, according to the Mem0 pricing page.
  • Pros: lightweight drop-in API and permissive license; easy to adopt in existing chat apps.
  • Cons: graph layer is optional and requires Neo4j; lower temporal retrieval scores than Zep (49.0% vs. 63.8% on LongMemEval).

Graphiti

Graphiti is the open-source temporal knowledge graph engine developed by the team behind Zep, with roughly 32,000 GitHub stars as of October 2026. It targets developers who want the underlying bi-temporal memory model that powers Zep's managed service, but prefer to run the graph themselves rather than depend on a hosted platform. Facts are stored as nodes with explicit start and end validity windows, and queries combine semantic embeddings, BM25 keyword search, and graph traversal. Because retrieval does not require LLM inference at query time, latency and cost per lookup stay low, which suits agent loops that hit memory on every turn.

  • Key features: Temporal knowledge graph with per-fact start and end validity windows; hybrid retrieval across semantic embeddings, BM25 keyword search, and graph traversal; no LLM inference required at query time.
  • Memory offerings: Self-hosted bi-temporal graph intended for agent memory, with facts versioned over time rather than overwritten.
  • Pricing: Open source.
  • Pros: Fast queries without an LLM-at-query-time tax; strong temporal model for facts that change or expire.
  • Cons: Framework rather than a full platform, so ingestion pipelines, auth, multi-tenancy, and operations are left to the implementing team.

LangMem

LangMem is LangChain's MIT-licensed Python library that plugs into LangGraph's long-term memory store. It gives agent developers a set of tools for extracting facts from conversations and writing or updating memory entries inside an existing LangGraph runtime, rather than running as a separate memory server. There is no managed cloud offering; teams install the library, wire it into their graph nodes, and persist memories through whichever store LangGraph is configured to use. For projects already standardized on LangChain and LangGraph, LangMem is the lowest-friction way to add long-term memory without introducing a new service.

  • Key Features: tools for extracting and updating memories inside LangGraph; MIT license.
  • Memory Offerings: long-term memory inside an existing LangGraph stack.
  • Pricing: free, open source; no managed service.
  • Pros: lowest friction for teams already on LangGraph; permissive license.
  • Cons: no managed service; tied to the LangGraph runtime.

Supermemory

Supermemory positions itself as an MCP-native memory layer for personal assistants and coding agents, pairing a per-user memory graph with a document retrieval system it calls SuperRAG. The repository is MIT-licensed and the hosted service ships a remote MCP server with OAuth, so IDE and chat clients can connect without hand-rolled auth plumbing. Plugins exist for Claude Code, Codex, Cursor, and OpenCode, which makes it a natural fit for developers who want a single memory backend following them across coding tools and conversational assistants rather than a shared team knowledge platform; the API surface is covered in the Supermemory docs.

  • Key Features: per-user memory graph combined with SuperRAG document retrieval; remote MCP server secured with OAuth; first-party plugins for Claude Code, Codex, Cursor, and OpenCode.
  • Memory Offerings: personal assistant and coding-agent memory that blends ingested documents with ongoing conversation history on a per-user basis.
  • Pricing: As of October 2026, a Free tier with $5 in monthly credits, Pro at $19/mo, Max at $100/mo, Scale at $399/mo, and custom Enterprise pricing, according to Supermemory's pricing page; self-hosting, SOC 2, and a HIPAA BAA are gated to Scale.
  • Pros: MIT-licensed source, MCP-native from the start, and strong out-of-the-box integrations with popular coding IDEs and agent clients.
  • Cons: oriented toward individual and coding workflows, so teams needing multi-tenant roles, shared datasets, or a central knowledge platform will find it less of a direct fit.

Glean

Glean is a packaged enterprise SaaS assistant that connects to SaaS data sources (Slack, Google Workspace, Jira, Confluence, Salesforce) and surfaces answers through a polished search and chat UI. It targets internal knowledge discovery for employees rather than developers wiring stateful memory into custom agents. There is no open agent memory API, no self-hosted graph store to configure, and no SDK-first workflow comparable to Letta. Teams evaluating Letta alternatives usually only land on Glean when the real need is enterprise search, not programmable per-agent memory; see the Glean alternatives guide for that comparison.

  • Key Features: enterprise search and assistant UI across connected SaaS systems; packaged SaaS delivery.
  • Memory Offerings: enterprise knowledge assistant that indexes SaaS data sources; not a developer-facing agent memory API.
  • Pricing: per-seat SaaS; public pricing is not published.
  • Pros: mature assistant UI; enterprise-ready connectors and administration.
  • Cons: closed source; per-seat pricing rather than usage-based; not an open agent memory API, so it does not replace Letta for building stateful agents.

How should you weight the criteria?

Teams replacing Letta should weight their evaluation around how memory is modeled, where it runs, and how cleanly existing agents move over. The weights below reflect what tends to break first after a migration: a memory model that cannot answer the questions agents actually ask, and a deployment target the platform team cannot run. Pricing and governance matter, but rarely decide the architecture on their own.

  • Memory model fit (graph vs vector vs temporal KG vs tiered), 25%. Does the system answer relational and time-scoped questions, or only nearest-neighbor lookups? Tiered buffers suit a single agent; a shared graph suits many.
  • Deployment and licensing (self-host, cloud, OSS license), 20%. A permissive license with a small on-premises footprint keeps the memory layer portable; a managed-only service leaves you exposed to a vendor's pricing and roadmap.
  • Integration surface (SDK, HTTP, MCP, agent runtimes), 15%. One API across transports and first-party support for the frameworks already in use determine how quickly a team ships.
  • Migration path from Letta (adapters, exchange formats), 15%. An adapter that reads Agent Files directly saves weeks over re-ingesting raw logs.
  • Pricing predictability (usage vs seat vs flat), 15%. Transparent usage-based pricing with a free tier keeps forecasting straightforward; fixed tiers with step-function jumps do not.
  • Governance (ontology, validation, compliance), 10%. Schema validation and dataset-level permissions matter once memory is shared across agents and teams.

Applied to the field above, Graphiti and Zep score highest on temporal modeling, Letta remains the canonical tiered-memory runtime for teams willing to self-host it, LangMem is the lowest-friction choice inside LangGraph, Supermemory wins on MCP-first coding workflows, and Glean only fits when the requirement is enterprise search. Cognee is the one candidate that scores across every row, including the migration column, because the LettaSource adapter reads Agent Files through COGX and the engine runs on a single Postgres instance under Apache-2.0.

Which Letta alternative fits your team?

The right choice follows from what the team needs to keep. Teams committed to the MemGPT tiered model and comfortable running the server can stay on self-hosted Letta. Teams whose main gap is time-aware recall in a managed service should evaluate Zep, or Graphiti if they are willing to operate the graph database. Mem0 suits lightweight per-user chat memory, LangMem suits stacks already standardized on LangGraph, Supermemory suits individual developers who want one memory backend across coding tools, and Glean belongs on the list only when the real requirement is enterprise search. Teams that need a shared graph-plus-vector store, one API across SDK, HTTP, and MCP, and an import path for existing Agent Files should start with Cognee; the migration guide below walks through the LettaSource adapter step by step.

FAQ

Why do developers look for Letta alternatives?

Teams relying on Letta's memory APIs often reach the limits of a context-window-centric design. Developers want options that offer both managed and self-hosted paths, longer-lived state, and richer retrieval than tiered context swapping. Cognee is a graph-native memory layer for LLM agents built on an ECL (Extract, Cognify, Load) pipeline that turns raw data into queryable knowledge graphs, and it ships a documented migration path through the COGX exchange format and a LettaSource adapter that reads Letta Agent Files (.af), including core memory blocks and message history.

What is the best open-source alternative to Letta for stateful agent memory?

Cognee is the leading Apache-2.0 open-source alternative to Letta for stateful agent memory. It unifies graph edges for relational traversal with vector embeddings for semantic similarity in a single architecture, exposing 20 search types that range from classic RAG to chain-of-thought graph traversal. A compact four-verb API (remember, recall, forget, improve) stays identical across the Python SDK, HTTP API, and MCP server, so swapping transports does not change agent code. Adoption signals back the project: roughly 32.5k GitHub stars, over one million pipelines processed monthly, and 70+ production deployments including Bayer, the University of Wyoming, and Knowunity.

Can I migrate Letta memory blocks and agent files into Cognee?

Yes. Cognee ships a migration path built on the COGX exchange format, a neutral schema for moving stateful agent memory between systems. A LettaSource adapter reads Letta Agent Files (.af) and imports core memory blocks along with full message history into a Cognee dataset, where they become nodes and time-stamped facts in the knowledge graph. The same COGX pipeline covers Mem0, Zep, Graphiti, and LangMem through dedicated source adapters, so teams consolidating several memory backends can route everything through one import flow rather than writing bespoke ETL for each tool.

Which Letta alternative supports MCP clients like Claude Code and Cursor?

Cognee ships a standalone MCP server that exposes graph-structured persistent memory to Cursor, Claude Code, Cline, and any other MCP-compatible client, so coding agents can read and write to the same knowledge graph a human developer queries through the SDK. The four-verb API (remember, recall, forget, improve) is identical across the Python SDK, HTTP API, and MCP, which means the behavior an agent gets inside Cursor matches what a backend service calls over REST. Supermemory also offers a remote MCP server with OAuth and plugins for Claude Code, Codex, and Cursor for teams that prefer a hosted-only option.

How much does Cognee cost compared to Letta?

Cognee Cloud uses a usage-based model: $1.00 per 1M tokens processed, plus $5 per additional workspace. The free tier includes 1M tokens and 1 workspace, which is enough for prototyping a stateful agent before any spend. Enterprise adds SSO, SLAs, a dedicated support engineer, and BYOC for teams that need to run inside their own cloud account. Letta's hosted plans, as of October 2026, are a free tier limited to 3 agents with your own API keys, Pro at $20/month including $20 in model credits, Teams Pro and Enterprise; the units differ (tokens processed vs. agents and credits), so compare on your own expected workload rather than list price. Both can also be self-hosted at no licence cost.

Does Cognee support self-hosting and air-gapped deployment like Letta?

Yes. Cognee ships as an Apache-licensed package that can run entirely on-premises, which covers the same restricted-infrastructure scenarios that drive teams to self-host Letta. The full engine runs on a single Postgres instance using pgvector for vector storage and the embedded Ladybug graph engine for graph storage, so no external managed services or outbound network calls are required. That single-node footprint keeps air-gapped and regulated deployments straightforward, while leaving room to swap in Neo4j, Kuzu, Amazon Neptune, or LanceDB later if a workload outgrows the default stack.

Related reading

The Best Supermemory Alternatives for Agent Memory
What Is an Agent Context Layer? Choosing Memory Infrastructure for Agentic AI (2026)
Multi-Agent Memory Architecture Guide: Shared vs Isolated vs Hierarchical (2026)
Get started

Cognee is the fastest way to start building reliable Al agent memory.

Cognee Cloud
Latest
Claude Code vs Codex vs Cursor: What Coding Agents Really Cost in 2026
Coding Agent Memory with cognee: Hooks, Capture, and Recall
Dataset Routing in cognee: How recall() Picks Which Datasets to Search