Kilo Code CLI Custom Model Configuration

1. Obtain API Key

Open the 华烁云 application list, enter the available application, and copy the API Key.

Obtain 华烁云 API Key

2. Configuration

Kilo CLI reads kilo.jsonc and retrieves the API Key from the shell that starts the CLI.

Write in ~/.config/kilo/kilo.jsonc:

{
  "provider": {
    "acedatacloud": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://hsyunapi.hszl-bd.cn/v1",
        "apiKey": "{env:ACEDATACLOUD_API_KEY}"
      },
      "models": { "MODEL_ID": { "name": "MODEL_ID" } }
    }
  },
  "model": "acedatacloud/MODEL_ID"
}

Then export the Token in the current shell:

export ACEDATACLOUD_API_KEY="PASTE_YOUR_ACEDATACLOUD_API_TOKEN_HERE"

3. Verification

kilo run -m acedatacloud/MODEL_ID "Reply only OK"

If the CLI cannot read the Token, ensure the variable has been exported, and is not just written in an unloaded .env file.

Official Reference

Return to the Coding Plan Configuration Center.