Cursor AI Editor Configuration
Quick 5-minute setup, replace official API with OpenCodex API to save money
Step 1: Enter API Key
Get your API Key from OpenCodex platform
Format: sk-live-xxxxxxxxxxxx
Step 2: Select Model
Choose the AI model that best fits your needs
Step 3: Copy Configuration
// Cursor 配置
// 1. 打开 Cursor → Settings → OpenAI API Key
// 2. 粘贴以下配置:
API Key: sk-live-your-api-key-here
Base URL: https://opencodex.hk/api/v1
Model: deepseek-chat
// 验证配置:
// 1. 打开任意代码文件
// 2. 按 Cmd/Ctrl + L 打开 AI 聊天
// 3. 输入 "测试连接" 验证配置
Tip
Open Cursor → Settings → OpenAI API Key, paste the configuration above
Setup Steps
- 1Download and install Cursor AI Editor
- 2Open Cursor → Settings → OpenAI API Key
- 3Paste the configuration generated above
- 4Press Cmd/Ctrl + L to open AI chat, type 'Test connection' to verify
