TheDocumentation Index
Fetch the complete documentation index at: https://docs.routing.run/llms.txt
Use this file to discover all available pages before exploring further.
@kilocode/cli runs the Kilo Code agent in your terminal. This page covers only the CLI; for the VS Code extension, see Kilo Code (VS Code).
The CLI speaks OpenAI-compatible APIs: point it at routing.run’s base URL and use route/… model IDs.
Official references:
For the VS Code extension, see Kilo Code (VS Code).
rk_.
CLI
Install the CLI
Configure the provider
Kilo documents both environment variables and JSONC config. For a durable setup, configure an OpenAI-compatible provider with routing.run as the base URL, then keep the API key in your shell environment.
CLI connection prompt
The Kilo CLI supports OpenAI-compatible env vars and shared JSONC config. Paste this when onboarding yourself or a teammate. It includes the fastest env-based flow.Kilo Code CLI — connect to routing.run
Manual configuration
If you want to configure Kilo Code CLI manually instead of using the prompt above, export these exact values before you runkilo:
routing.run so switching providers is simpler.
Use a model id with the route/ prefix, for example route/glm-5.1.
Kilo also documents config files at
~/.config/kilo/kilo.jsonc and project kilo.jsonc. The important config keys are model, provider.<provider_id>.options.baseURL, and provider.<provider_id>.options.apiKey.Recommended models
Published model IDs are listed on the models page. Exact access depends on your plan tier and the dashboard; common picks:| Model | Use case |
|---|---|
route/glm-5.1-precision | Strongest reasoning-first choice |
route/qwen3.6-plus | Best default starting point |
route/minimax-m2.7-highspeed | Long-context sessions |
route/kimi-k2.5 | Agentic and tool-heavy flows |
route/glm-5.1 | Faster GLM alternative |
route/qwen3.5-plus | Qwen3.5 flagship |