← Integrations · Chat clients

LobeChat setup via the Kiree gateway

Connect LobeChat to kiree.net: OPENAI_PROXY_URL=https://kiree.net/v1, OPENAI_API_KEY and OPENAI_MODEL_LIST — a self-hosted chat with Claude, GPT and Qwen on one key.

Why the gateway

Why the direct setup does not cover every case

LobeChat normally targets the OpenAI endpoint. Pass the gateway URL, key and model list as container variables; the self-hosted chat then serves Claude, GPT and Qwen through kiree.net on one key.

Setup

Steps to your first request

·

Get a key

Create a sk-… key in the kiree.net console.

·

Start with gateway parameters

docker run with OPENAI_API_KEY, OPENAI_PROXY_URL=https://kiree.net/v1 and OPENAI_MODEL_LIST of the models you need.

·

Chat in the interface

Open localhost:3210, pick a model from the list and ask a question.

OPENAI_PROXY_URL="https://kiree.net/v1"
OPENAI_API_KEY="sk-…"
OPENAI_MODEL_LIST="gpt-4o-mini, claude-sonnet-4-6"

In the cloud LobeChat version, the same fields are set in the OpenAI provider settings: gateway address and key. MODEL_LIST syntax: -all hides the rest, +ID adds exact catalog IDs.

Check: open the web interface and ask a question with any model from the list: the reply comes through the gateway.

Diagnostics

Common errors

!

Empty model list

OPENAI_MODEL_LIST syntax error: check -all,+ID without spaces and exact catalog IDs.

!

401 Unauthorized

OPENAI_API_KEY is wrong: copy the key from the console again.

!

Requests go to OpenAI

OPENAI_PROXY_URL lacks /v1 or is unset: the address must be https://kiree.net/v1.

FAQ

Frequently asked questions

How do I connect LobeChat through the gateway?+

With OPENAI_PROXY_URL=https://kiree.net/v1, requests go to the gateway directly.

How many models can be connected?+

All catalog text models on one key: Claude, GPT, Qwen, DeepSeek — via OPENAI_MODEL_LIST.

How is usage billed?+

Shared kiree.net balance; pay only for actual tokens.

Is the self-hosted version paid?+

No: the LobeChat container is free; you pay only for model tokens.

Get a key for LobeChat

Create a key in a couple of minutes; pay only for actual usage, no subscription required.