Skip to main content
Use in AI Tools

Cursor

Use Token Plan with Cursor

Configure and use Token Plan in Cursor, an AI-powered code editor built on VS Code.
The free version of Cursor only supports Auto mode and does not allow custom model configuration. You must subscribe to Cursor Pro or a higher plan to use Token Plan.

Configuration

  1. Download and install Cursor from the Cursor website.
  2. Open Cursor Settings and select the Models page.
  3. Enable OpenAI API Key and enter your Token Plan API Key.
  4. Enable Override OpenAI Base URL and enter https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1.
  5. In the Add or search model text box, enter a supported model name (such as qwen3.6-plus) and click Add Custom Model.
The model name glm-5 conflicts with a built-in Cursor model name. Use glm-5-0 instead. For other models, keep the model name consistent with the supported models list.
After completing the configuration, select the model in the chat panel to start using it.
If you cannot find the model you added, click and disable Auto mode in the chat panel, then select the model from the dropdown menu.

FAQ

Unable to use Token Plan models in Cursor

If you see the following errors:
  • The model xxx does not work with your current plan or api key.
  • Named models unavailable Free plans can only use Auto.
The free version of Cursor does not support custom models. Upgrade to Cursor Pro or a higher plan.

Error "We're having trouble connecting to the model provider." or "Unauthorized User API key"

Possible causes:
  • The model name glm-5 conflicts with a built-in Cursor model, causing authentication failure. Use glm-5-0 instead.
  • The API Key or Base URL is incorrect. Verify that you are using the dedicated API Key for Token Plan, not an API Key from pay-as-you-go or Coding Plan.
  • The model name is incorrect. Check the supported models list for correct model names.
For more questions, see the FAQ.