Docs
⚙️ Configuration
librechat.yaml
Custom AI Endpoints
Intro

Custom AI Endpoints

Intro

  • This section lists known, compatible AI Endpoints, also known as “Custom Endpoints,” with example setups for the librechat.yaml file, also known as the Custom Config file.

  • In all of the examples, arbitrary environment variable names are defined but you can use any name you wish, as well as changing the value to user_provided to allow users to submit their own API key from the web UI.

⚠️
Important: 'user_provided' Key Setting

When setting API keys to “user_provided”, this allows users to enter their own API keys through the web interface. This is different from the pre-configured endpoints in the .env file where you would set ENDPOINT_KEY=user_provided (e.g., OPENAI_API_KEY=user_provided).

For custom endpoints in librechat.yaml, you would use:

endpoints:
  custom:
    - name: "Your Endpoint"
      apiKey: "user_provided"  # No need for ${} syntax here

For environment variables in the .env file, you would use:

OPENAI_API_KEY=user_provided
  • Some of the endpoints are marked as Known, which means they might have special handling and/or an icon already provided in the app for you.

Notes