Search docs...

Start typing to search documentation

LobeHub
LobeChat

LobeChat Integration Guide

Connect Routerah 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 Routerah for a local web client.

Quick Config

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

text
Base URL: https://api.routerah.app/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: Routerah
    Provider ID: routerah
    Request Format (SDK Type): openai
    Proxy URL: https://api.routerah.app/v1
    API Key: YOUR_API_KEY

    Sign in to auto-fill your API key

  2. 2
    Add models

    Save the provider, then add the Routerah 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.routerah.app/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.

minimax-m3.1-flash:freexing4.0-29b-a4b:freesage-a1.5:freenemotron-3.5-bolt-e4b:freeling-3.1-flash:free

Gotchas

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