Chat apps

LibreChat

Add Abliterator to LibreChat as a custom endpoint in librechat.yaml, with both abliterated models, Flash for conversation titles, and fixes for common errors.

Reviewed LibreChatChat appsSelf-hosted

Quick answer

Add a custom endpoint to librechat.yaml with baseURL https://abliterator.ai/v1, apiKey ${ABL_API_KEY} and both model IDs, put ABL_API_KEY in LibreChat's .env, and restart. Abliterator then appears in the endpoint selector.

Add a custom endpoint

LibreChat adds OpenAI-compatible providers as custom endpoints in librechat.yaml. The fields below are from LibreChat's custom endpoint reference.

version: 1.3.19
cache: true
endpoints:
  custom:
    - name: "abliterator"
      apiKey: "${ABL_API_KEY}"
      baseURL: "https://abliterator.ai/v1"
      models:
        default: ["kimi-k3.1-pro-abliterated", "deepseek-v4.1-flash-abliterated"]
        fetch: true
      titleConvo: true
      titleModel: "deepseek-v4.1-flash-abliterated"
      modelDisplayLabel: "abliterator"

Set version to the config version your LibreChat release documents; 1.3.19 is the version in LibreChat's own example.

Field Purpose
name Label in the endpoint selector
apiKey ${ABL_API_KEY} reads the key from LibreChat's .env
baseURL Abliterator's base URL, with /v1
models.default Models offered even if fetching fails
models.fetch Loads the model list from https://abliterator.ai/v1/models
titleConvo, titleModel Generates conversation titles with the cheaper model
modelDisplayLabel Name shown on assistant messages

Kimi's sampling is fixed (temperature 0.6, top_p 0.95); Abliterator ignores temperature, top_p and penalty settings for it, so LibreChat's conversation parameters are safe to leave as they are. They take effect on deepseek-v4.1-flash-abliterated.

Then add the key to LibreChat's .env file, in the project root:

ABL_API_KEY=sk-abl-v1-...

Mount the config and restart

For Docker installs, LibreChat's configuration guide uses docker-compose.override.yml to mount the file:

services:
  api:
    volumes:
      - type: bind
        source: ./librechat.yaml
        target: /app/librechat.yaml

Restart:

docker compose down && docker compose up -d

For a local install, place librechat.yaml in the project root next to .env and restart the backend with npm run backend.

Verify

Open LibreChat, choose Abliterator in the endpoint selector and deepseek-v4.1-flash-abliterated as the model, and send a message. A title should appear in the sidebar after the first reply. Confirm both requests reached Abliterator:

curl -s https://abliterator.ai/api/v1/activity -H "Authorization: Bearer $ABL_API_KEY" | head -c 800

Troubleshooting

Symptom Cause Fix
Abliterator does not appear in the selector LibreChat did not load the file Check the volume mount, then look at the API container logs for YAML errors
401 from Abliterator ABL_API_KEY is missing from .env, or the container was not restarted after adding it Add it and restart
404 Not found. baseURL missing /v1 or ending in /chat/completions Set baseURL: "https://abliterator.ai/v1"
No titles generated titleModel is not one of the endpoint's models Set titleModel: "deepseek-v4.1-flash-abliterated"
429 Too many requests in flight Users plus title generation exceed your plan's concurrency Upgrade for more concurrency

Every user of the instance spends from the same Abliterator account. Use a key with a spend limit; see authentication.