Windsurf
Configure Windsurf, Codeium's AI-native IDE, to route through LLMAI for model flexibility and unified billing.
What This Does
Windsurf is an AI-native code editor built by Codeium. It features deep AI integration including Cascade, an agent that can understand your entire codebase. By connecting Windsurf to LLMAI, you can use any model in the LLMAI catalog while managing costs through a single unified balance.
Setup
Step 1: Open Windsurf Settings
- Launch Windsurf
- Click the gear icon in the sidebar or press
Cmd+,(macOS) /Ctrl+,(Windows/Linux) - Navigate to AI Providers or Cascade Settings
Step 2: Add a New Provider
- Click Add Provider or + Add AI Provider
- Select OpenAI Compatible from the provider list
Step 3: Configure LLMAI
Enter the following configuration:
| Field | Value |
|---|---|
| Provider Name | LLMAI (or any name you prefer) |
| Base URL | https://api.llmai.dev/v1 |
| API Key | Your LLMAI API key |
| Model ID | gpt-5.4 or gpt-5.3-codex |
Get your API key from console.llmai.dev/keys.
Step 4: Save and Activate
- Save the provider configuration
- Select LLMAI as your active provider
- Choose your preferred model from the model picker
Step 5: Alternative — Settings JSON
For advanced configuration, edit the settings file directly:
- Open command palette:
Cmd+Shift+P - Search for Open User Settings (JSON)
- Add the configuration:
{
"windsurf.aiProvider": "openai-compatible",
"windsurf.openaiCompatibleBaseUrl": "https://api.llmai.dev/v1",
"windsurf.openaiCompatibleApiKey": "YOUR_LLMAI_API_KEY",
"windsurf.openaiCompatibleModel": "gpt-5.4"
}Recommended Models for Windsurf
| Feature | Model | Why |
|---|---|---|
| Cascade (agent mode) | gpt-5.4 | Best for complex multi-step tasks |
| Code generation | gpt-5.3-codex | Optimized for programming |
| Large codebase analysis | gemini-3.1-pro | Extended context window |
| Quick chat responses | glm-5-turbo | Fast and cost-effective |
Troubleshooting
Provider not appearing in list
- Ensure you selected OpenAI Compatible, not plain OpenAI
- Save settings and restart Windsurf
Authentication errors
- Verify your API key is correct at console.llmai.dev/keys
- Re-paste the key without any extra spaces or newlines
Cascade doesn't work with LLMAI
- Cascade requires models with strong agentic capabilities — use
gpt-5.4for best results - Some Cascade features may require specific model capabilities
Slow responses
- Use
glm-5-turbofor faster responses - Check your remaining balance at console.llmai.dev/billing
Notes
- Windsurf's UI evolves frequently — exact menu paths may differ between versions
- Cascade is Windsurf's flagship feature — it works best with capable models like GPT-5.4
- Token usage is logged to your LLMAI dashboard in real-time
- For tab completions, consider configuring a faster model separately if Windsurf supports it