---
url: 'https://docs.byesu.com/en/clients/trae.md'
description: >-
  Add byesu as a custom OpenAI-compatible provider in Trae IDE: run Claude 5.5,
  GPT-6.2, Gemini 4, and DeepSeek V4 in Builder & Chat with Alipay or USDT.
---

# Connect Trae IDE to byesu API

> **Key facts**: Add a **Custom / OpenAI Compatible** model in Trae IDE (`Models → Add Model`) with Base URL `https://byesu.com/v1` and an **`auto`** group `sk-...` key to run `claude-opus-5-5`, `claude-sonnet-5-5`, `gpt-6.2-sol`, `gemini-4-argon`, and `deepseek-v4-pro` in **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](https://byesu.com)** unlocks five major model families through a single pay-as-you-go API key.

::: tip 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 default **`auto`** group ([Create account & token](https://byesu.com/register))
* **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](/en/tools/config-generator)**.

## Step-by-Step Setup in Trae IDE

1. **Generate an `auto` token**: Sign in to the [byesu Console](https://byesu.com/register), open **Tokens**, and issue a key (`sk-...`) in the default **`auto`** group ([Choosing a Token Group](/en/guide/groups)).
2. **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**.
3. **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
   ```
4. **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`, and `deepseek-v4-pro`.
5. **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`](/en/models/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`](/en/models/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`](/en/models/gpt-6-2) | Deep reasoning generation for database migrations, concurrency audits, and API contracts |
| **Chat** — reading huge logs, PDFs, or screenshots | [`gemini-4-argon`](/en/models/gemini-4-argon) | 1M-token multimodal context window |
| **Chat & Bulk Tasks** — unit tests, translations & boilerplate | [`deepseek-v4-pro`](/en/models/deepseek-v4) | `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)](/en/guide/pay-with-usdt)**.
* **Transparent pay-as-you-go billing**: Text and coding models bill strictly per token consumed using transparent multipliers (including cache reads down to `0.1x` where 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](/en/clients/windsurf)**, **[Zed Editor](/en/clients/zed)**, and the tools compared in **[Cursor vs Claude Code vs Cline](/en/compare/cursor-vs-claude-code-vs-cline)**.

## Troubleshooting

* **`401 invalid_api_key` during Add Model check**: Confirm your key starts with `sk-` without extra whitespace and Base URL is set to `https://byesu.com/v1` ([OpenAI 401 fix](/en/errors/openai-api-401-invalid-api-key)).
* **`404` or 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 the **`auto`** group (`glm-5.3` and `kimi-k3` require `Glm` and `Kimi` group tokens respectively; see [no available channel](/en/errors/no-available-channel-error)).
* **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](/en/articles/llm-api-latency-uptime-december-2026)** and [weekly benchmarks](https://byesu.com/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](https://byesu.com/register) account covers Claude, GPT, Gemini, Grok, and DeepSeek, and you can top up directly via Alipay or [USDT](/en/guide/pay-with-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.

## Related Guides & Tools

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