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
- Open Cursor Settings (
Cmd+,on macOS,Ctrl+,on Windows/Linux) - Navigate to Models → OpenAI API Key
- Enter your LW AI API key
- Set the OpenAI API Base URL to:
https://openapi.linkwo.ai/v1- 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
| Feature | Status |
|---|---|
| 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 codingdeepseek/deepseek-v4-flash— Fast autocompletez-ai/glm-5.1— Chinese-language codingfusion— Auto-routed
Troubleshooting
- "Invalid API key" — Contact support@linkwo.com to verify your key
- Connection errors — Ensure
OPENAI_BASE_URLis set tohttps://openapi.linkwo.ai/v1(with/v1) - Model not found — Use the exact model ID from Model Overview