What is Letta?
MemGPT introduced the idea that stuck: agents managing their own memory - editing what they know, paging context in and out. Letta is that research grown into an agent server: agents are server-side entities with persistent, self-editing memory, and your apps converse with them over a REST API.
This template runs the pinned server image on a pgvector Postgres (required), behind an SSE-friendly proxy with password auth. The hosted ADE (Letta’s agent development environment) connects to your server over HTTPS for visual agent building.
The experimental badge is earned honestly: upstream states the Docker image is no longer their primary supported surface (their push is Letta Cloud). It works today, the image is pinned, and the page says exactly this - because finding out from a changelog is worse.
What you get
- Server-side agents with self-editing persistent memory
- REST API: create agents, converse, inspect memory
- Hosted ADE connects to your server for visual building
- pgvector Postgres handled in-template
- Password-protected, SSE-streaming proxy
- Apache-2.0, pinned image (0.16.8)
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
letta | agent server API (:8283, no port env) | no |
web | nginx :5000 -> letta (SSE-friendly) | yes (password) |
db | Postgres + pgvector (required) | no |
Before you deploy
LETTA_SERVER_PASSWORDAPI bearer password
OPENAI_API_KEY / ANTHROPIC_API_KEYat least one provider (billed to you)
Sizing and billing
The server orchestrates; models run at your providers. Pin discipline matters here - read upstream notes before bumping the image.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 9.77 GiB of volumes cost $0.15 per GiB a month ($1.47/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Letta Cloud | paid | $20/mo | from $20/mo + $0.10 per active agent + usage (free tier: 5k credits) |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Letta or Cognee for memory?
Different layers: Letta IS the agent - server-side entities whose memory management is the product. Cognee is memory infrastructure your existing agents query. If you are building on the MemGPT model, Letta; if you are adding memory to agents you already have, Cognee.
Why experimental?
Upstream openly deprioritizes the self-host Docker surface in favor of Letta Cloud - the image still ships versioned releases, but support energy lives elsewhere. We pin 0.16.8, document it, and let you decide with eyes open.
How do I build agents visually?
Connect the hosted ADE (app.letta.com) to your server: HTTPS domain + your server password. Remote servers must be HTTPS, which the platform ingress provides. One upstream quirk: set the embedding model explicitly when creating agents on Docker deployments.