Windsurf
Use Foza models with the Windsurf AI editor
Setup#
Use this guide if your Windsurf version exposes an OpenAI-compatible or custom provider option. If your version only supports built-in providers, use Cline or Continue inside VS Code for a full custom base URL flow.
1
Open Windsurf Settings
Go to Settings → AI Settings (or press Cmd+, and search for "AI").
2
Configure the provider
Set the following:
- Provider: OpenAI Compatible
- Base URL:
https://api.foza.ai/v1 - API Key:
sk-foza-xxxxx
3
Select a model
Enter your model slug, e.g., anthropic/claude-sonnet-4.6 or openai/gpt-4o.
4
Verify the connection
Open the AI chat panel and ask a read-only question about the current file. After that works, test a small code edit.
Troubleshooting#
| Symptom | What to check |
|---|---|
| No base URL field | Your Windsurf build may not support custom OpenAI-compatible endpoints |
| Auth error | Re-enter the Foza key and confirm it has an active model subscription |
| Model rejected | Use the exact Foza slug and try a broadly compatible model first |
Windsurf will now route all AI completions and chat through the Foza gateway.