OpenClaw setup via the Kiree gateway
Connect OpenClaw to kiree.net: models.providers in openclaw.json with the gateway baseUrl and api openai-completions, catalog models; check with a headless agent exec.
Why the direct setup does not cover every case
OpenClaw normally routes to a built-in vendor provider. The openclaw.json models.providers block defines a kiree provider pointing at the gateway baseUrl; the agent runs headless with catalog models.
Steps to your first request
Get a key
Create a sk-… key in the kiree.net console.
Describe the provider
In openclaw.json: models.providers.kiree with baseUrl https://kiree.net/v1, apiKey, api openai-completions and a models list with exact IDs.
Set the model and check
agents.defaults.model.primary = kiree/gpt-4o-mini; check without Gateway: openclaw agent exec "reply ok".
baseUrl: "https://kiree.net/v1",
apiKey: "sk-…",
api: "openai-completions"
}
agent exec is a headless turn without Gateway (convenient for checks and CI); the regular chat and channels run through the openclaw gateway with the same config.
Check: openclaw agent exec "Reply with exactly one word: ok" --model kiree/gpt-4o-mini: the log shows POST https://kiree.net/v1/chat/completions.
What to connect in OpenClaw
Any text model from the catalog works on one key. Below are popular options to start.
Common errors
Model not found in the picker
The ID must be listed in the provider models[] and match the kiree catalog; primary is set as provider/model.
401 Unauthorized
apiKey is wrong or missing in the provider block.
Requests go to the vendor cloud
primary points at a built-in provider: switch to kiree/<model ID>.
Frequently asked questions
How do I connect OpenClaw through the gateway?+
The provider with baseUrl kiree.net goes to the gateway directly, including replies in Telegram channels.
Do I need Anthropic/OpenAI accounts?+
No: a kiree.net key and usage billed by tokens from the balance.
How do I check without starting the Gateway?+
openclaw agent exec runs one embedded turn with your config; it suits CI and quick key checks.
Which models should I connect?+
Any catalog text model: gpt-4o-mini, claude-sonnet-4-6, gpt-6-astra; IDs are listed in models[].
Create a key in a couple of minutes; pay only for actual usage, no subscription required.