Kilo AI is one of the sharpest VS Code coding extensions out there — fast inline completions, multi-file context, and a chat panel that actually understands your codebase. But like every AI coding tool, it asks you to pick one model and stick with it. That's a problem.
Not every coding task needs the same model. Inline autocomplete should be instant — a small, fast model is perfect. But when you ask Kilo to refactor a 500-line module or debug a race condition, you want the most capable reasoning model available. With Antbase, you don't choose. The router chooses for you, 20,000 models deep.
Setup
Add this to your VS Code settings.json:
{
"kilo.provider": "openai-compatible",
"kilo.apiBaseUrl": "https://antbase.ai/v1",
"kilo.apiKey": "your-ant-api-key",
"kilo.model": "ant:coder"
}Or use environment variables if you prefer:
export OPENAI_API_BASE=https://antbase.ai/v1
export OPENAI_API_KEY=your-ant-api-keyPicking the Right Virtual Model
Antbase exposes virtual models that are purpose-built for different workflows. For Kilo, here's what we recommend:
- •ant:coder — Best all-around choice for coding. Routes to the strongest code-generation model available at the best price/performance.
- •ant:best — When you need maximum quality. Complex refactoring, architecture decisions, debugging subtle concurrency issues.
- •ant:fast — For inline completions and quick suggestions. Sub-second responses, low cost.
- •ant:auto — Let Antbase decide everything. Classifies each request and picks the optimal model, speed, and cost tradeoff.
- •ant:free — Zero cost. Perfect for learning, experimenting, or when you just need a quick answer.
What Changes in Practice
Without Antbase, you pick GPT-4o and every Kilo request — from a simple docstring to a full module rewrite — costs the same and takes the same time. With Antbase:
- •Docstring generation → fast model, 200ms, fractions of a cent
- •Explain this function → mid-tier model, contextual, instant
- •Refactor this module for testability → ant:coder routes to the best code model, takes a few seconds, gets it right
- •Debug this memory leak → ant:reasoning activates chain-of-thought, model thinks step by step
- •Design a plugin architecture for this app → ant:best pulls in GPT-5 or Claude Opus, deep analysis
The cost drops. The quality goes up. And when a provider has an outage at 2 AM, Antbase fails over automatically — your Kilo keeps working.
No Vendor Lock-In
This is the underrated part. When you point Kilo at Antbase instead of directly at OpenAI or Anthropic, you're no longer locked to one provider. If a better model drops tomorrow — Gemma 4, Llama 5, whatever — Antbase adds it to the catalog and your Kilo starts benefiting immediately. No settings change, no extension update, no migration.
You get access to 20,000 models across 30+ providers through the same API key. That's the whole point.
Get Started
Install Kilo from the VS Code marketplace, add the three lines to your settings.json, and start coding. It takes 30 seconds.


