-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
What would you like to be added?
Within the existing "API Key" authentication flow, add a new "Alibaba Cloud Standard API Key" option that allows users to quickly select between domestic (China) and international regions, then enter their Model Studio API key directly.
Why is this needed?
Currently, when users select "API Key" in the /auth command, they are prompted to enter a generic OpenAI-compatible API key. For users of Alibaba Cloud Model Studio, this requires manually configuring the endpoint URL, which adds friction.
Adding a dedicated "Alibaba Cloud Standard API Key" sub-option would:
- Provide a streamlined flow for Model Studio users
- Pre-configure the correct endpoint URLs for China and International regions
- Reduce setup steps by only requiring the API key input
Additional context
The current /auth interactive menu structure:
┌ Qwen Code auth ┐
│ │
│ › Qwen OAuth │
│ Free · Up to 1,000 requests/day · Qwen latest models │
│ │
│ Alibaba Cloud Coding Plan │
│ Paid · Up to 6,000 requests/5 hrs · All Alibaba Cloud Coding Plan Models │
│ │
│ API Key │
│ Bring your own API key │
└─────────────────────────────────────────────────────────────────────────────────────────┘
Proposed changes:
When users select "API Key", present an additional choice:
Select API Key type:
› Alibaba Cloud Standard API Key
Quick setup for Model Studio (China/International)
Custom API Key
For other OpenAI-compatible providers
If "Alibaba Cloud Standard API Key" is selected:
Select region:
› China
Endpoint: https://dashscope.aliyuncs.com/compatible-mode/v1
International
Endpoint: https://dashscope-intl.aliyuncs.com/compatible-mode/v1
Then prompt for the API key:
Enter your Alibaba Cloud Model Studio API key:
This approach keeps the existing menu structure intact while adding a convenient shortcut for Model Studio users within the API Key flow.