Chat UIs, RAG & agentsApache-2.0Python

Letta

Stateful agents with self-editing memory (formerly MemGPT).

Stars
25.6K
Forks
2.7K
Open issues
1
Last commit
2026-10-18

Live from the GitHub API · updated 2026-11-30

What is Letta?

Letta is a framework and server for building stateful LLM agents that manage their own memory blocks, archival storage and tools. Agents persist in a database and are accessed through a REST API, SDKs or the Agent Development Environment UI.

Key features

  • Self-editing core and archival memory
  • Persistent agents behind a REST API
  • Python and TypeScript SDKs
  • Agent Development Environment for debugging
  • Model-agnostic

System requirements

Platforms
Docker · Windows · macOS · Linux
Notes
Docker recommended; Postgres is bundled in the image.

How to install Letta

Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.

Docker

  1. 1
    Run the Letta server (pass the API keys you need).
    docker run -v ~/.letta/.persist/pgdata:/var/lib/postgresql/data -p 8283:8283 -e OPENAI_API_KEY="your_key" letta/letta:latest

Python SDK

  1. 1
    Install the client.
    pip install letta-client

Strengths

  • Research-backed memory design
  • Agents persist across sessions

Limitations

  • More concepts to learn than simple chat wrappers

Letta alternatives compared

SoftwareStarsLicensePlatformsVRAM
Letta

Stateful agents with self-editing memory (formerly MemGPT).

25.6KApache-2.0—
Mem0

Long-term memory layer for AI agents and assistants.

69.6KApache-2.0—
LangGraph

Low-level orchestration for stateful, long-running agents as graphs.

45.6KMIT—
AutoGen

Microsoft’s framework for building multi-agent AI applications.

62KCC-BY-4.0—
CrewAI

Python framework for orchestrating role-playing, collaborative AI agents.

61.4KMIT—
Open WebUI

Self-hosted ChatGPT-style interface for Ollama and OpenAI-compatible APIs.

159.8KOpen WebUI License (BSD-3-Clause based)—

FAQ

Is Letta free?

Yes — Letta is open-source software released under the Apache-2.0 license. Check the license (and any model weight licenses) before commercial use.

Does Letta run on Windows, Mac and Linux?

Letta supports: Docker, Windows, macOS, Linux.

How do I install Letta?

1. Run the Letta server (pass the API keys you need).

What are the best Letta alternatives?

Popular alternatives include Mem0, LangGraph, AutoGen, CrewAI. See the comparison table on this page.