Cursor

Cursor is an AI-powered code editor built on VS Code. You can configure it to use LW AI's OpenAI-compatible API.

Configuration

  1. Open Cursor Settings (Cmd+, on macOS, Ctrl+, on Windows/Linux)
  2. Navigate to ModelsOpenAI API Key
  3. Enter your LW AI API key
  4. Set the OpenAI API Base URL to:
https://openapi.linkwo.ai/v1
  1. Select a model from the dropdown or enter a custom model ID (e.g., deepseek/deepseek-v4-pro)

Environment Variable (Alternative)

You can also configure via environment variables:

export OPENAI_API_KEY="YOUR_API_KEY"
export OPENAI_BASE_URL="https://openapi.linkwo.ai/v1"

Cursor will automatically pick up these variables.

Supported Features

FeatureStatus
Inline editing
Chat
Codebase indexing
Multi-file editing
Cursor Tab (autocomplete)✓ with compatible model

Available Models

Use any LW AI model ID in Cursor's model settings:

  • deepseek/deepseek-v4-pro — Best for complex coding
  • deepseek/deepseek-v4-flash — Fast autocomplete
  • z-ai/glm-5.1 — Chinese-language coding
  • fusion — Auto-routed

Troubleshooting

  • "Invalid API key" — Contact support@linkwo.com to verify your key
  • Connection errors — Ensure OPENAI_BASE_URL is set to https://openapi.linkwo.ai/v1 (with /v1)
  • Model not found — Use the exact model ID from Model Overview
  • VS Code — VS Code extension setup
  • Cline — Cline extension setup