Skip to content

Cursor Configuration

Configure Any API in Cursor to use AI coding features.

Recommendation

We recommend using VS Code + Continue for a better experience. Continue is a free, open-source AI coding assistant that integrates perfectly with VS Code. View Continue Configuration

Step 1: Install Cursor

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

Step 2: Configure API

Configure through the settings interface:

  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:
    • OpenAI API Key: Enter your API key
    • Enable Override OpenAI Base URL: https://anyapi.pro
  5. Click "Verify" to test the connection
  6. Check the models you want to use in the model list above

WARNING

After configuration, we recommend disabling Cursor's built-in cloud models (uncheck them) on the Models page to use only your custom API and avoid extra charges.

Step 3: Start Using

FeatureShortcut (Windows/Linux)Shortcut (Mac)Description
Inline Generate/EditCtrl+KCmd+KGenerate or edit code directly in the editor
AI Chat PanelCtrl+LCmd+LOpen the AI chat panel on the right
Composer ModeCtrl+ICmd+IMake changes across multiple files
Context MenuSelect code, right-click for AI options
Code CompletionTabTabAccept auto-completion suggestions

API PLAT