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 its Add Custom Provider UI. Pair it with UnoRouter for a slick local web client.

Quick Config

Drop these values into the client. Your key auto-fills when you are signed in.

text
Base URL: https://api.unorouter.ai/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.ai/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. LobeChat surfaces them in the model picker.

  3. 3
    Optional: Docker env vars

    If you self-host, 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.ai/v1 \
               lobehub/lobe-chat

    Sign in to auto-fill your API key

Recommended models

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

mistral-vibe-cli-latestmistral-large-latestopen-mistral-nemo-2407mistral-medium-2604mistral-vibe-cli-fast

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