Use Xantly with Kilo Code

Kilo Code is the #1 IDE Extension on OpenRouter by token volume. Routing through Xantly adds bandit routing, semantic cache, and USD budget caps for heavy-usage patterns.

Kilo Code is the #1 IDE Extension on OpenRouter by token volume: another Cline fork with its own Kilo Gateway feature. Pointing it at Xantly replaces Kilo Gateway with a smarter routing layer: BaRP bandit routing, semantic cache, memory.

Prerequisites

Setup (VS Code / JetBrains)

  1. Open Kilo's settings panel.
  2. Under API Provider, select OpenAI Compatible.
  3. Configure:
FieldValue
Base URLhttps://api.xantly.com/v1/chat/completions (full path, Kilo supports it) or https://api.xantly.com/v1 (standard)
API Keyxantly_sk_...
Model IDxantly/auto-quality
  1. Save.

Setup (CLI)

kilo --base-url https://api.xantly.com/v1 \
     --api-key xantly_sk_... \
     --model xantly/auto-quality

Or via environment:

export KILO_OPENAI_BASE_URL=https://api.xantly.com/v1
export KILO_OPENAI_API_KEY=xantly_sk_...
export KILO_MODEL=xantly/auto-quality
kilo

Heavy-usage budget pattern

Kilo users tend to burn through tokens fast, the #1 rank on OpenRouter isn't accidental. Set a USD budget on your Xantly key before running anything serious:

Dashboard → API Keys → [your key] → Daily Budget USD → 10

Once daily spend hits the cap, Xantly returns 402; Kilo surfaces it as a friendly error instead of silently draining your balance.

Model choice

Model IDWhen
xantly/auto-valueDaily driver, Kilo's usage pattern benefits from T2 balance
xantly/auto-qualityComplex refactors, multi-file agent runs
anthropic/claude-sonnet-4.6Strong tool-calling; Kilo's autonomous mode shines here
groq/llama-3.3-70bFast edits, simple prompts; great p50 latency

Verify

Run a quick agent task:

Open my TypeScript project and find all files importing from the deprecated `@legacy/...` path. Propose fixes.

Kilo should scan, reason, propose edits. Your Xantly dashboard will log each call with cost + model + cache status.

What you get over Kilo Gateway

Gotchas

Full URL vs base URL. Kilo accepts both https://api.xantly.com/v1 and https://api.xantly.com/v1/chat/completions. Both work. Pick one and stick to it.

Model ID format. Same as Cline/Roo, provider/model prefix or xantly/auto-* alias. Bare slugs get rejected.

High-volume concurrent runs. If you run 5+ Kilo agent sessions in parallel, consider upgrading your Xantly plan for higher concurrent request limits.

Next steps