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
- Add your key to the
.envfile next tolibrechat.yaml:UNCENSOREDLLM_API_KEY=vk-... - Add the endpoint to
librechat.yaml, underendpointsandcustom. - With Docker, copy
docker-compose.override.yml.exampletodocker-compose.override.ymland uncomment the bind mount that maps./librechat.yamlto/app/librechat.yaml. Without Docker, keep the file in the project root next to.env. - Restart LibreChat. Changes to the file do not show until you do.
- 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 restartLibreChat exits with code 1 when the YAML is invalid. In Docker, readdocker compose logs api.The endpoint is missingThe file was not mounted into the container, or LibreChat was not restarted.401The key in.envis missing or wrong. See errors.