talira

Build stateful agents with memory that can learn and improve over time

open coreApache-2.0self-hostablefreeMCP

Letta, formerly MemGPT, makes stateful agents: each agent keeps one identity and long-term memory across conversations, models and the computers it runs on. Its product is Letta Code, an Apache-2.0 agent harness and CLI in which agents keep memory blocks and a git-versioned memory filesystem (MemFS), learn skills, rewrite their own system prompts, run schedules and subagents, and reorganise their memory in the background ("dreaming"); the same agent can be reached from the terminal, chat.letta.com and Slack, Telegram, Discord, WhatsApp or Signal. Agents run fully locally with no account, on a self-hosted App Server that your application drives through the TypeScript Letta Agent SDK, or in Letta Cloud, which keeps agent state, runs cloud sandboxes and offers a REST API and a hosted MCP server. The team created MemGPT at UC Berkeley's Sky Computing Lab; the older Letta V1 API server in letta-ai/letta is retired to an archive branch.

Problems it solves

  • my AI agent forgets everything between sessions and I keep pasting the same project context back in
  • an assistant that keeps the same memory whether I talk to it from the terminal, a browser or Slack
  • let an agent edit its own long-term memory and system prompt as it learns how I work
  • version an agent's memory in git so I can see and roll back what it learned
  • run a stateful agent entirely on my own machine with Ollama and no vendor account
  • embed agents that remember each user into my TypeScript app instead of building memory storage myself
  • an always-on agent that runs scheduled tasks like a daily briefing and answers in Telegram or WhatsApp
  • agent that consolidates and reorganises its memories in the background between conversations
  • share one agent with my team with access control so everyone talks to the same memory
  • let Claude Code or Cursor create and delegate work to a persistent agent over MCP
  • switch the underlying model of an agent without losing what it remembers
  • move an agent between my laptop and a cloud VM and keep its memory and conversations

Features

  • memory blocks and MemFS, a git-versioned memory filesystem the agent reads, writes and reorganises
  • sync an agent's memory to your own GitHub repository
  • background reflection ("dreaming", formerly sleep-time compute) with /sleeptime, /dream and /reflect
  • skill learning, global, project and agent-scoped skills, and skills installed from GitHub
  • subagents and agents calling other agents
  • schedules and crons, including schedules agents set themselves
  • messaging channels: Slack, Telegram, Discord, WhatsApp, Signal and custom channels
  • hooks, permission modes and secrets kept out of the model's context
  • mods that change the harness itself: tools, commands, UI, model providers
  • BYOK for Anthropic, OpenAI, Gemini, Bedrock, Azure OpenAI and more; coding plans such as ChatGPT/Codex and GitHub Copilot; local Ollama, LM Studio and llama.cpp
View 4 more
  • Letta Agent SDK (TypeScript) on Letta Cloud or a self-hosted App Server
  • remote computers: one cloud-stored agent working across several machines
  • hosted MCP server at api.letta.com/mcp for other agents to create and message Letta agents
  • message search across all agents and conversations

Limitations

  • Doesn't import or export AgentFile (.af) agents any more: Letta Code removed /export, --import and --from-af1

Ways to run it

Letta Cloud

Hosted by Letta

Free (3 stateful agents, bring your own keys); Pro $20/month with $20 of credits; Teams Pro $20/seat/month; Enterprise custom2

Only in this edition

  • agent state kept across computers
  • chat.letta.com web app
  • cloud sandboxes
  • hosted MCP server
  • shared agents with access control (Teams Pro)
  • SAML/OIDC SSO and role-based access control (Enterprise)

Pricing

Letta Code (self-hosted)

You run it, Apache-2.0

free34

Only in this edition

  • no Letta account needed
  • agent state stays on your machine

Not included

  • access to self-hosted agents from chat.letta.com
  • automatic backups of agent state

You arrange

  • model provider API keys or a local model server (Ollama, LM Studio, llama.cpp)
  • Node.js 22.19+
  • an always-on machine for the App Server
  • backups of agent state

Self-hosting docs

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Has official SDKsplan not known
Has single sign-onEnterprise plan, priced by sales2

Alternatives

The same job

These do what Letta does.

  1. Hermes Agent The agent that grows with you
  2. Engram Persistent memory for AI coding agents
  3. OpenViking The context database for AI agents
  4. MemPalace Local-first AI memory. Verbatim storage, pluggable backend, 96.6% R@5 raw on LongMemEval, zero API calls.
  5. Supermemory Memory and context layer for AI: memory, RAG, user profiles and connectors in one API
  6. LangMem Helps agents learn and adapt from their interactions over time

Compare Letta with the top 3