We're hiring! Come build with us
Zep
Zep vs. Letta

A Letta alternative for enterprise agent memory

Letta (formerly MemGPT) is an open-source framework for building stateful agents with self-editing memory. Zep is the Context Lake — enterprise infrastructure that manages, governs, and serves agent memory at scale on temporal context graphs.

Start building
Key takeaways

A framework decision, or a memory decision

  • Letta (letta.com) is a stateful-agent framework with self-editing memory; Zep is a dedicated agent-memory layer — the Context Lake.
  • Zep is framework-agnostic, stores bi-temporal facts with provenance, and governs memory in the substrate (ABAC, retention, audit; SOC 2 Type II, HIPAA).
  • Benchmark-proven: 94.7% LoCoMo and 90.2% LongMemEval (results). S&P Global Market Intelligence named Zep a likely de facto partner in the enterprise agent stack (coverage).
The distinction

A framework vs. a memory layer

What Letta is. Letta grew out of the MemGPT research and is an open-source platform for building agents that manage their own memory — with memory “blocks” the agent can edit, and a framework for orchestrating stateful agents. Its center of gravity is the agent framework: how the agent reasons and updates its own context.

What Zep is. Zep is a dedicated memory layer, not a framework. It ingests chat, business data, and documents; builds bi-temporal context graphs (via the open-source Graphiti, running on Zep's Context Graph Engine); and serves relevant, token-efficient context to any agent — built in any framework, or none. Memory is governed in the substrate (ABAC, retention, audit) and served at enterprise scale with sub-200ms p95 retrieval.

RRobbie2024-09-07 · 14:27
I only wear Adidas shoes. I love them!
Facts
  • Robbie only wears Adidas shoes.
  • Robbie strongly favors Adidas shoes.
soleworks.com/account/returns/SO-48219
SoleworksReturn · Order #SO-48219 · Adidas Ultraboost 22

Reason for return

Product fell apart

Additional comments

These Adidas fell apartafter three weeks and I'm furious. I'll be buying Nike from now on.
Facts
  • Robbie only wears Adidas shoes.
  • Robbie strongly favors Adidas shoes.
  • Robbie’s Adidas shoes fell apart.
  • Robbie is returning their Adidas shoes.
  • Robbie is angry about their Adidas shoes.
  • Robbie intends to wear Nike shoes.
How they compare

Letta vs. Zep, side by side

LettaZep
Primary roleStateful-agent framework with self-editing memoryDedicated agent-memory layer (Context Lake)
Framework lock-inYou build on Letta's agent modelWorks with any framework, or none
Memory modelAgent-managed memory blocksBi-temporal context graph (facts + provenance + validity)
Temporal reasoningNo temporal graph — OS-style memory blocks the agent self-edits“What's true now / what was true then,” automatic fact invalidation
Enterprise governanceFramework-level; not the focusSubstrate ABAC, retention + legal hold, audit, BYOK/BYOC, SOC 2 Type II, HIPAA
Benchmarks94.7% LoCoMo (155ms), 90.2% LongMemEval (162ms)
Open sourceYesGraphiti (the graph library) is open source
When to choose

Pick the tool that fits the problem

Choose Letta when

You want an opinionated framework for building agents that manage their own memory, and you're happy to adopt that agent model end-to-end.

  • You're choosing an agent framework, not just a memory layer
  • Self-editing memory blocks out of the box are the priority
  • Research and smaller projects, open-source-first
Choose Zep when

Memory is the hard part and you don't want it coupled to a single agent framework.

  • Temporal, provenance-tracked facts across many sources
  • Governance and deployment control for regulated environments
  • Proven retrieval performance at enterprise scale
  • S&P Global Market Intelligence named Zep a likely de facto partner in the enterprise agent stack
Get started

Add governed agent memory in three lines of code

Start building
FAQ

Frequently asked questions

Is Letta a memory layer or a framework?

Primarily a stateful-agent framework with self-editing memory. Zep is a dedicated memory layer that any framework can call.

Can I use Zep with my existing agent framework?

Yes — Zep is framework-agnostic (LangGraph, custom, or none) and adds memory in three lines of code.

Which is better for enterprise?

For governed memory at scale across many agents and data sources, Zep is purpose-built for it; Letta is centered on the agent framework. Evaluate both against your governance and scale requirements.