Connect Windsurf IDE to byesu API
Key facts: Set Windsurf's custom OpenAI-compatible Base URL to
https://byesu.com/v1with a defaultautogroup 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 lets you switch between Anthropic, OpenAI, Google, and DeepSeek models inside Cascade without maintaining separate vendor keys or seat upgrades.
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 defaultautogroup (Sign up & get key) - 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.
Step-by-Step Setup in Windsurf
- Create a token: Sign in to the byesu Console, open Tokens, and create an
sk-...key in the defaultautogroup (see Choosing a Token Group). - Open Windsurf model settings: Launch Windsurf and open Windsurf Settings (
Cmd+,on macOS orCtrl+,on Windows/Linux → Windsurf Settings → Models / Custom Providers), or click the gear icon at the top of the Cascade panel → Manage Models. - Configure the OpenAI-compatible endpoint:text
Base URL: https://byesu.com/v1 API Key: sk-your-byesu-token - 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-5claude-opus-5-5gpt-6.2-soldeepseek-v4-progemini-4-argon
- Save and test in Cascade: Open Cascade (
Cmd+L), selectclaude-sonnet-5-5from 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 | 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 / gpt-6.2-sol | 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 | 99.90% production uptime with strong code fidelity and automatic zero-surcharge prefix caching |
| Large-context spec & multimodal inspection | 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.1xprompt caching, read Cursor vs Claude Code vs Cline or explore Zed Editor and Trae IDE. - No international card needed: Top up your gateway balance on-chain via USDT (TRC20 / BEP20) or Alipay. Text and coding models bill pay-as-you-go using transparent multipliers (with cache reads down to
0.1xon supported routes) and live rates shown in the console after sign-in. - Additional vendor groups: The
autotoken group covers Claude, GPT, Gemini, DeepSeek, and Grok. If you want to addglm-5.3orkimi-k3, create a dedicated token in theGlmorKimigroup.
Common Troubleshooting
401 Unauthorized/invalid_api_key: Verify there are no trailing spaces in yoursk-...key and confirm the custom Base URL is active (https://byesu.com/v1) rather than hitting default OpenAI servers (OpenAI 401 fix).404 Not Foundon Cascade requests: Ensure the Base URL ends with/v1(https://byesu.com/v1) and does not include/chat/completionsat the end. Also check that you wrote hyphens rather than dots in Claude IDs (claude-sonnet-5-5, notclaude-sonnet-5.5).no available channelerror: Your token group does not match the requested model ID — create a token in the defaultautogroup for Claude/GPT/Gemini/DeepSeek/Grok (no available channel guide).- 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 and weekly 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 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 or Alipay in the console — no monthly gateway subscription and no international card required.