Skip to main content

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:

1

Install Cursor

If you haven't already, install Cursor.

2

Get a FriendliAI API Key

If you need a new API key, create one.

3

Set Up Cursor

Set Up FriendliLink and connect your agent to FriendliAI with one command.
  1. Open Cursor. Then, open Cursor Settings.
  2. In the left sidebar, click Models.
  3. Expand API Keys.
  4. Add your FriendliAI API key:
    1. In OpenAI API Key, paste your key.
    2. Turn on OpenAI API Key.
    3. When prompted, click Enable OpenAI API Key.
  5. Override the base URL:
    1. Turn on Override OpenAI Base URL.
    2. Paste the following FriendliAI base URL:
  6. Add the FriendliAI model ID:
    1. In Models, enter the model ID. For example, enter zai-org/GLM-5.3.
    2. Click Add Custom Model.
    3. To confirm, click Add.
To learn more, see Cursor Docs > Bring your own API Key.
4

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.

Help

Find answers to common agent setup questions.
Last modified on September 16, 2026