letta
★ 25.5k
vs
cognee
★ 33.4k
letta vs cognee
letta: Letta is a powerful platform for building stateful AI agents equipped with advanced memory, enabling them to learn and self-improve over time. It provides both a command-line interface for local agent execution and a comprehensive API with Python and TypeScript SDKs for seamless integration into applications.; cognee: Cognee turns documents, code and conversations into persistent graph-based memory for agents to retrieve across sessions. Its local text pipeline can extract and search with small models without an LLM API key, while generated answers and some media processing require additional model configuration.
01
TL;DR
lettaMemory & Context · ★ 25.5k
When to choose:
- You want a long-lived agent that remembers past work and rewrites its own memory and context over time.
- You want one agent reachable from CLI, desktop, browser, mobile and messaging apps, with subagents, schedules and hooks.
- You want memory you can inspect: the README says context is tracked in git and can sync to your own repository.
When to skip:
- You only need to add memory to an agent you already use through MCP; a small MCP memory server is a lighter fit.
- You rely on older Letta tutorials or the V1 API server: the project restructured, and the V1 server is retired.
- You want everything to work without signing in: Letta Cloud is the default backend and some features need it.
cogneeMemory & Context · ★ 33.4k
When to choose:
- Your tasks depend on relationships across sources and sessions.
- You can evaluate evidence quality and maintain the memory lifecycle.
When to skip:
- A maintained project file already contains all the context you need.
- You need proven retrieval accuracy without running a corpus-specific pilot.
02
Side-by-Side Comparison
Field
Category
Memory & Context
Memory & Context
Stars
★ 25.5k
★ 33.4k
License
Apache-2.0
Apache-2.0
Install Command
npm install -g @letta-ai/letta-code
uv pip install "cognee[gliner]"
Updated
1mo ago
Today
Open Source
Yes
Yes
Tags
Stateful AI, Agent Platform, Advanced Memory
agent-memory, agent-skills, ai
03
Features
01Build stateful AI agents with advanced memory
02Agents capable of learning and self-improvement over time
03CLI tool for running agents locally in your terminal
04Comprehensive API for integrating agents into applications
05Support for skills and subagents; fully model-agnostic
01Provides remember, recall, improve and forget operations for stored knowledge.
02Uses a local GLiNER extractor and local embeddings when no LLM key is configured.
03Connects graph, vector and code context during retrieval.
04Offers Python, CLI, plugins and MCP integration paths.
04
Use Cases
↳Running AI agents locally in your terminal for coding and general tasks.
↳Integrating stateful AI agents into custom applications using the API and SDKs.
↳Developing self-improving AI systems that adapt and learn continually.
↳Retain project decisions, fixes and lessons across agent sessions.
↳Connect company documentation, conversations, tickets and code in shared memory.
↳Model domain entities and relationships for grounded context retrieval.
05
Best For
Most PopularEssential
Most Popular
FAQ
FAQ
What is the difference between letta and cognee?
Both letta and cognee are in the Memory & Context category. letta has 25.5k stars, while cognee has 33.4k stars.
Which is better, letta or cognee?
The best choice depends on your use case. Choose letta if Running AI agents locally in your terminal for coding and general tasks., and cognee if Retain project decisions, fixes and lessons across agent sessions..
Is letta free or open source?
Yes, letta is open source on GitHub (Apache-2.0).
Is cognee free or open source?
Yes, cognee is open source on GitHub (Apache-2.0).
Cloud Infrastructure
AdDeploy on DigitalOcean
Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.
→