Run This Ai
EN DE

How to Self-Host Letta with Docker: Step-by-Step Setup

Get a persistent AI agent with self-editing memory running in about 10 minutes. Docker install, LLM configuration, and creating your first memory-aware agent.

Want your own persistent AI agent with memory β€” without sending data to a third-party cloud? Self-hosting Letta with Docker takes about ten minutes, and the official letta/letta:latest image makes it painless. Here's the complete walkthrough.

πŸš€ Want to deploy Letta yourself?

Ready-made Docker configs and hardware requirements on the tool page.

View Letta Tool Page β†’

Step 1: Pull and run the container

Create a directory for persistent data, then start Letta with a single command:

mkdir -p ~/letta-data && cd ~/letta-data
docker run -d --name letta \
  -p 8080:8080 \
  -v $(pwd)/data:/data \
  letta/letta:latest

The web UI is now available at http://localhost:8080. The /data volume keeps your agents' memory safe across container restarts and upgrades.

Letta ADE chat interface

Step 2: Connect your LLM

In the settings panel, add an API key for OpenAI, Anthropic, or any OpenAI-compatible endpoint. Running a local model? Point Letta at Ollama and you get a fully offline agent stack β€” memory included.

Step 3: Create your first agent

Use the ADE's agent builder to give your agent a name and a persona. As you chat, watch the memory inspector update in real time β€” the agent is writing its own memory blocks. Ask it to remember facts, and verify them in a new session. That persistence is the whole point.

Hardware expectations

TierCPURAM
Minimum2 cores4 GB
Recommended4 cores8 GB

That's it β€” a stateful agent with self-editing memory, fully under your control. For compose templates, port notes, and upgrade tips, check the tool page below.

πŸš€ Deploy Letta in minutes

Docker configurations, requirements, and guides β€” all on one page.

View Letta Tool Page β†’
#letta #docker #self-hosting #tutorial