Letta is an open-source platform for stateful AI agents — agents that keep memory, identity and a working sense of experience across sessions instead of starting from a blank context every time. It is built by the team behind MemGPT, the research project that modelled an agent’s context window as an operating system paging memory in and out, and it now ships as Letta Code: a stateful agent harness that runs in a terminal, in the browser and inside chat platforms, backed either by Letta Cloud or by a fully local server.
/sleeptime schedule lets an agent consolidate memory in the background between conversations, and /dream and /reflect run the same process on demand./skill-creator command for writing new ones.Most agent tooling treats a run as a transaction: the context is assembled, the model answers, the context is thrown away. Letta makes memory the durable artefact instead — versioned, inspectable and editable — which is what makes an agent useful over weeks rather than minutes. It is also honest about being a harness: you work from a terminal and configure model providers yourself, rather than composing agents in a drag-and-drop builder. If you want persistent memory without a hosted account, the local backend plus a self-configured model key does the job.
For stateless coding agents the directory already covers Aider and Cline; for sandboxed software-engineering runs see OpenHands and SWE-agent, and for a model-agnostic IDE assistant see Continue. Letta’s difference is continuity: the agent keeps a memory of the work.
Install with npm (npm install -g @letta-ai/letta-code) or, with Node bundled, with uv (uv tool install letta) or pipx. Python 3.9+ is required; wheels cover glibc Linux 2.28+ on x86-64 and ARM64, macOS 14+ on Intel and Apple Silicon, and Windows x64. Run letta in a project directory, choose Cloud or local on first launch (letta backend local makes it permanent), then add a model provider with /connect and pick a model with /model. Arch users have an AUR package and Nix users a flake. The older Python REST server from the MemGPT era is retired — it stays on the archive branch of the original repository, while active development happens in letta-ai/letta-code.