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

# LibreChat

> Connect LibreChat to the LLM Gateway

You need an [LLM Gateway key](https://docs.getunbound.ai/llm-gateway/keys.md#create-a-key).

## Setup

1. Add the gateway under `endpoints.custom` in `librechat.yaml`:

   ```yaml librechat.yaml theme={null}
   endpoints:
     custom:
       - name: Unbound
         apiKey: "${UNBOUND_API_KEY}"
         baseURL: https://api.getunbound.ai/v1
         models:
           default: ["claude-sonnet-4-6"]
           fetch: true
   ```

2. Add the key to LibreChat's `.env`:

   ```bash .env theme={null}
   UNBOUND_API_KEY=<your-key>
   ```

3. Restart LibreChat.

With `fetch: true`, LibreChat lists the models and aliases your key can call.

## Check it works

Pick **Unbound** in the endpoint menu and send a message. In **LLM Gateway → Keys**, the key's **Last Used** updates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.