← Integrations · Chat clients

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 gateway

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.

Setup

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.

BASE_URL="https://kiree.net/v1"
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.

Diagnostics

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.

FAQ

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.

Get a key for NextChat

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