Kilo CLI can use XycAi through the OpenAI-compatible endpoint and shell environment variables.
Set the endpoint, key, and default model in your shell:
export OPENAI_BASE_URL="https://cn.chatapi.app/v1"
export OPENAI_API_KEY="sk-xxxxxxxx"
export OPENAI_MODEL="deepseek-v4-pro"
Start Kilo CLI and run a read-only task to verify authentication, model access, and networking.