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

# LibreChat

> 設定 LibreChat 以使用 TokenLab 作為自訂 OpenAI 相容端點

## 概覽

LibreChat 可透過自訂的 OpenAI 相容端點與 TokenLab 良好運作。

<Note>
  **類型**: 聊天應用程式 (Chat App)

  **主要路徑**: OpenAI 相容聊天補全 (Chat completions)

  **支援信心**: 支援的路徑
</Note>

## 環境變數

```bash theme={null}
TOKENLAB_API_KEY=sk-your-tokenlab-key
```

## 端點範例

將 TokenLab 加入您的 LibreChat 端點設定：

```yaml theme={null}
customEndpoints:
  - name: 'TokenLab'
    apiKey: '${TOKENLAB_API_KEY}'
    baseURL: 'https://api.tokenlab.sh/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: 'TokenLab'
```

## 注意事項

LibreChat 在此設定中使用 OpenAI 相容的聊天路徑。TokenLab 同時也為支援這些請求格式的客戶端提供了原生的 Responses、Anthropic Messages 以及 Gemini 相容端點。
