Skip to content
Docs/Integrations/LibreChat

LibreChat

A self-hosted multi-provider chat app. Custom endpoints are declared in librechat.yaml, with the key kept in .env.

Settings

name
UncensoredLLM
apiKey
${UNCENSOREDLLM_API_KEY} (set in .env)
baseURL
https://uncensoredllm.xyz/v1
models.default
[uncensoredllm-1]
models.fetch
true

Steps

  1. Add your key to the .env file next to librechat.yaml: UNCENSOREDLLM_API_KEY=vk-...
  2. Add the endpoint to librechat.yaml, under endpoints and custom.
  3. With Docker, copy docker-compose.override.yml.example to docker-compose.override.yml and uncomment the bind mount that maps ./librechat.yaml to /app/librechat.yaml. Without Docker, keep the file in the project root next to .env.
  4. Restart LibreChat. Changes to the file do not show until you do.
  5. Pick UncensoredLLM in the endpoint selector.
YAML
endpoints:  custom:    - name: "UncensoredLLM"      apiKey: "${UNCENSOREDLLM_API_KEY}"      baseURL: "https://uncensoredllm.xyz/v1"      models:        default: ["uncensoredllm-1"]        fetch: true      titleConvo: true      titleModel: "uncensoredllm-1"

The name must not reuse one of LibreChat's built-in endpoint names. LibreChat also has a tokenConfig key for a per-model context window and prices; the window here is 262,144 tokens and the prices are on the models page. Its reference has the exact shape.

Check that it works

After the restart, the endpoint selector shows the name you gave it and the model list shows the model id. Send a message to confirm.

When something does not work

  • The server exits after a restart LibreChat exits with code 1 when the YAML is invalid. In Docker, read docker compose logs api.
  • The endpoint is missing The file was not mounted into the container, or LibreChat was not restarted.
  • 401 The key in .env is missing or wrong. See errors.