> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aisonar.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# LibreChat

> Configure LibreChat to use AI Sonar as a custom OpenAI-compatible endpoint

## Overview

LibreChat works well with AI Sonar through a custom OpenAI-compatible endpoint.

<Note>
  **Type**: Chat App

  **Primary Path**: OpenAI-compatible chat completions

  **Support Confidence**: Supported path
</Note>

## Environment

```bash theme={null}
API_KEY=sk-your-api-key
```

## Example Endpoint

Add AI Sonar to your LibreChat endpoint configuration:

```yaml theme={null}
customEndpoints:
  - name: 'AI Sonar'
    apiKey: '${API_KEY}'
    baseURL: 'https://api.aisonar.dev/v1'
    models:
      default:
        - 'gpt-5.5'
        - 'gpt-5.4'
        - 'gpt-5.4-mini'
        - 'claude-opus-4-8'
        - 'claude-sonnet-5'
        - 'gemini-3.5-flash'
        - 'deepseek-v4-pro'
        - 'deepseek-v4-flash'
      fetch: true
    titleConvo: true
    titleModel: 'gpt-5.4-mini'
    modelDisplayLabel: 'AI Sonar'
```

## Notes

LibreChat uses the OpenAI-compatible chat path for this setup. AI Sonar also exposes native Responses, Anthropic Messages, and Gemini-compatible endpoints for clients that support those request shapes.
