Skip to content
Letta Platform Letta Platform Letta Docs
Sign up
Docker server
Model providers
More providers

OpenRouter

Use OpenRouter's unified API to access multiple LLM providers with Letta agents.

You can use Letta with OpenRouter if you have an OpenRouter account and API key.

To enable OpenRouter models when running the Letta server with Docker, set your OPENROUTER_API_KEY as an environment variable:

Terminal window
# replace `~/.letta/.persist/pgdata` with wherever you want to store your agent data
docker run \
-v ~/.letta/.persist/pgdata:/var/lib/postgresql/data \
-p 8283:8283 \
-e OPENROUTER_API_KEY="<your-openrouter-key>" \
letta/letta:latest

See the self-hosting guide for more information on running Letta with Docker.