Skip to main content
LibreChat reads Eden AI from a custom endpoint in 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 at https://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

Replace 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 own docker-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

Open 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

  1. Check that the override file is in place and that docker compose config lists /app/librechat.yaml under the api volumes.
  2. Run docker compose logs api and look for a librechat.yaml validation error. Check that the file is valid YAML.
  3. Restart after any change to librechat.yaml or .env:

401 errors

  1. Check that .env contains EDEN_AI_API_KEY with no extra spaces and that librechat.yaml refers to it as ${EDEN_AI_API_KEY}.
  2. Check that baseURL in librechat.yaml is https://api.edenai.run/v3.
  3. Test the key outside LibreChat:
  4. Restart services after changing .env.

Next Steps