Skip to content

Recommended Alternative

We recommend using VSCode + Continue for a better experience. Continue is a free, open-source AI coding assistant that works seamlessly with VSCode. Check out the Continue setup guide.

Step 1: Install Cursor

Download and Install

  1. Visit https://cursor.com to download the installer for your system
  2. Install and open Cursor

Step 2: Configure API

Configure via Settings UI

  1. Open Cursor Settings: click the gear icon in the top-right corner, or press Ctrl+Shift+J (Mac: Cmd+Shift+J)
  2. Select "Models" in the left navigation
  3. Scroll down to the "OpenAI API Key" section
  4. Fill in the following settings:
    • OpenAI API Key: Enter your API key
    • Turn on Override OpenAI Base URL: https://api.bsf.ai
  5. Click the "Verify" button to test the connection
  6. In the model list above, check the models you want to use

NOTE

After configuration, it's recommended to disable Cursor's built-in cloud models (uncheck them) in the Models page and only use the custom API to avoid extra charges.

Step 3: Start Using

Basic Usage

  • Inline generate/edit: Press Ctrl+K (Mac: Cmd+K) to generate or edit code directly in the editor
  • AI chat panel: Press Ctrl+L (Mac: Cmd+L) to open the AI chat panel on the right
  • Composer mode: Press Ctrl+I (Mac: Cmd+I) to open Composer for multi-file editing
  • Context menu: Select code and right-click to see AI actions like "Edit" and "Chat"
  • Code completion: Cursor automatically provides completion suggestions as you type; press Tab to accept