Skip to main content
Clients & tools

Cursor

AI-powered code editor

Cursor is an AI coding IDE. Connect it to Qwen Cloud via Token Plan (Team Edition), Coding Plan, or pay-as-you-go billing.

Install Cursor

Download and install Cursor from the Cursor official website.

Configure access credentials

In Cursor, click the settings icon and go to Cursor Settings > Models. Enable OpenAI API Key and Override OpenAI Base URL, then enter the API Key, Base URL, and model name corresponding to your selected plan.

Token Plan (Team Edition)

ParameterValue
API KeyToken Plan (Team Edition) dedicated API Key
Base URLhttps://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
Available modelsToken Plan (Team Edition) supported models. Some model names need adjustment: glm-5 should be written as glm-5-0.

Coding Plan

ParameterValue
API KeyCoding Plan dedicated API Key
Base URLhttps://coding-intl.dashscope.aliyuncs.com/v1
Available modelsCoding Plan supported models. Some model names need adjustment: kimi-k2.5 should be written as kimi-k2-5, glm-4.7 as glm-4-7, and glm-5 as glm-5-0.

Pay-as-you-go

ParameterValue
API KeyYour Qwen Cloud API Key
Base URLhttps://dashscope-intl.aliyuncs.com/compatible-mode/v1
Available modelsEnter a supported model.

FAQ

Error codes

If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:

Cannot invoke an added model in Cursor

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.
Cause: The free version of Cursor only supports Auto mode and does not support invoking custom models. Solution: Upgrade to Cursor Pro or a higher plan.

Cannot find the added model after configuration

In the chat panel, click to disable Auto mode, then select the desired model from the model dropdown.

Model invocation error: "We're having trouble connecting to the model provider." or "Unauthorized User API key"

Troubleshoot the following items:
  • Verify that the API Key, Base URL, and model name match the selected billing plan. Credentials are not interchangeable between plans.
  • Some model names conflict with Cursor's built-in model names and require aliases. Refer to the available models section above for details.