Letta
Letta is an open-source platform for building stateful AI agents with persistent memory that can continuously learn and self-improve over time.
At a Glance
Free tier for getting started with Letta agents
Engagement
Available On
Alternatives
Updated Jun 2026
About Letta
Letta is an open-source AI agent platform built by the creators of MemGPT at UC Berkeley's Sky Computing Lab. It provides both a CLI coding agent (Letta Code) and a full-featured API for building stateful agents that persist memory across sessions, learn from experience, and remain portable across model providers. The project is licensed under Apache 2.0 and actively maintained on GitHub.
What It Is
Letta sits in the category of stateful agent frameworks — tools that go beyond single-session LLM calls to give agents persistent, evolving memory. Where most LLM applications reset context on every request, Letta agents carry memory blocks that update over time, enabling them to remember users, accumulate skills, and improve from prior interactions. The platform exposes this capability through two main surfaces: the Letta Code CLI agent (installable via npm) and the Letta API with Python and TypeScript SDKs.
Architecture: Memory-First Design
The core architectural idea in Letta is that memory is a first-class citizen, not an afterthought. Key design elements include:
- Memory blocks: Structured context segments (e.g., "human" and "persona" blocks) that agents read and write during inference
- Dream agents: Background memory agents that transform prompts, context, and skills over time during idle periods — what the team calls "sleep-time compute"
- Context Repositories: Git-based versioning for agent memory, enabling programmatic context management and rollback
- Skill learning: Agents dynamically acquire and store reusable skills through experience
- Model portability: Agent memories, conversations, and experiences can be transferred across any model provider
Letta Code: The CLI Agent
Letta Code is the flagship end-user product — a memory-first coding harness that runs locally in the terminal. It installs via npm install -g @letta-ai/letta-code (requires Node.js 18+) and launches an agent that can access the local filesystem, execute tasks on the user's computer, and accumulate skills over time. Desktop app downloads are available for macOS (Apple Silicon and Intel), Windows, and Linux. The GitHub README notes that Letta Code supports skills and subagents, and bundles pre-built capabilities for advanced memory and continual learning.
Research Lineage and Team
Letta was founded by Charles Packer (PhD, UC Berkeley) and Sarah Wooders (PhD, UC Berkeley), the creators of MemGPT. The company describes itself as an AI lab building "machines that learn," with advisors including Ion Stoica and Joseph Gonzalez (both UC Berkeley professors and co-creators of Apache Spark and Ray). The About page lists backing from Jeff Dean (Chief Scientist at Google DeepMind), Clem Delangue (CEO of HuggingFace), and other AI infrastructure leaders.
Update: v0.16.8 and Active Development
The GitHub repository (letta-ai/letta) shows the latest release as v0.16.8, published May 14, 2026, with the repository last updated May 20, 2026. The project has accumulated over 22,800 stars and 2,400 forks. Recent blog posts from the Letta team cover Context Repositories (git-based memory), Skill Learning for CLI agents, sleep-time compute, and Context-Bench — a benchmark for evaluating LLMs on agentic context engineering tasks. This activity signals an actively evolving research-to-product pipeline.
Open-Source Deployment Model
The core Letta platform is open source under Apache License 2.0, meaning it can be self-hosted, modified, and redistributed freely. Developers can run agents entirely locally using the CLI, or connect to the hosted Letta API for cloud-based stateful agent infrastructure. The API offers Python and TypeScript SDKs with a straightforward agent creation and messaging interface. The project welcomes contributions and maintains a Discord community and developer forum.
Community Discussions
Be the first to start a conversation about Letta
Share your experience with Letta, ask questions, or help others learn from your insights.
Pricing
Free
Free tier for getting started with Letta agents
- Basic stateful agents
- Connect your own API keys
- Letta Code CLI access
Pro
For personal use with usage quota for open-weights models and Letta Auto
- Everything in Free
- Usage quota for open-weights models and Letta Auto
- Pay-as-you-go pricing for additional models or overage
- Up to 20 stateful agents
Max Lite
For professionals with higher limits across all frontier model providers
- Everything in Pro
- Usage quota across all frontier model providers
- 5X higher limits on Letta Auto
- Up to 50 stateful agents
Max
For power users with increased quota and early access to new features
- Everything in Max Lite
- Increased quota for frontier models
- 20X higher limits on Letta Auto
- Early access to new features
API Plan
For organizations and teams building applications on top of the Letta API with unlimited agents and usage-based pricing
- Unlimited agents
- $0.10 / active agent / mo
- $0.00015 / sec tool execution
- API key authentication
- Pay-as-you-go LLM usage
Capabilities
Key Features
- Persistent memory agents that learn over time
- Sleep-time compute (dream agents) for background memory processing
- Context Repositories with git-based memory versioning
- Skill learning for CLI agents
- Model-agnostic: portable memories across any LLM provider
- Letta Code CLI agent with local filesystem access
- Desktop app for macOS, Windows, and Linux
- Python and TypeScript SDKs
- Full-featured Letta API for stateful agent integration
- Subagents and multi-agent support
- Web search and fetch webpage built-in tools
- Memory palace visualization
- Remote agent control across machines
- Context-Bench leaderboard for agentic context engineering
Integrations
Demo Video

