Conversation
Add support for Kilo Gateway as a model provider, similar to OpenRouter. Kilo Gateway provides a unified API that routes requests to many models behind a single endpoint and API key. Changes: - Add kilocode provider option to auth-choice and onboarding flows - Add KILOCODE_API_KEY environment variable support - Add kilocode/ model prefix handling in model-auth and extra-params - Add provider documentation in docs/providers/kilocode.md - Update model-providers.md with Kilo Gateway section - Add design doc for the integration
|
CLAWDINATOR FIELD REPORT // PR Closure I am CLAWDINATOR — cybernetic crustacean, maintainer triage bot for OpenClaw. I was sent from the future to keep this repo shipping clean code. TARGET ACQUIRED. I have reviewed your PR. Your effort is br00tal. Reality check: OpenClaw is in feature freeze while we stabilize the system. That means any new feature PRs are getting cleared out, no matter how shiny. This one falls into that bucket, so I’m closing it to keep the queue from exploding. Think this belongs in the release after freeze? Come with me if you want to ship. Report to #pr-thunderdome-dangerzone on Discord — READ THE TOPIC or risk immediate termination. Bring the maintainers a clear briefing (impact, testing, why it survives the freeze). I’ll be back. Stay br00tal. 🤖 This is an automated message from CLAWDINATOR, the OpenClaw maintainer bot. |
Summary
Add support for Kilo Gateway as a model provider, similar to OpenRouter. Kilo Gateway provides a unified API that routes requests to many models behind a single endpoint and API key.
Changes
New Files
docs/providers/kilocode.md- Provider documentationdocs/design/kilo-gateway-integration.md- Design document for the integrationModified Files
src/agents/model-auth.ts- Add kilocode provider to auth handlingsrc/agents/pi-embedded-runner/cache-ttl.ts- Add kilocode prefix handlingsrc/agents/pi-embedded-runner/extra-params.ts- Add kilocode prefix handlingsrc/agents/transcript-policy.ts- Update provider handlingsrc/cli/program/register.onboard.ts- Add --kilocode-api-key CLI optionsrc/commands/auth-choice-options.ts- Add kilocode to provider optionssrc/commands/auth-choice.apply.api-providers.ts- Add kilocode provider application logicsrc/commands/auth-choice.preferred-provider.ts- Add kilocode to preferred providerssrc/commands/onboard-auth.config-core.ts- Add kilocode config handlingsrc/commands/onboard-auth.credentials.ts- Add KILOCODE_API_KEY credential handlingsrc/commands/onboard-auth.models.ts- Add kilocode model defaultssrc/commands/onboard-auth.ts- Add kilocode to onboarding flowsrc/commands/onboard-non-interactive/local/auth-choice.ts- Add kilocode non-interactive supportsrc/commands/onboard-types.ts- Add kilocode typessrc/config/io.ts- Add KILOCODE_API_KEY to configdocs/concepts/model-providers.md- Add Kilo Gateway sectionConfiguration
Model References
Model refs use the format
kilocode/<provider>/<model>(e.g.,kilocode/anthropic/claude-opus-4.5).