mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-14 14:43:16 -06:00
38aa704a31
The Kilocode gateway publishes an OpenRouter-shaped catalog in which `context_length` is the catalog-wide ceiling while `top_provider.context_length` describes the primary provider that actually serves the request. Discovery read only the catalog-wide value, so models whose primary provider offers a smaller window were registered with a context window larger than requests can use. Prefer the primary-provider window and fall back to the catalog-wide value, matching the precedence already owned by `extensions/openrouter/provider-catalog.ts`. Completion-token handling is left alone on purpose: the live Kilocode catalog exposes no top-level `max_completion_tokens` or `max_output_tokens`, so the existing `top_provider` read is already the only available source.
OpenClaw Kilo Gateway Provider
Official OpenClaw provider plugin for Kilo Gateway.
Install from OpenClaw:
openclaw plugins install @openclaw/kilocode-provider
openclaw gateway restart
See https://docs.openclaw.ai/providers/kilocode for setup and configuration.