Connect Trae IDE to byesu API
Key facts: Add a Custom / OpenAI Compatible model in Trae IDE (
Models → Add Model) with Base URLhttps://byesu.com/v1and anautogroupsk-...key to runclaude-opus-5-5,claude-sonnet-5-5,gpt-6.2-sol,gemini-4-argon, anddeepseek-v4-proin Builder and Chat modes — payable via Alipay or USDT without separate vendor accounts.
Trae IDE pairs multi-file autonomous Builder workflows with inline Chat assistance. When built-in model queues are congested or you need specific frontier releases across multiple labs, wiring Trae's custom OpenAI-compatible provider to byesu unlocks five major model families through a single pay-as-you-go API key.
Quick configuration
- Menu path:
Settings (⚙️) → Models → + Add Model → Provider: Custom / OpenAI Compatible - Base URL:
https://byesu.com/v1(keep/v1, do not append/chat/completions) - API Key:
sk-...token created in the defaultautogroup (Create account & token) - Model IDs:
claude-opus-5-5,claude-sonnet-5-5,gpt-6.2-sol,gemini-4-argon,deepseek-v4-pro
You can also generate copy-paste blocks for Trae alongside your CLI and SDK tools in the AI Client & SDK Config Generator.
Step-by-Step Setup in Trae IDE
- Generate an
autotoken: Sign in to the byesu Console, open Tokens, and issue a key (sk-...) in the defaultautogroup (Choosing a Token Group). - Open Trae model management: Click the settings gear icon in the top-right corner of the Trae AI sidebar (or open Trae Settings) and select Models.
- Add a custom OpenAI-compatible model: Click + Add Model and fill in:text
Provider: Custom / OpenAI Compatible Base URL: https://byesu.com/v1 API Key: sk-your-byesu-token Model ID: claude-sonnet-5-5 - Add additional frontier models: Repeat + Add Model with the exact same Base URL and API Key to add
claude-opus-5-5,gpt-6.2-sol,gemini-4-argon, anddeepseek-v4-pro. - Switch models in Builder or Chat: Open the Builder or Chat tab, pick your custom model from the bottom model selector, and prompt Trae to scaffold or refactor files across your workspace.
Picking the Right Model for Builder vs Chat
| Trae Mode & Task | Recommended Model ID | Why It Fits |
|---|---|---|
| Builder — multi-file feature scaffolding & complex bug fixes | claude-opus-5-5 | 99.99% production uptime and strongest multi-step tool reliability across large repositories |
| Builder & Chat — fast interactive edits & UI components | claude-sonnet-5-5 | 1.90s median TTFT (99.97% uptime) keeps file-edit loops responsive |
| Builder / Spec Review — architectural trade-offs & edge cases | gpt-6.2-sol | Deep reasoning generation for database migrations, concurrency audits, and API contracts |
| Chat — reading huge logs, PDFs, or screenshots | gemini-4-argon | 1M-token multimodal context window |
| Chat & Bulk Tasks — unit tests, translations & boilerplate | deepseek-v4-pro | 99.90% uptime with zero-surcharge automatic prefix caching |
Why Teams Pair Trae IDE with byesu
- Zero vendor fragmentation or card barriers: Instead of juggling separate Anthropic, OpenAI, Google, and DeepSeek dashboards (many requiring regional phone numbers or international credit cards), fund one balance via Alipay or USDT (TRC20 / BEP20).
- Transparent pay-as-you-go billing: Text and coding models bill strictly per token consumed using transparent multipliers (including cache reads down to
0.1xwhere supported), with live rates visible in the console after sign-in and itemized per-request logs. - Cross-editor portability: Your exact same
sk-...key also works in Windsurf IDE, Zed Editor, and the tools compared in Cursor vs Claude Code vs Cline.
Troubleshooting
401 invalid_api_keyduring Add Model check: Confirm your key starts withsk-without extra whitespace and Base URL is set tohttps://byesu.com/v1(OpenAI 401 fix).404or connection check failure: Make sure Base URL ends with/v1(https://byesu.com/v1) and not/v1/chat/completions. Verify Claude model names use hyphens (claude-opus-5-5).no available channel: Ensure your token was created in theautogroup (glm-5.3andkimi-k3requireGlmandKimigroup tokens respectively; see no available channel).- Long thinking pause on
gpt-6.2-sol: Deep reasoning models think before emitting their first visible token — compare live p50 and p95 latency in our December 2026 Production Latency & Uptime Report and weekly benchmarks.
FAQ
How do I add a custom OpenAI-compatible model provider in Trae IDE?
Go to Models → + Add Model, pick Custom / OpenAI Compatible, enter Base URL https://byesu.com/v1 and your sk-... token (auto group), and specify exact console model IDs such as claude-sonnet-5-5 or gpt-6.2-sol.
Can Trae Builder mode and Chat mode both use custom byesu models?
Yes. Verified custom models appear in the model picker for both Builder (autonomous file editing and terminal execution) and Chat.
Do I need separate vendor accounts or an international credit card?
No. One byesu account covers Claude, GPT, Gemini, Grok, and DeepSeek, and you can top up directly via Alipay or USDT.
Why does Trae fail model verification with 404 or no available channel?
404 indicates a malformed Base URL (use https://byesu.com/v1 exactly), while no available channel means either a misspelled model ID or a token group mismatch.