packages/kilo-docs/pages/ai-providers/alibaba.md
Kilo Code supports Alibaba Cloud Model Studio (DashScope) through the native Alibaba AI SDK provider. Use it to run Qwen and other DashScope-hosted models directly from Kilo.
Website: https://www.alibabacloud.com/product/modelstudio
{% tabs %} {% tab label="VSCode" %}
Open Settings (gear icon) and go to the Providers tab to add Alibaba Cloud. Enter your DashScope API key and choose a supported model from the model picker.
The extension stores this in your kilo.json config file. You can also edit the config file directly — see the CLI tab for the file format.
{% /tab %} {% tab label="CLI" %}
Set the DashScope API key as an environment variable or configure it in your kilo.json config file:
Environment variable:
export DASHSCOPE_API_KEY="your-api-key"
Config file (~/.config/kilo/kilo.json or ./kilo.json):
{
"provider": {
"alibaba": {
"env": ["DASHSCOPE_API_KEY"]
}
}
}
Then set your default model:
{
"model": "alibaba/qwen-plus"
}
Some regions and model catalogs may expose Alibaba models under alibaba-cn instead. In that case, use the same API key and set the model as alibaba-cn/<model-id>.
{% /tab %} {% /tabs %}
DASHSCOPE_API_KEY is set in the same shell that launches Kilo, or stored in your Kilo provider config.alibaba-cn/<model-id> provider prefix.