Windsurf is Codeium’s AI code editor with the built-in Cascade AI assistant. You can configure Windsurf to use AppleRouter as its AI backend.

Prerequisites

Configuration Steps

1

Open Windsurf Settings

Click the gear icon in the bottom left, or use Cmd + , (macOS) / Ctrl + , (Windows/Linux)
2

Search for AI Configuration

In the settings search box, enter openai or api to find AI-related settings
3

Configure API Endpoint

  • API Key: Enter your AppleRouter API key - Base URL: Enter https://api.applerouter.ai/v1
4

Select a Model

Enter your preferred model name, such as gpt-4o or claude-sonnet-4-20250514

Using Cascade

After configuration, you can use AI features through:
  • Cascade Chat: Press Cmd + L (macOS) / Ctrl + L (Windows/Linux) to open AI chat
  • Inline Edit: Select code and press Cmd + I (macOS) / Ctrl + I (Windows/Linux) for AI editing

Verify Configuration

Open Cascade Chat and send a simple message to test:
Hello, can you help me write a hello world function?
If you receive a normal response, the configuration is successful.
Windsurf’s AI configuration may vary by version. If these steps don’t apply, refer to Windsurf’s official documentation for custom AI backend configuration.