Cursor is a code editor with built-in AI features. You can configure Cursor to use AppleRouter as its AI backend, giving you access to OpenAI, Claude, Gemini and more.

Prerequisites

Configuration Steps

1

Open Cursor Settings

Click the gear icon in the top right, or use Cmd + , (macOS) / Ctrl + , (Windows/Linux)
2

Go to Models Settings

Select Models from the left sidebar
3

Configure OpenAI API

In the OpenAI API Key section:
  • Enter your AppleRouter API key
  • Click Override OpenAI Base URL and enter:
https://api.applerouter.ai/v1
4

Select a Model

Choose your preferred model from the list, such as gpt-4o or claude-sonnet-4-20250514
Cursor settings interface

Using Custom Models

If your preferred model isn’t in Cursor’s preset list, you can add it manually:
  1. Find Add model at the bottom of the Models settings page
  2. Enter the model name (must match AppleRouter’s supported model names)
  3. Save and select it from the model list

Verify Configuration

After configuration, open any code file and press Cmd + K (macOS) / Ctrl + K (Windows/Linux) to open the AI edit feature. Enter a simple instruction to test if it works.
If you encounter issues, check that your API key is correct and that the Base URL includes the /v1 suffix.