Skip to content
On this page

Integrations

LibreChat

Add RelayRouter as a custom endpoint in librechat.yaml.

LibreChat supports custom [OI]-compatible endpoints. Define one endpoint and list the models you want to expose.

Config

version: 1.2.8
cache: true
endpoints:
custom:
- name: "RelayRouter"
apiKey: "${RELAY_API_KEY}"
baseURL: "https://api.relayrouter.org/v1"
models:
default:
- deepseek-v4.1-flash
- gpt-6-sol
- claude-sonnet-4-6
fetch: true
titleConvo: true
modelDisplayLabel: "RelayRouter"

Set RELAY_API_KEY in the same environment as LibreChat and restart the container or process.

Restart required

LibreChat reads librechat.yaml at startup. After editing it, restart the service and check the logs for config validation errors.

With fetch: true, LibreChat asks /v1/models for the list. You can also list model ids explicitly if you want a smaller picker.