NextChat setup via the Kiree gateway
Connect NextChat to kiree.net via BASE_URL and OPENAI_API_KEY: a ChatGPT-style web interface with catalog models, billed by tokens.
Why the direct setup does not cover every case
NextChat normally targets the OpenAI endpoint. Set BASE_URL to the gateway and pass the key; the web interface then serves catalog models through kiree.net.
Steps to your first request
Get a key
Create a sk-… key in the kiree.net console.
Set parameters
On start (docker or .env): BASE_URL=https://kiree.net/v1 and OPENAI_API_KEY=sk-….
Pick a model
In the chat settings enter a catalog model ID, e.g. gpt-4o-mini, and start the dialog.
OPENAI_API_KEY="sk-…"
MODEL="gpt-4o-mini"
For docker: docker run -e BASE_URL=https://kiree.net/v1 -e OPENAI_API_KEY=sk-… …
Check: open the web interface and ask a question: the reply comes through the gateway.
What to connect in NextChat
Any text model from the catalog works on one key. Below are popular options to start.
Common errors
Requests go to OpenAI
BASE_URL was not set on start: check the container environment variables.
401 Unauthorized
OPENAI_API_KEY is wrong: copy the key from the console again.
Frequently asked questions
How do I connect NextChat through the gateway?+
With BASE_URL=https://kiree.net/v1.
Do I need an OpenAI account?+
No: the kiree.net key replaces it; usage is billed by tokens from the balance.
Can it be self-hosted?+
Yes: NextChat self-hosted (docker) with the gateway parameters — your own web chat.
Create a key in a couple of minutes; pay only for actual usage, no subscription required.