Kilo Code
Kilo Code is an open-source coding agent for VS Code, JetBrains, and the terminal. Connect ai& as a custom OpenAI-compatible provider to use the same models and configuration on every surface.
Prerequisites
Section titled “Prerequisites”- Kilo Code for VS Code, JetBrains, or the CLI
- An ai& API key
VS Code and JetBrains
Section titled “VS Code and JetBrains”-
Open Kilo Code settings:
- VS Code: click the gear icon in the Kilo Code sidebar.
- JetBrains: open Settings → Tools → Kilo Code.
-
Open Providers, scroll to the bottom, and select Custom provider.
-
Enter:
Setting Value Provider ID aiandDisplay name ai&Provider API OpenAI Compatible Base URL https://api.aiand.com/v1API key Your ai& API key -
Select models from the fetched list, or add an exact ID from the model catalog.
-
Save the provider and choose
aiand/<model-id>in Kilo’s model picker.
Install Kilo:
npm install -g @kilocode/cliSet your API key:
export AIAND_API_KEY="sk-your-aiand-api-key"$env:AIAND_API_KEY = "sk-your-aiand-api-key"Create the global config at ~/.config/kilo/kilo.jsonc:
{ "$schema": "https://app.kilo.ai/config.json", "model": "openai-compatible/zai-org/glm-5.3", "provider": { "openai-compatible": { "options": { "apiKey": "{env:AIAND_API_KEY}", "baseURL": "https://api.aiand.com/v1", }, "models": { "zai-org/glm-5.3": { "name": "GLM 5.3", "tool_call": true, "reasoning": true, "limit": { "context": 1048576, "output": 131072, }, }, "deepseek-ai/deepseek-v4-flash": { "name": "DeepSeek V4 Flash", "tool_call": true, "reasoning": true, "limit": { "context": 1048576, "output": 384000, }, }, }, }, },}Run the interactive terminal UI:
kiloOr run one task:
kilo run --auto -m openai-compatible/zai-org/glm-5.3 "inspect this repository and fix the failing test"Verify
Section titled “Verify”Confirm Kilo can see the configured provider and model:
kilo models openai-compatiblekilo run --auto -m openai-compatible/zai-org/glm-5.3 "reply with only: ok"Troubleshooting
Section titled “Troubleshooting”- Models do not load — confirm the base URL is exactly
https://api.aiand.com/v1and re-enter the API key. - Unauthorized request — create a new key in the ai& console and update the provider or
AIAND_API_KEY. - The CLI ignores
AIAND_API_KEY— keep the{env:AIAND_API_KEY}reference in the global config, not a project config. - The agent answers but cannot edit files — choose a model with
tool_callingin the catalog and allow Kilo’s file tools when prompted. - Context usage is missing or compaction does not run — add the model’s
limit.contextandlimit.outputvalues from the catalog tokilo.jsonc.