TokenFlyTokenFly
API GuideGetting StartedClient Setup

Cursor Setup

Connect Cursor to Tokenfly

Installation

Download the installer for your platform (Windows / macOS / Linux) from the Cursor website, then run it — no Node.js or npm required.

Configure a Custom Model

Cursor officially only supports keys from OpenAI / Anthropic / Google / Azure OpenAI / AWS Bedrock official channels. To connect to a self-hosted gateway, use the Override OpenAI Base URL feature:

Tip

Using your own API key (BYOK) in Ask / Agent / Edit mode usually requires a Pro subscription or higher; the free tier typically does not support BYOK.

  1. Open Cursor SettingsModels

  2. In the API Keys section, find the OpenAI API Key field and paste your API key: sk-xxx

  3. Enable the Override OpenAI Base URL toggle and enter:

    https://tokenfly.com/v1
  4. In the Add or search model field at the top of Models, type the model ID and press Enter:

    gpt-5.4
  5. After saving, you'll see and can select gpt-5.4 in the chat panel's model picker.

Configuration Reference

FieldPurpose
OpenAI API KeyAccess token
Override OpenAI Base URLService gateway address
Add or search modelManually added model ID

Verification

Once configured, select gpt-5.4 in the Chat panel and start a conversation — a normal reply confirms the setup works.

How is this guide?