Set up and use Alibaba Cloud Model Studio's Coding Plan with Cursor.
Due to Cursor's limitations, you have to subscribe to Cursor Pro or higher to use custom models (such as Coding Plan). Otherwise, an error will occur: Error message
From the Cursor official website, download and install Cursor.
In Cursor, click
. Then, click Cursor Settings and select the Models page.Turn on OpenAI API Key. Enter your Coding Plan API Key.
Turn on Override OpenAI Base URL. Enter
https://coding-intl.dashscope.aliyuncs.com/v1.In the Add or search model text box, enter the model name from Coding Plan overview. Then, click Add Custom Model.
In Cursor, write the kimi-k2.5 model name as kimi-k2-5 and the glm-4.7 model name as glm-4-7. For other models, please keep their names consistent with those in the Overview.
After configuration, select the desired model in the chat panel to begin.
If the added model does not appear, click and disable Auto mode in the chat panel. Then, select the model from the model drop-down list.

FAQ
Q: Cannot use Coding Plan models in Cursor?
A: If you see one of the following error messages:
The model xxx does not work with your current plan or api key.
Named models unavailable Free plans can only use Auto. Switch to Auto or upgrade plans to continue.
Due to Cursor's limitations, the free plan supports only Auto mode and does not allow custom models. To use Coding Plan models, upgrade to Cursor Pro or higher.
Q: Why do I receive the error "We're having trouble connecting to the model provider." or "Unauthorized User API key"?
A: Possible reasons:
The model you invoked does not exist. For supported models in each deployment mode, see Model list.
After you configure the Alibaba Cloud Model Studio base URL and API key, calls to models from other providers will fail. If you want to use models from other providers, reconfigure or disable the OpenAI API Key and Override OpenAI Base URL as needed.
The error might stem from Cursor software's incompatibility with certain models, rather than a configuration or model provider issue.