librechat.yaml, and the stock Docker setup does not mount that file, so this page sets the key, writes the endpoint, and then adds the mount.
Overview
LibreChat is a free, open-source AI chat platform. A custom endpoint speaks the OpenAI chat completions format, which Eden AI serves athttps://api.edenai.run/v3. Every model you list appears in LibreChat’s model picker under the endpoint name, so one key reaches OpenAI, Anthropic, Google and the rest of the 1000+ models.
Prerequisites
- Docker and Docker Compose
- An Eden AI API key from app.edenai.run → API Keys
Setup
1. Clone LibreChat and set the key
YOUR_API_KEY with your Eden AI key.
The container loads .env, so librechat.yaml can refer to the key as ${EDEN_AI_API_KEY} and the key stays out of the YAML file.
2. Create librechat.yaml
3. Mount the file into the container
LibreChat’s owndocker-compose.yml binds .env and its data folders, but not librechat.yaml. Without a mount, LibreChat starts without reading the file and “Eden AI” never appears. Add the mount in a docker-compose.override.yml next to the stock file:
4. Start LibreChat
http://localhost:3080, create an account, and select Eden AI in the endpoint menu.
For a manual install, the other config options, and authentication, see the LibreChat documentation.
Model naming
Use a model name or~ alias from GET /v3/models, such as ~claude-sonnet-latest; a provider/model id pins one provider.
With fetch: false, LibreChat shows only the ids in models.default. Set fetch: true to have LibreChat read every chat model from https://api.edenai.run/v3/models, which returns hundreds of entries, so keep the explicit list unless you want the full catalog in the picker.
Troubleshooting
Eden AI does not appear in LibreChat
- Check that the override file is in place and that
docker compose configlists/app/librechat.yamlunder theapivolumes. - Run
docker compose logs apiand look for alibrechat.yamlvalidation error. Check that the file is valid YAML. - Restart after any change to
librechat.yamlor.env:
401 errors
- Check that
.envcontainsEDEN_AI_API_KEYwith no extra spaces and thatlibrechat.yamlrefers to it as${EDEN_AI_API_KEY}. - Check that
baseURLinlibrechat.yamlishttps://api.edenai.run/v3. - Test the key outside LibreChat:
- Restart services after changing
.env.
Next Steps
- List LLM Models - Browse available models
- Open WebUI - Alternative chat interface
- OpenAI SDK (Python) - Programmatic access
- Monitoring - Track usage and spending