Skip to main content

Cursor

Cursor is a next-generation intelligent code editor designed for working with AI.

note

Due to Cursor's limitations, only users subscribed to Cursor Pro or higher plans can customize model configurations.

Prerequisites

  • You have activated a TCB environment and obtained the environment ID cloudBaseEnvID.

  • Enable the required model in the AI console.

  • Obtain the Base URL and API Key in the AI console.

Configuration Steps

The meanings of each field are as follows:

Field to EnterExplanation
OpenAI API KeyThe API Key for calling the large model, which is obtained in the AI console.
Override OpenAI Base URLThe Base URL for the large model, which is obtained in the AI console.
Add Custom ModelThe large model ID. Copy the identifier of an enabled large model from the model list in the AI console and enter it here.
  1. Open the Cursor settings and go to Models.

  2. Enter the CloudBase API Key in the OpenAI API Key field, enable the Override OpenAI Base URL switch, and enter the Base URL in the Override OpenAI Base URL field.

cursor.png

  1. Click Add Custom Model, copy the identifier of an enabled large model from the model list in the AI console and enter it, then click Add.

cursor2.png

  1. Select the custom large model you added from the model list to start a conversation.

cursor3.png