Skip to content

Cursor Integration

Cursor is an AI-first code editor that natively supports custom OpenAI-compatible endpoints.

  1. Install Client: Download and install the latest release of Cursor.
  2. Obtain API Key: Go to AlphaTech Sign Up & API Keys to generate your API Key (sk-xxxx).
  3. Select Models: Review Models and pricing to choose your target model IDs (e.g., deepseek-v4.1-flash, gpt-6-luna, claude-new-sonnet-5).

Click the gear icon (⚙️) in the top-right corner or press Cmd + , (macOS) / Ctrl + , (Windows/Linux), then navigate to Models.

Menu Path: Cursor Settings -> Models

  • OpenAI API Key: Paste your sk-xxxx key from AlphaTech.
  • Override OpenAI Base URL: Toggle this option on and enter:
https://alphatech.net.cn/v1

Click Verify next to the field to test the endpoint.

Cursor does not fetch external model catalogs dynamically. Add your required models manually:

  1. Scroll down to the Model Names list and click Add Model.
  2. Type the exact model ID from the catalog, such as:
    • deepseek-v4.1-flash
    • gpt-6-luna
    • claude-new-sonnet-5
  3. Hit Enter and toggle the model on.
  1. Open the Chat pane (Cmd + L / Ctrl + L) or Composer (Cmd + I / Ctrl + I).
  2. Select your newly added model (e.g. deepseek-v4.1-flash) in the model dropdown.
  3. Submit a test prompt:
Write a thread-safe singleton pattern implementation in Python.

If the response streams back smoothly and the request appears in your AlphaTech console log, configuration is complete.

Some versions of Cursor send diagnostic calls that might be sensitive to local proxy rules. If your Base URL (https://alphatech.net.cn/v1) and API key are correct, try testing directly within a Chat session.

2. Which features route through AlphaTech?

Section titled “2. Which features route through AlphaTech?”
  • Routed: Chat queries, Composer workflows, and Agent mode requests using the configured custom model.
  • Not routed: Cursor Tab autocomplete (Copilot++) and certain native indexing features use Cursor’s proprietary infrastructure and are unaffected by custom Base URLs.

Cursor requires exact matches for model IDs. Verify that the ID matches the listing on Models and pricing with no extraneous spaces or case discrepancies.


Reference: Cursor Official Documentation
Last verified on 2026-11-04

需要进一步了解企业方案,或确认服务状态?