Search docs...

Start typing to search documentation

LobeHub
LobeChat

LobeChat Integration Guide

Connect UnoRouter to LobeChat through a custom provider or Docker env vars.

Overview

LobeChat supports any OpenAI-compatible host through env vars or Add Custom Provider. Pair it with UnoRouter for a local web client.

Quick Config

Paste these into the client. Your key auto-fills when signed in.

text
Base URL: https://api.unorouter.com/v1
API Key: YOUR_API_KEY

Sign in to auto-fill your API key

Compatibility

Chat CompletionsStreamingTool calling

Step-by-step setup

  1. 1
    Open Settings, then Language Model

    Click Add Custom Provider and fill in the form.

    text
    Provider Name: UnoRouter
    Provider ID: unorouter
    Request Format (SDK Type): openai
    Proxy URL: https://api.unorouter.com/v1
    API Key: YOUR_API_KEY

    Sign in to auto-fill your API key

  2. 2
    Add models

    Save the provider, then add the UnoRouter models you want. They appear in the model picker.

  3. 3
    Optional: Docker env vars

    Self-hosting: set the OpenAI env vars at container runtime instead.

    bash
    docker run -e OPENAI_API_KEY=YOUR_API_KEY \
               -e OPENAI_PROXY_URL=https://api.unorouter.com/v1 \
               lobehub/lobe-chat

    Sign in to auto-fill your API key

Recommended models

Free models that work here. Paste any model id into the client.

glm-5.3-search:freeglm-5.3-think-search:freeglm-5.3-thinking:freeglm-5.3:freeqwen-3.8-27b:free

Gotchas

  • To keep first-party OpenAI alongside UnoRouter, use Add Custom Provider, not the OpenAI env vars.
  • Provider ID must be lowercase. unorouter works, UnoRouter does not.
Generate API KeyModels