Cursor Integration
Cursor is an AI-first code editor that natively supports custom OpenAI-compatible endpoints.
Prerequisites
Section titled “Prerequisites”- Install Client: Download and install the latest release of Cursor.
- Obtain API Key: Go to AlphaTech Sign Up & API Keys to generate your API Key (
sk-xxxx). - 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).
Configuration Steps
Section titled “Configuration Steps”1. Open the Models Settings
Section titled “1. Open the Models Settings”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
2. Enter API Key and Base URL
Section titled “2. Enter API Key and Base URL”- OpenAI API Key: Paste your
sk-xxxxkey from AlphaTech. - Override OpenAI Base URL: Toggle this option on and enter:
https://alphatech.net.cn/v1Click Verify next to the field to test the endpoint.
3. Add Custom Model IDs
Section titled “3. Add Custom Model IDs”Cursor does not fetch external model catalogs dynamically. Add your required models manually:
- Scroll down to the Model Names list and click Add Model.
- Type the exact model ID from the catalog, such as:
deepseek-v4.1-flashgpt-6-lunaclaude-new-sonnet-5
- Hit Enter and toggle the model on.
Verifying the Setup
Section titled “Verifying the Setup”- Open the Chat pane (
Cmd + L/Ctrl + L) or Composer (Cmd + I/Ctrl + I). - Select your newly added model (e.g.
deepseek-v4.1-flash) in the model dropdown. - 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.
Troubleshooting
Section titled “Troubleshooting”1. Verify button fails but chat works
Section titled “1. Verify button fails but chat works”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.
3. Model Not Found errors
Section titled “3. Model Not Found errors”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