Set up Cursor to connect to FriendliAI. Once you complete these steps, your agent will send requests to FriendliAI.
To get started, complete the following steps:
Install Cursor
If you haven't already, install Cursor.
Get a FriendliAI API Key
If you need a new API key, create one.
Set Up Cursor
- Open Cursor. Then, open Cursor Settings.
- In the left sidebar, click Models.
- Expand API Keys.
-
Add your FriendliAI API key:
- In OpenAI API Key, paste your key.
- Turn on OpenAI API Key.
- When prompted, click Enable OpenAI API Key.
-
Override the base URL:
- Turn on Override OpenAI Base URL.
-
Paste the following FriendliAI base URL:
-
Add the FriendliAI model ID:
-
In Models, enter the model ID. For example, enter
zai-org/GLM-5.3. - Click Add Custom Model.
- To confirm, click Add.
-
In Models, enter the model ID. For example, enter
Send a Prompt to Cursor
Open your agent and send a prompt. For example, use the following prompt:
Explore your codebase.
To learn more, see Cursor Docs > Quickstart.