Back to directory

AI & Machine Learning · AI Development Platforms

Letta

Stateful agents with editable memory and local or hosted runtimes.

Letta is an agent platform descended from UC Berkeley's MemGPT research, designed for stateful agents whose memory, tools, and conversations persist across turns. The core repository uses Apache-2.0, while Letta Cloud offers managed execution and storage. Developers can use local mode, a self-hosted App Server, or paid hosted plans.

Key facts

License
Apache-2.0
Main language
Python, TypeScript
Maintainer
Letta, Inc., with open-source community contributions
First released
2023
Latest release
v0.16.8, May 14, 2026
GitHub stars
25.2k, October 2026
Hosted option
Letta Cloud, free tier; Pro $20/month; API Plan $20/month plus usage; Teams Pro $20/seat/month; Enterprise custom

What Letta is

Letta began as MemGPT, a UC Berkeley research project created by Charles Packer and Sarah Wooders. The GitHub repository was created in October 2023, and the founders announced Letta in September 2024. Letta, Inc. maintains the project with community contributions. The repository describes a platform for stateful agents with memory that can learn and improve. GitHub listed 25.2k stars in October 2026. The company raised a $10 million seed round led by Felicis, with Sunflower Capital and Essence VC participating, and reported a $70 million post-money valuation. Current implementation work is in the separate letta-code repository. Letta's rename preserved MemGPT as the name for the research design pattern.

How it works

Letta centers on explicit, editable agent state instead of a stateless prompt wrapper. Developers create agents with persona and human memory blocks, attach built-in or custom tools, connect data sources, and send messages through SDKs or APIs. Agents can update memory during interaction, while the Agent Development Environment exposes prompts and memory for inspection and editing. Interfaces include the CLI, desktop app, browser application, TypeScript Agent SDK, OpenAI-compatible App Server API, Slack, Telegram, and Discord. A typical workflow creates an agent, selects a model provider, adds memory blocks and tools, runs conversations, then resumes or forks conversations while retaining state.

Architecture and recent releases

The historical server is Python, with package metadata requiring Python 3.11 through 3.13 and using SQLAlchemy, Pydantic, FastAPI-related components, and PostgreSQL-compatible storage. The current user-facing runtime uses the Node.js package @letta-ai/letta-code, which requires Node.js 22.19 or newer for the current CLI and App Server path. Local and remote backends keep state and execution on a developer machine or App Server host, while Cloud stores managed agent state. Docker Compose, Railway, Fly.io, and generic Dockerfile platforms are documented. Version 0.16.8, released May 14, 2026, changed sandbox-to-server tool-result transport from pickle to JSON. Version 0.16.7 raised the default context window from 32k to 128k and added conversation forking.

License and pricing

The repository uses Apache License 2.0, allowing commercial use, modification, redistribution, and sublicensing when its conditions are followed. Letta Cloud is a separate managed service with several pricing levels. The free plan costs $0 and includes limited agents, 5 MiB per memory repository, limited Letta Auto usage, and BYOK. Pro costs $20 per month and supports up to 20 stateful agents. The API Plan costs $20 per month, allows unlimited agents, and charges for active agents, server-side tool execution, and model usage. Teams Pro costs $20 per seat monthly. Enterprise uses custom pricing and includes RBAC, SAML/OIDC SSO, increased quotas, and dedicated support.

Limitations and how it compares

Letta suits teams that need inspectable state and local execution, but stateful agents require attention to memory, compaction, model-token use, credentials, and backups. LangGraph is a closer orchestration alternative, using graph-defined control flow and checkpointing to organize execution. Mem0 is a narrower memory layer that can work with another agent framework. OpenAI’s hosted agent tooling and Google Vertex AI Agent Engine reduce infrastructure work, whereas Letta preserves more control over runtime operation. Choose Letta when durable agent state and self-hosting are more important than maintaining a minimal architecture, and when the team can manage the additional operational responsibilities. That choice places agent operations under the adopting team.

Main features

  • Persistent memory. Agents maintain editable persona, user, archival, and conversation state across sessions for continued, configurable operation.
  • Tool execution. Built-in, custom, client-side, server-side, and MCP tools support agent actions, integrations, and controlled external operations.
  • Model flexibility. Letta supports multiple hosted and local providers, including BYOK configurations and OpenAI-compatible endpoints within configured application workflows.
  • Agent SDK. TypeScript SDKs expose agent creation, sessions, turns, streaming, approvals, and backend selection for application integration.
  • Conversation control. Current releases add default conversations, forking, streaming retry safety, and resumable sessions for continued workflows.
  • Development surfaces. CLI, desktop, web app, ADE, channels, and OpenAI-compatible App Server support development, access, and operations.
  • Memory inspection. ADE and APIs let developers inspect or edit prompts, memory blocks, and agent configuration during operation.

Self-hosting Letta

Letta documents local CLI or desktop execution, a local Agent SDK backend, and a remote App Server operated as a service. The current CLI requires Node.js 22.19 or newer. Docker Compose persists the persistent Letta data directory and the working-directory volume, exposes port 4500, and requires an App Server token plus a model-provider key. Fly.io uses a persistent volume, while Railway requires persistent storage. Remote deployments need HTTPS or WSS and authentication. The historical Python server used PostgreSQL with pgvector, but that server and its old images are retired. Self-hosted agents are not automatically backed up, so operators must manage backups. App Server has shell and filesystem access on its host, making network exposure and token handling important.

Strengths

  • Apache-2.0 licensing permits commercial redistribution without AGPL SaaS obligations.
  • Memory blocks and prompts are inspectable instead of hidden behind a managed black box.
  • Local and remote backends keep state and execution on infrastructure the operator controls.
  • Provider flexibility includes hosted APIs, local inference servers, and BYOK connections.

Drawbacks

  • The historical Python server and Docker images are retired, creating migration work for older deployments.
  • Self-hosted state is not automatically backed up and requires persistent storage administration.
  • Tool execution can expose shell and filesystem access, so careless deployment increases security risk.

What teams replace with it

Teams usually evaluate Letta when they want to move off OpenAI Assistants, Vertex AI Agent Engine, Amazon Bedrock Agents.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Letta

  • LangGraph
  • Mem0
  • AutoGen
  • CrewAI
  • Semantic Kernel

Frequently asked questions

Is Letta free?

The repository uses Apache-2.0 and can be self-hosted. Letta Cloud has a $0 plan with limited agents, limited Letta Auto usage, 5 MiB per memory repository, and BYOK. Pro costs $20 per month, while API usage and model costs can add charges. Local execution can avoid Letta Cloud fees but still incurs provider or hardware costs.

Can a company use Letta commercially?

The repository uses Apache License 2.0, which permits commercial use, modification, distribution, and sublicensing subject to license notices and conditions. Letta Cloud has separate terms and pricing. Teams using the software as a service should distinguish the licensed code from Letta's managed platform, support, quotas, and enterprise controls.

How do I self-host Letta and what does it require?

The current path uses Node.js 22.19 or newer, the Letta CLI, and either a local backend or a remote App Server. Docker Compose uses persistent the persistent Letta data directory and the working-directory volume volumes, port 4500, an App Server token, and a model-provider key. Remote deployments need HTTPS or WSS, authentication, persistent storage, and manual backups. The old Python server and images are retired.

How does Letta compare with LangGraph or Mem0?

Letta is a stateful-agent runtime centered on editable memory, conversations, tools, and deployment. LangGraph focuses on explicit graph orchestration and durable checkpoints for controlled branching. Mem0 focuses on memory as a service or library and can be combined with another runtime. Pick Letta for inspectable agent state, LangGraph for graph-first control, or Mem0 for a narrower memory layer.

Is Letta secure for private data?

Local and self-hosted modes can keep agent state, provider connections, and execution on controlled machines. The security policy supports only the latest release and says the retired Python server receives no fixes. Current documentation supports permission modes, approval prompts, deny rules, secret injection with output scrubbing, and memory guards. Operators still need HTTPS, authentication, least privilege, sandboxing, and backups because App Server can access its host filesystem and shell.

Similar projects to compare

Sources

Last updated 2026-10-22.