What is Kilo Code?
Kilo Code is an open-source AI coding agent for VS Code that plans, writes and refactors code across your project. It supports multiple providers — including a generic OpenAI Compatible option — and MCP tools, so it slots straight onto Tokonomix.
- Plans and applies multi-file changes, runs commands, and iterates with your approval.
- Ships an OpenAI Compatible provider — just a Base URL, key and model.
- Supports MCP, so it can call external tools including consensus.
- Open source and model-agnostic by design.
Why route Kilo Code through Tokonomix?
Kilo Code is model-agnostic, which is exactly where Tokonomix shines: one key replaces a drawer of provider accounts, and consensus is available for the changes you don’t want a single model to decide alone.
- Reach 130+ models from one OpenAI Compatible endpoint — no per-provider keys.
- Select
tokonomix-consensusfor risky refactors, a fast slug for routine edits. - Add the Tokonomix MCP server so the agent can call
tokonomix_consensus_askmid-task. - Per-call spend caps and region / origin routing keep cost and compliance in check.
Connect Tokonomix to Kilo Code
Open the Kilo Code settings panel, choose the OpenAI Compatible provider, and fill in three fields. The Base URL must include /v1.
# Kilo Code → Settings → API Provider: OpenAI Compatible
Base URL : https://tokonomix.ai/api/v1
API Key : tok_live_your-key
Model : tokonomix-consensus # or any slug from GET /api/v1/modelsBeyond the chat model, add the Tokonomix MCP server (npx -y tokonomix-mcp with TOKONOMIX_API_KEY) so Kilo Code’s agent can call tokonomix_consensus_ask on the steps that matter.
Verify it works
- Select the OpenAI Compatible provider, paste the Base URL, key and a model slug.
- Ask Kilo Code to make a small edit and approve it.
- Confirm the call and token usage in your Tokonomix dashboard.

