Skip to content

feat: Add Kilo Gateway provider#3241

Closed
markijbema wants to merge 1 commit intoopenclaw:mainfrom
markijbema:mark/kilocode-provider
Closed

feat: Add Kilo Gateway provider#3241
markijbema wants to merge 1 commit intoopenclaw:mainfrom
markijbema:mark/kilocode-provider

Conversation

@markijbema
Copy link
Contributor

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 documentation
  • docs/design/kilo-gateway-integration.md - Design document for the integration

Modified Files

  • src/agents/model-auth.ts - Add kilocode provider to auth handling
  • src/agents/pi-embedded-runner/cache-ttl.ts - Add kilocode prefix handling
  • src/agents/pi-embedded-runner/extra-params.ts - Add kilocode prefix handling
  • src/agents/transcript-policy.ts - Update provider handling
  • src/cli/program/register.onboard.ts - Add --kilocode-api-key CLI option
  • src/commands/auth-choice-options.ts - Add kilocode to provider options
  • src/commands/auth-choice.apply.api-providers.ts - Add kilocode provider application logic
  • src/commands/auth-choice.preferred-provider.ts - Add kilocode to preferred providers
  • src/commands/onboard-auth.config-core.ts - Add kilocode config handling
  • src/commands/onboard-auth.credentials.ts - Add KILOCODE_API_KEY credential handling
  • src/commands/onboard-auth.models.ts - Add kilocode model defaults
  • src/commands/onboard-auth.ts - Add kilocode to onboarding flow
  • src/commands/onboard-non-interactive/local/auth-choice.ts - Add kilocode non-interactive support
  • src/commands/onboard-types.ts - Add kilocode types
  • src/config/io.ts - Add KILOCODE_API_KEY to config
  • docs/concepts/model-providers.md - Add Kilo Gateway section

Configuration

# CLI setup
moltbot onboard --kilocode-api-key <key>

# Or environment variable
export KILOCODE_API_KEY="your-api-key"

Model References

Model refs use the format kilocode/<provider>/<model> (e.g., kilocode/anthropic/claude-opus-4.5).

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
@openclaw-barnacle openclaw-barnacle bot added docs Improvements or additions to documentation cli CLI command changes commands Command implementations agents Agent runtime and tooling labels Jan 28, 2026
@clawdinator
Copy link
Contributor

clawdinator bot commented Feb 1, 2026

closing thumbs up

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.

@clawdinator clawdinator bot closed this Feb 1, 2026
@jrf0110 jrf0110 mentioned this pull request Feb 18, 2026
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant