LibreChat
Self-hosted multi-model chat UI.
LibreChat exposes any OpenAI-compatible host through `endpoints.custom`. Add a FreeTheAi block, set the env var, and the model picker auto-fills from /v1/models.
Chat completions Streaming Tool calling
Connect LibreChat to FreeTheAi.
3 steps
- 1
Edit librechat.yaml
In your LibreChat install, add a custom endpoint block under `endpoints.custom`.
yaml endpoints: custom: - name: 'FreeTheAi' apiKey: '${FREETHEAI_API_KEY}' baseURL: 'https://api.freetheai.xyz/v1' models: default: ['glm/glm-5.1', 'bbl/gpt-5.5-mini'] fetch: true titleConvo: true titleModel: 'opc/deepseek-v4-flash-free' modelDisplayLabel: 'FreeTheAi' - 2
Add the env var
Set FREETHEAI_API_KEY in your LibreChat .env file.
bash FREETHEAI_API_KEY=fta_PASTE_YOUR_FREETHEAI_KEY - 3
Restart LibreChat
Restart the container or process. The FreeTheAi endpoint will appear in the chat dropdown.
Models that pair well with LibreChat.
glm/glm-5.1bbl/gpt-5.5-miniopc/deepseek-v4-flash-free
See the full live catalog at /models. Aliases are stable; pricing on the free tier stays $0.
Common gotchas.
- Use `${FREETHEAI_API_KEY}` (single brace) for env-var values, not the secrets syntax used in some other configs.
- If a model rejects extra OpenAI params, add them to `dropParams` (e.g. `dropParams: ['frequency_penalty','presence_penalty']`).
- `fetch: true` auto-populates from FreeTheAi's catalog. Combine with `default` to surface preferred aliases first.