Source: https://ailoot.ai/docs/en/integrations/librechat/
Canonical: https://ailoot.ai/docs/en/integrations/librechat/
Language: en

[Chat applications](https://ailoot.ai/docs/en/integrations/#chat) 

# LibreChat

[Markdown](https://ailoot.ai/docs/en/integrations/librechat/index.md)

Self-hosted web chat · OpenAI Chat, Anthropic Messages

| Format | Where to set it up |
| --- | --- |
| OpenAI Chat, Anthropic Messages | librechat.yaml file → endpoints.custom (key in .env via ${VAR}); for the Anthropic format, use provider: 'anthropic' |

## [](https://ailoot.ai/docs/en/integrations/librechat/#setup)Setup

Copy the configuration and replace `sk-...` with your key from the Ailoot Dashboard. Prefer storing the key in the environment variable `AILOOT_API_KEY`, if the application supports it.

Before starting, request GET /v1/models with your Ailoot key. Choose an exact model ID whose methods include POST /v1/chat/completions, POST /v1/messages, then use that ID in the configuration. For agents, also check tool support and the features required by your client version.

```yaml
endpoints:
  custom:
    - name: 'Ailoot'
      apiKey: '${AILOOT_API_KEY}'
      baseURL: 'https://api.ailoot.ai/v1'
      models:
        default: ['gpt-6.1-sol', 'claude-sonnet-5-5', 'deepseek-v4-pro']
        fetch: true
      titleConvo: true
      titleModel: 'gpt-6.1-sol'
      modelDisplayLabel: 'Ailoot'
    - name: 'Ailoot Claude'
      provider: 'anthropic'
      apiKey: '${AILOOT_API_KEY}'
      baseURL: 'https://api.ailoot.ai'
      models:
        default: ['claude-sonnet-5-5']
        fetch: false
# .env: AILOOT_API_KEY=sk-...
```

Example model: `gpt-6.1-sol`. Choose any other model from the [catalog](https://ailoot.ai/models/en/) — check that it supports the format you need.

## [](https://ailoot.ai/docs/en/integrations/librechat/#notes)Good to know

A standard custom endpoint uses OpenAI Chat Completions (baseURL with /v1). provider: 'anthropic' enables the native /v1/messages client. The documentation's Anthropic example specifies baseURL without /v1 (https://api.anthropic.com), so use https://api.ailoot.ai for Ailoot. fetch: true retrieves the list from /v1/models.

## [](https://ailoot.ai/docs/en/integrations/librechat/#check)Test

- For the OpenAI format, the URL is `https://api.ailoot.ai/v1` (or the full path if the application asks for a full URL).
- For the Anthropic format, the URL is `https://api.ailoot.ai` without `/v1`.
- Ask a short question. If you get an error, check the code and Request ID, then consult [Errors and limits](https://ailoot.ai/docs/en/errors/).
- 404 immediately after setup almost always means the URL is wrong: an extra or missing `/v1`.
- 402 — insufficient balance for the reserve. Agents reserve more than chat: [why](https://ailoot.ai/docs/en/billing/reserve/).

Application documentation: [https://www.librechat.ai/docs/configuration/librechat\_yaml/object\_structure/custom\_endpoint](https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/custom_endpoint)

Still have questions? Send your Request ID and a description — we'll help you troubleshoot.[Contact support](mailto:support@ailoot.ai)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
