---
url: 'https://docs.byesu.com/en/clients/windsurf.md'
description: >-
  Connect Windsurf IDE to byesu API via custom OpenAI-compatible Base URL: run
  Claude 5.5, GPT-6.2, and DeepSeek V4 in Cascade with one pay-as-you-go key.
---

# Connect Windsurf IDE to byesu API

> **Key facts**: Set Windsurf's custom OpenAI-compatible Base URL to `https://byesu.com/v1` with a default **`auto`** group token (`sk-...`) to power **Cascade** (Write & Chat) across Claude 5.5, GPT-6.2, Gemini 4, and DeepSeek V4 on one pay-as-you-go balance.

**Windsurf** (Codeium's agentic IDE) combines multi-file **Cascade** flows, terminal tool execution, and contextual chat. Pointing Windsurf's custom OpenAI-compatible (**BYOK**) provider at **[byesu](https://byesu.com)** lets you switch between Anthropic, OpenAI, Google, and DeepSeek models inside Cascade without maintaining separate vendor keys or seat upgrades.

::: tip Quick configuration

* **Provider protocol**: Custom / OpenAI-Compatible (`/v1/chat/completions`)
* **Server / Base URL**: `https://byesu.com/v1` *(include `/v1`, do not append `/chat/completions`)*
* **API Key**: `sk-...` token created in the default **`auto`** group ([Sign up & get key](https://byesu.com/register))
* **Recommended Cascade models**: `claude-sonnet-5-5`, `claude-opus-5-5`, `gpt-6.2-sol`, `deepseek-v4-pro`
  :::

Want ready-to-paste config snippets for Windsurf and your CLI tools side by side? Open the **[AI Client & SDK Config Generator](/en/tools/config-generator)**.

## Step-by-Step Setup in Windsurf

1. **Create a token**: Sign in to the [byesu Console](https://byesu.com/register), open **Tokens**, and create an `sk-...` key in the default **`auto`** group (see [Choosing a Token Group](/en/guide/groups)).
2. **Open Windsurf model settings**: Launch Windsurf and open **Windsurf Settings** (`Cmd+,` on macOS or `Ctrl+,` on Windows/Linux → **Windsurf Settings → Models / Custom Providers**), or click the gear icon at the top of the **Cascade** panel → **Manage Models**.
3. **Configure the OpenAI-compatible endpoint**:
   ```text
   Base URL: https://byesu.com/v1
   API Key:  sk-your-byesu-token
   ```
4. **Register exact model IDs**: Add the model identifiers you want in your Cascade model picker (must match console spelling character for character):
   * `claude-sonnet-5-5`
   * `claude-opus-5-5`
   * `gpt-6.2-sol`
   * `deepseek-v4-pro`
   * `gemini-4-argon`
5. **Save and test in Cascade**: Open **Cascade** (`Cmd+L`), select `claude-sonnet-5-5` from the model dropdown, and run a repository-aware prompt such as *"Explain the entrypoint routing in this workspace and check for unhandled async errors."*

## Recommended Model Routing for Cascade & Chat

| Workflow in Windsurf | Recommended Model ID | Engineering Rationale |
| --- | --- | --- |
| Everyday **Cascade Write** & fast edits | [`claude-sonnet-5-5`](/en/models/claude-sonnet-5-5) | Sub-2s median TTFT (`1.90s` p50, `99.97%` success rate) keeps multi-step tool loops snappy |
| Complex multi-file architecture & root-cause debugging | [`claude-opus-5-5`](/en/models/claude-opus-5-5) / [`gpt-6.2-sol`](/en/models/gpt-6-2) | Highest multi-file reasoning depth (`99.99%` uptime on Opus 5.5; deep synthesis on GPT-6.2 Sol) |
| Bulk test generation, docstrings & migrations | [`deepseek-v4-pro`](/en/models/deepseek-v4) | `99.90%` production uptime with strong code fidelity and automatic zero-surcharge prefix caching |
| Large-context spec & multimodal inspection | [`gemini-4-argon`](/en/models/gemini-4-argon) | 1M-token context window for reading large logs, specs, and diagrams in Chat |

## Practical Engineering Notes

* **What uses your BYOK key vs Windsurf's native plan**: Cascade Write/Chat turns and custom model chats selected from your custom list bill strictly per token on byesu; Windsurf's proprietary Supercomplete / Tab autocomplete engine still follows your Windsurf account tier. To compare how other coding environments handle BYOK wire protocols and `0.1x` prompt caching, read **[Cursor vs Claude Code vs Cline](/en/compare/cursor-vs-claude-code-vs-cline)** or explore **[Zed Editor](/en/clients/zed)** and **[Trae IDE](/en/clients/trae)**.
* **No international card needed**: Top up your gateway balance on-chain via **[USDT (TRC20 / BEP20)](/en/guide/pay-with-usdt)** or **Alipay**. Text and coding models bill pay-as-you-go using transparent multipliers (with cache reads down to `0.1x` on supported routes) and live rates shown in the console after sign-in.
* **Additional vendor groups**: The `auto` token group covers Claude, GPT, Gemini, DeepSeek, and Grok. If you want to add `glm-5.3` or `kimi-k3`, create a dedicated token in the `Glm` or `Kimi` group.

## Common Troubleshooting

* **`401 Unauthorized` / `invalid_api_key`**: Verify there are no trailing spaces in your `sk-...` key and confirm the custom Base URL is active (`https://byesu.com/v1`) rather than hitting default OpenAI servers ([OpenAI 401 fix](/en/errors/openai-api-401-invalid-api-key)).
* **`404 Not Found` on Cascade requests**: Ensure the Base URL ends with **`/v1`** (`https://byesu.com/v1`) and does **not** include `/chat/completions` at the end. Also check that you wrote hyphens rather than dots in Claude IDs (`claude-sonnet-5-5`, not `claude-sonnet-5.5`).
* **`no available channel` error**: Your token group does not match the requested model ID — create a token in the default **`auto`** group for Claude/GPT/Gemini/DeepSeek/Grok ([no available channel guide](/en/errors/no-available-channel-error)).
* **Slow first token on deep reasoning prompts**: Reasoning models (`gpt-6.2-sol`, `claude-opus-5-5`) think before streaming the first visible token; check current p50/p95 numbers in the **[December 2026 Production Latency & Uptime Report](/en/articles/llm-api-latency-uptime-december-2026)** and [weekly benchmarks](https://byesu.com/benchmarks).

## FAQ

### How do I connect Windsurf IDE to a custom OpenAI-compatible API key on byesu?

Create an `sk-...` token in the [byesu Console](https://byesu.com/register) under the **`auto`** group, open Windsurf's custom OpenAI-compatible provider settings, set Base URL to `https://byesu.com/v1`, paste your key, and add model IDs like `claude-sonnet-5-5`, `claude-opus-5-5`, `gpt-6.2-sol`, and `deepseek-v4-pro`.

### Should the Windsurf custom Base URL include `/v1`?

Yes. Always enter `https://byesu.com/v1` — Windsurf appends `/chat/completions` automatically. Leaving off `/v1` or typing `/v1/chat/completions` results in `404` responses.

### Which models work best for Windsurf Cascade Write vs Chat modes?

Use `claude-sonnet-5-5` for snappy daily Cascade edits, switch to `claude-opus-5-5` or `gpt-6.2-sol` for cross-module architecture and tricky bugs, and pick `deepseek-v4-pro` for high-volume test writing and repetitive refactors.

### Can I use Windsurf BYOK through byesu without an international credit card?

Yes. Fund a single pay-as-you-go balance with [USDT](/en/guide/pay-with-usdt) or Alipay in the console — no monthly gateway subscription and no international card required.

## Related Guides & Tools

* [AI Client & SDK Config Generator](/en/tools/config-generator)
* [Cursor vs Claude Code vs Cline (2026 BYOK Comparison)](/en/compare/cursor-vs-claude-code-vs-cline)
* [Connect Zed Editor to byesu API](/en/clients/zed)
* [Connect Trae IDE to byesu API](/en/clients/trae)
* [Pay for Claude & GPT API with USDT](/en/guide/pay-with-usdt)
