LibreChat
LibreChat Integration Guide
Connect Routerah to LibreChat through a custom OpenAI-compatible endpoint.
Overview
LibreChat exposes any OpenAI-compatible host through endpoints.custom. Add a Routerah block and set the env var; the model picker fills from the catalog.
Quick Config
Paste these into the client. Your key auto-fills when signed in.
text
Base URL: https://api.routerah.app/v1
API Key: YOUR_API_KEYCompatibility
Chat CompletionsStreamingTool calling
Step-by-step setup
- 1Edit librechat.yaml
Add a custom endpoint block under endpoints.custom.
yamlendpoints: custom: - name: 'Routerah' apiKey: '${ROUTERAH_API_KEY}' baseURL: 'https://api.routerah.app/v1' models: fetch: true titleConvo: true modelDisplayLabel: 'Routerah' - 2Add the env var
Set your Routerah API key in the LibreChat .env file.
bashROUTERAH_API_KEY=YOUR_API_KEY - 3Restart LibreChat
Restart the container or process. The Routerah endpoint appears in the chat dropdown.
Recommended models
Free models that work here. Paste any model id into the client.
minimax-m3.1-flash:freexing4.0-29b-a4b:freesage-a1.5:freenemotron-3.5-bolt-e4b:freeling-3.1-flash:free
Gotchas
- Use single-brace syntax for env-var values, not the secrets syntax other configs use.
- If a model rejects extra OpenAI params, add them to dropParams (for example frequency_penalty and presence_penalty).
- fetch: true populates from the Routerah catalog. Combine with default to surface preferred models first.