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.
Enabling OpenRouter with Docker
Section titled “Enabling OpenRouter with Docker”To enable OpenRouter models when running the Letta server with Docker, set your OPENROUTER_API_KEY as an environment variable:
# replace `~/.letta/.persist/pgdata` with wherever you want to store your agent datadocker run \ -v ~/.letta/.persist/pgdata:/var/lib/postgresql/data \ -p 8283:8283 \ -e OPENROUTER_API_KEY="<your-openrouter-key>" \ letta/letta:latestSee the self-hosting guide for more information on running Letta with Docker.