Skip to content

Настройка Cursor

Cursor is an AI IDE based on VS Code. It supports chat, code generation, edits, and explanations directly in the editor.

Before connecting Cursor through RouteAPI, prepare:

  • The Cursor desktop app installed and signed in
  • Your RouteAPI key
  • An OpenAI protocol standard chat model available in the RouteAPI console
  • The RouteAPI OpenAI-compatible endpoint https://www.routeapi.ai/v1

Install the desktop app from the Cursor website and sign in with your Cursor account.

Open Settings in Cursor, then go to Models.

3.1 Enter OpenAI provider access information

Section titled “3.1 Enter OpenAI provider access information”

Find the OpenAI settings on the Models page. Field names may vary by Cursor version, but the required information is:

  • OpenAI API Key: your RouteAPI key
  • OpenAI Base URL: https://www.routeapi.ai/v1

After entering the values, click Verify.

After verification succeeds, open Cursor’s model picker and select an available OpenAI-compatible model returned by RouteAPI.

A safer approach is:

  • Prefer a standard chat or coding model marked as OpenAI protocol in the RouteAPI console
  • Do not prioritize reasoning models, because Cursor’s official docs state that custom OpenAI API keys only support standard, non-reasoning chat models

After configuration, you can use RouteAPI models directly in Cursor Chat or Composer.

  • The custom API key path mainly affects Chat / Composer standard chat capabilities and does not replace every built-in Cursor capability
  • Tab Completion, some Agent capabilities, or features that require dedicated models may still use Cursor’s built-in models
  • According to Cursor’s official FAQ, API keys are not stored, but each request is still sent to Cursor’s servers for final prompt assembly
  • If Verify fails, check the API key and ensure the address is https://www.routeapi.ai/v1
  • If the expected model is missing, confirm that it supports the OpenAI protocol and is a standard chat model rather than a reasoning model
  • If you updated the key or address but Cursor still shows the old state, close and reopen Cursor, then run Verify again
  • For terminal coding agents, also read Codex configuration, Claude configuration, and OpenCode configuration