This guide connects Kilo Code to the built-in OpenAI-compatible /v1/chat/completions endpoint exposed by candle-vllm.
Kilo Code -> Candle-vLLM (OpenAI-compatible)
cargo run --release --features cuda,nccl,flashinfer,cutlass -- \
--m Qwen/Qwen3.6-27B-FP8 \
--d 0 \
--p 8000 \
--kv-fraction 0.6 \
--enforce-parser qwen_coderIf you prefer FlashAttention, replace flashinfer with flashattn.
Install Kilo Code:
npm install -g @kilocode/cliCreate ~/.config/kilo/config.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local-candle-vllm": {
"npm": "@ai-sdk/openai-compatible",
"name": "Candle-vLLM Local",
"options": {
"baseURL": "http://localhost:8000/v1"
},
"models": {
"qwen3-coder": {
"name": "Qwen/Qwen3.6-27B-FP8"
}
}
}
},
"model": "local-candle-vllm/qwen3-coder"
}Use the exact model id returned by GET /v1/models if you are serving a different model.
kilo- Tool calls follow the standard OpenAI request/response flow.
- For Qwen coder models,
--enforce-parser qwen_coderis usually the most reliable setting.
Use the built-in chat logger when debugging client/server interaction:
export CANDLE_VLLM_CHAT_LOGGER=1Logs are written under ./log/.