Kilo Code · Gatelum
Kilo Code adds Gatelum as a custom OpenAI-compatible provider: the address, the key and the model are set on the provider screen, and the CLI reads the same values from kilo.jsonc.
Example setup
- Base URL
https://api.gatelum.com/v1- Your API key
glt_YOUR_KEY
Connection steps
Open Settings → Providers → Custom provider and choose Provider API — OpenAI Compatible.
Set Base URL to the gateway address with
/v1and paste your Gatelum key into the API key field.Click Fetch models — it reads
/v1/models— and pick the catalog model, or type its ID by hand.For the CLI put the same address, key and model into kilo.jsonc: provider gatelum, package @ai-sdk/openai-compatible.
Provider ID: gatelum
Display name: Gatelum
Provider API: OpenAI Compatible
Base URL: https://api.gatelum.com/v1
API key: glt_YOUR_KEY
Models: z-ai/glm-5.3-flashConnection check
Send one short request: it checks the key, the address and the chosen model.
curl https://api.gatelum.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer glt_YOUR_KEY" \
-d '{"model":"z-ai/glm-5.3-flash","messages":[{"role":"user","content":"ping"}]}'A normal answer means the setup is correct. 401 points to the key, 404 to the address or model, 400 to the request format.
/v1: Fetch models reads /v1/models from it and fills the model list from the catalog.
The CLI takes the same values from kilo.jsonc, so keep the file and the settings screen in sync if you use both.functions. JSON output (response_format) is accepted on OpenAI-compatible routes, while a model reachable only through a direct Anthropic or Google connection answers unsupported_capability. The retired functions format behaves differently: it returns parameter_not_supported, so no parameter disappears without an explanation. Only models the catalog tags "Understands images" may accept pictures — they travel as an image_url part holding a data:image/png;base64,… address (PNG, JPEG and WebP are allowed, a file may weigh up to 5 MB, and a request carries at most 50). Remote addresses are never downloaded, while a model lacking the tag answers bad_request. Each error, bad_request as well as parameter_not_supported, states the reason plainly.