Agent framework for stateful agents with memory, reasoning, and context management
Top 2.6% on sourcepulse
Letta is an open-source framework for building stateful AI agents with advanced memory, reasoning, and context management. It provides a white-box, model-agnostic architecture, allowing developers to create and deploy agents that can maintain long-term memory and interact with various Large Language Models (LLMs).
How It Works
Letta agents are managed within a persistent Letta server, which stores agent data in a database (PostgreSQL recommended, defaults to SQLite for pip installs). The server exposes a REST API and SDKs for Python and TypeScript, enabling interaction with agents. A graphical Agent Development Environment (ADE) is provided for managing, testing, and observing agents. The framework supports multiple LLM backends (OpenAI, Anthropic, vLLM, Ollama) and offers tools for memory management, conversation search, and more.
Quick Start & Requirements
docker run -v ~/.letta/.persist/pgdata:/var/lib/postgresql/data -p 8283:8283 -e OPENAI_API_KEY="your_openai_api_key" letta/letta:latest
pip install -U letta
followed by export OPENAI_API_KEY=sk-...
and letta run
for CLI or letta server
for API.LETTA_PG_URI
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Database migrations are not officially supported for the SQLite backend used by default with pip
installs; PostgreSQL is recommended for robust data migration across versions. The project was formerly known as MemGPT.
1 day ago
1 day