← Back to all projects

Letta
Agents with a managed memory hierarchy, from the MemGPT research
OfficialApache-2.0
What is Letta?
Treats the context window like RAM and everything else like disk, with the agent itself deciding what to page in and out. That framing makes indefinitely long-running agents tractable. It is a more opinionated commitment than bolting a memory library onto an existing stack.
What can you do with Letta?
- Run an agent with memory locally —
npm install -g @letta-ai/letta-codethenlettalaunches an agent with memory on your own computer (Node.js 22.19+) that can code and do other tasks there; agents can also be run via the desktop app or channels like Slack. - Embed stateful agents in your app — The TypeScript Agent SDK creates one with
createAgent, passing a model string such asanthropic/claude-opus-4-8plushumanandpersona, then streams the reply throughresumeSessionandsession.stream(). - Switch backends with one field — The same SDK code runs against Constellation, Letta's agent cloud, against a self-hosted App Server, or with
backendset tolocal, which spawns Letta Code on your machine as a subprocess. - Keep an existing V1 integration running — The previous-generation V1 SDKs —
@letta-ai/letta-clientfor TypeScript andletta-clientfor Python — still target the Letta API directly; the README points new projects at the Agent SDK instead. - Start from letta-code, not this repo — This repository is the legacy server behind the Letta V1 API; active development moved to letta-ai/letta-code, and self-hosting an API server is now done through the App Server.
Star history
15 Aug to 30 Oct · +1k
24.3k25.3k
Frequently asked questions
Is Letta free for commercial use?
Letta is released under the Apache-2.0 licence — OSI-approved open source, which permits commercial use.
How can Letta be deployed?
Letta is available as Self-hosted / Managed cloud.