openclaw/src/agents/pi-embedded-runner
John Fawcett 13f32e2f7d
feat: Add Kilo Gateway provider (#20212)
* feat: Add Kilo Gateway provider

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

* kilocode: add provider tests and normalize onboard auth-choice registration

* kilocode: register in resolveImplicitProviders so models appear in provider filter

* kilocode: update base URL from /api/openrouter/ to /api/gateway/

* docs: fix formatting in kilocode docs

* fix: address PR review — remove kilocode from cacheRetention, fix stale model refs and CLI name in docs, fix TS2742

* docs: fix stale refs in design doc — Moltbot to OpenClaw, MoltbotConfig to OpenClawConfig, remove extra-params section, fix doc path

* fix: use resolveAgentModelPrimaryValue for AgentModelConfig union type

---------

Co-authored-by: Mark IJbema <mark@kilocode.ai>
2026-02-23 23:29:27 +00:00
..
run feat(agents): add per-agent stream params overrides for cache tuning (#17470) (thanks @rrenamed) 2026-02-23 18:46:40 +00:00
abort.ts
cache-ttl.test.ts fix(agents): extend cache-ttl eligibility for moonshot and zai 2026-02-23 18:27:36 +00:00
cache-ttl.ts feat: Add Kilo Gateway provider (#20212) 2026-02-23 23:29:27 +00:00
compact.ts refactor(security): unify secure id paths and guard weak patterns 2026-02-22 10:16:19 +01:00
compaction-safety-timeout.ts
extensions.ts fix(compaction): pass model through runtime for safeguard summaries (#17864) 2026-02-23 10:14:21 -05:00
extra-params.cache-retention-default.test.ts feat: surface cached token counts in /status output (openclaw#21248) thanks @vishaltandale00 2026-02-19 21:06:13 -06:00
extra-params.openrouter-cache-control.test.ts test: dedupe repeated test fixtures and assertions 2026-02-22 18:37:25 +00:00
extra-params.ts feat(agents): add per-agent stream params overrides for cache tuning (#17470) (thanks @rrenamed) 2026-02-23 18:46:40 +00:00
extra-params.zai-tool-stream.test.ts docs(zai): document tool_stream defaults 2026-02-17 09:22:55 -05:00
google.test.ts refactor!: remove google-antigravity provider support 2026-02-23 05:20:14 +01:00
google.ts refactor!: remove google-antigravity provider support 2026-02-23 05:20:14 +01:00
history.ts
kilocode.test.ts feat: Add Kilo Gateway provider (#20212) 2026-02-23 23:29:27 +00:00
lanes.ts
logger.ts
model.forward-compat.test.ts refactor(test): dedupe agent and discord test fixtures 2026-02-22 20:04:51 +00:00
model.test-harness.ts refactor(test): dedupe agent and discord test fixtures 2026-02-22 20:04:51 +00:00
model.test.ts refactor!: remove google-antigravity provider support 2026-02-23 05:20:14 +01:00
model.ts OpenRouter: allow any model ID instead of restricting to static catalog (#14312) 2026-02-22 12:21:20 -05:00
run.overflow-compaction.fixture.ts refactor(test): dedupe agent and discord test fixtures 2026-02-22 20:04:51 +00:00
run.overflow-compaction.loop.test.ts refactor(test): dedupe agent and discord test fixtures 2026-02-22 20:04:51 +00:00
run.overflow-compaction.mocks.shared.ts test: dedupe fixtures and test harness setup 2026-02-23 05:45:54 +00:00
run.overflow-compaction.shared-test.ts test(pi): share overflow-compaction test setup 2026-02-22 07:44:57 +00:00
run.overflow-compaction.test.ts refactor(test): dedupe agent and discord test fixtures 2026-02-22 20:04:51 +00:00
run.ts fix(telegram): make reaction handling soft-fail and message-id resilient (#20236) 2026-02-23 10:25:14 -05:00
runs.ts
sandbox-info.ts
sanitize-session-history.tool-result-details.test.ts test: move embedded and tool agent suites out of e2e 2026-02-22 11:17:47 +00:00
session-manager-cache.ts
session-manager-init.ts revert: PR 18288 accidental merge (#19224) 2026-02-17 10:05:29 -05:00
system-prompt.test.ts fix(plugins): hook systemPrompt gets collected then thrown away (#14583) (#14602) 2026-02-22 18:58:21 -05:00
system-prompt.ts Add explicit ownerDisplaySecret for owner ID hash obfuscation (#22520) 2026-02-21 03:13:56 -05:00
thinking.test.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
thinking.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
tool-name-allowlist.ts Agents: validate persisted tool-call names 2026-02-21 23:06:44 -08:00
tool-result-context-guard.test.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
tool-result-context-guard.ts fix(subagent): harden read-tool overflow guards and sticky reply threading (#19508) 2026-02-17 15:32:52 -08:00
tool-result-truncation.test.ts refactor(agents): dedupe config and truncation guards 2026-02-22 17:54:51 +00:00
tool-result-truncation.ts refactor(agents): dedupe config and truncation guards 2026-02-22 17:54:51 +00:00
tool-split.ts
types.ts fix(agents): cap embedded runner retry loop 2026-02-21 15:35:45 +01:00
usage-reporting.test.ts chore: Fix types in tests 43/N. 2026-02-17 15:50:07 +09:00
utils.ts
wait-for-idle-before-flush.ts