TRAE with QCode: Windows 11 & macOS walkthrough (install, Claude Code extension, and custom models)

Follow 15 Windows 11 screenshots to install TRAE 3.6.20 on Windows or macOS, skip account sign-in, and set up the Claude Code extension with QCode — plus offline .vsix installation and built-in AI custom model setup.

Updated 2026-11-26

Need an API key? Sign up →Endpoints & base URLs →

On This Page

Follow the 17 steps below to install TRAE 3.6.20 on Windows 11 or macOS, install the Claude Code extension without signing in to a TRAE account, connect it to QCode, and chat with claude-opus-5-5 right inside the editor.

Short answer: Install TRAE 3.6.20, skip sign-in to enter the classic IDE, and install Claude Code for VS Code (published by Anthropic) from the Extensions Marketplace. Set the Windows environment variables ANTHROPIC_BASE_URL (https://api.qcode.cc/api) and ANTHROPIC_AUTH_TOKEN (your cr_ key), create %USERPROFILE%\.claude\config.json containing {"primaryApiKey": "qcode"}, restart TRAE, and click the orange ✳ icon in the top-right corner. If you also want to add a custom model to TRAE's built-in AI, sign in to a TRAE account first and configure it under Settings → Models.

Item Fill in
Anthropic endpoint https://api.qcode.cc/api
OpenAI endpoint (optional, built-in AI) https://api.qcode.cc/openai/v1
Extension config file %USERPROFILE%\.claude\config.json
Key format cr_xxxxxxxx
Recommended default model claude-opus-5-5 or gpt-6.2-sol

Checked on 2026-11-22 · TRAE 3.6.20 · Windows 11

TRAE is an AI-native IDE from ByteDance built on the VS Code core, with built-in Agent and Chat features (the earlier Builder and Builder with MCP modes have been merged into Agent). There are two ways to connect TRAE to QCode:

  • Claude Code extension route (recommended, no TRAE account required): Install Anthropic's official extension, reuse your local Claude Code CLI environment variables and config.json, and connect directly to QCode's Anthropic endpoint.
  • TRAE built-in AI custom model route (requires a TRAE account): Sign in under Settings → Models and add a custom model using either Anthropic Messages or OpenAI Chat Completions format.
  • Applies to: Windows 10 / 11 (64-bit) and macOS; the screenshots were taken on Windows 11
  • Software version: TRAE 3.6.20 (User Setup; Claude Code extension 1.0.127)
  • Screenshots updated: 2026-11
  • Time needed: 15 minutes
  • You will need: Claude Code CLI installed; a QCode API key starting with cr_

On a Mac? Follow the same steps. The screenshots were taken on Windows 11, and TRAE on macOS has the same screens and settings. Download the macOS version from the same official page, press ⌘ Cmd wherever a step says Ctrl, and find the app's menus in the menu bar at the top of the screen.

  • A PC running Windows 10 / 11 (64-bit x64) or a Mac; the installer is about 418 MiB and the user-level install requires no administrator privileges
  • Claude Code CLI is already installed (if not, complete the Installation Guide and Environment Configuration first)
  • You have registered on QCode.cc and copied your cr_ API key from the Dashboard. No account yet? Sign up for QCode first, pick a plan on the pricing page, then create a key in the Dashboard.
  • The PC can reach the official download page (International trae.ai/download or China edition trae.cn/download) as well as api.qcode.cc (users in Mainland China can also switch to the Asia node asia.qcode.cc)
  • Using only the Claude Code extension requires no TRAE account (you can skip sign-in on first launch); only prepare a TRAE account if you plan to configure custom models in TRAE's built-in AI

Download and install

TRAE ships as a standalone Windows 64-bit desktop installer (TRAE-Setup-x64.exe, about 418 MiB) — it does not require Node.js or npm. It runs as a user-level install into %LOCALAPPDATA%\Programs\Trae by default, with no User Account Control (UAC) prompt and no Windows SmartScreen warning.

The International edition (trae.ai/download) and China edition (trae.cn/download; the old domain trae.com.cn redirects automatically to trae.cn) are separate builds with different account systems (the China edition supports Mainland China phone numbers / Douyin, while the International edition uses international accounts). Pick the one for your region and do not mix them.

Europe / Japan

  • Open the International download page trae.ai/download and click the green TRAE for Windows button or Windows (x64) below it to download and install.
  • Use the default api.qcode.cc endpoint for QCode, or choose the nearer us.qcode.cc or asia.qcode.cc node.

Mainland China

  • Open the China edition download page trae.cn/download and click the main TRAE Windows版 button or Windows (x64) below it to download the installer (Mainland China is not on the International edition's availability list, so install the China edition directly; visiting the old address trae.com.cn redirects automatically to trae.cn).
  • The International download page also offers a 前往中国站 ↗ (Go to China site) link in the top-right corner.
  • When configuring QCode environment variables or custom models, users in Mainland China should prefer the Asia node asia.qcode.cc (the same key works across all nodes).

Arab countries

  • Open the International download page trae.ai/download and click TRAE for Windows or Windows (x64) to download and install (check TRAE's official country availability list for exact coverage).
  • Use the default QCode endpoint api.qcode.cc.

Other regions (including Russia / Iran)

  • Open trae.ai/download to check whether the installer downloads normally.
  • Some countries and territories are outside TRAE International's service coverage. If the website or TRAE's built-in AI sign-in is restricted, skip TRAE account sign-in and follow the Claude Code extension route in this guide, or use another tool that accepts a custom Base URL (such as VS Code, Cline, or Claude Code CLI) with QCode.

Follow the screenshots: Windows 11 install and setup

There are 17 steps below, and each step does one thing. On illustrated steps, the orange numbers in the screenshots match ①, ②, ③ in the text one to one. By step 14 you will receive replies from QCode inside TRAE; steps 15–17 cover the optional built-in AI entry point and version check.

Open the official download page and download the Windows 64-bit installer

Open the International download page trae.ai/download in a browser (users in Mainland China can click 前往中国站 ↗ in the top-right corner or go directly to trae.cn/download). Click the green ① TRAE for Windows button in the center, or click ② Windows (x64) in the Desktop list below to start the download (on the China edition page, the main button reads TRAE Windows版).

TRAE official download page trae.ai/download, highlighting the green TRAE for Windows main button in the center (1) and the Windows (x64) link in the Desktop list below (2)

Done right you will see: the download icon in the top-right of the browser starts spinning, and TRAE-Setup-x64.exe (about 418 MiB) appears in your Downloads folder.

Run the installer, accept the license, and install

Double-click TRAE-Setup-x64.exe to open the 安装 - TRAE (User) (Setup - TRAE (User)) wizard. First select ① 我同意此协议(A) (I accept the agreement), then click ② 立即安装(I) (Install) at the bottom right (to change the default install folder, click 自定义安装 / Custom install at the bottom left).

TRAE user-level setup wizard license agreement screen, highlighting the I accept the agreement radio button (1) and the Install button at the bottom right (2)

Done right you will see: the wizard moves straight into the extraction and install progress bar with no administrator (UAC) prompt and no SmartScreen dialog; it finishes in a few dozen seconds.

Finish installation and launch TRAE

Once the progress bar completes, the TRAE 安装完成 (TRAE setup complete) screen appears. Click ① 完成(F) (Finish) at the bottom right to close the wizard and launch TRAE automatically.

TRAE setup complete screen, highlighting the Finish button at the bottom right (1)

Done right you will see: the setup wizard closes, and TRAE's first-launch window opens on the desktop a few seconds later.

Skip account sign-in on first launch

If Windows Security pops up a firewall prompt on first launch, click 取消 (Cancel) — outbound access is unaffected. Next you will see the Build with TRAE onboarding screen offering 个人用户 (Personal) and 企业用户 (Enterprise) sign-in. Using only the Claude Code extension requires no TRAE account, so click ① 跳过 (Skip) at the bottom.

Build with TRAE onboarding window on first launch, highlighting the Skip button at the bottom (1)

Done right you will see: the Build with TRAE sign-in card closes, followed by a feature prompt 想做什么?我来帮你实现; click 先自己探索一下 → (Explore on my own) at the bottom of that popup to enter the main window.

Switch from the Agent window to the IDE editor

After skipping onboarding, TRAE opens in its Agent window rather than the VS Code-style code editor. Click ① IDE ↗ in the top-right corner to open the main TRAE IDE window.

TRAE Agent main window after skipping onboarding, highlighting the IDE switch button in the top-right corner (1)

Done right you will see: a new code editor window titled TRAE opens; you can close the original Agent window behind it.

Switch back to classic IDE view and open Extensions

On first open, the IDE window shows IDE 偏好设置 (IDE Preferences, asking whether to import VS Code settings or install the trae terminal command) — click 跳过 (Skip) at the bottom. If the window starts in SOLO split mode, click the IDE icon to the right of the SOLO tab in the top-left corner to switch back to the classic IDE layout, then close the built-in sign-in sidebar on the right by clicking ×. Once in the classic layout, find and click the ① 扩展 (Extensions) icon at the bottom of the left Activity Bar (or press Ctrl + Shift + X).

TRAE classic IDE workspace, highlighting the Extensions icon at the bottom of the left Activity Bar (1)

Done right you will see: the 扩展: 商店 (Extensions: Marketplace) sidebar opens on the left with a search box at the top.

Stuck? Can't find the Extensions icon on the left Activity Bar

Check whether the top-left of the window is still in SOLO split mode: click the IDE icon to the right of the SOLO tab to switch back to the classic IDE layout, and the left Activity Bar will appear. You can also press Ctrl + Shift + X directly to open the Extensions panel.

Search for and install the "Claude Code for VS Code" extension

Type Claude Code into the ① search box and wait a moment. In the results, find Claude Code for VS Code published by ② Anthropic, then click ③ 安装 (Install) on the right side of that item.

Searching for Claude Code in the TRAE Extensions panel: highlighting the top search box (1), publisher Anthropic (2), and the Install button on the right (3)

Done right you will see: the 安装 (Install) button changes to 正在安装 (Installing) as the extension downloads and installs automatically.

Stuck? Claude Code doesn't show up in the Marketplace or you can't find the official Anthropic release

Skip ahead to the offline .vsix step below to download the Windows x64 package from the VS Code Marketplace and import it manually.

Confirm the extension is installed and the orange ✳ icon appears

Installation finishes in about 10 seconds. Open the Claude Code for VS Code details page and verify the buttons now read ① 禁用 (Disable) and 卸载 (Uninstall) (the Marketplace currently serves version 1.0.127), while an orange ② ✳ icon appears in the editor's top-right toolbar (hovering shows Run Claude Code).

Claude Code for VS Code installed: details page buttons changed to Disable/Uninstall (1), and the orange asterisk icon appears in the top-right editor toolbar (2)

Done right you will see: the extension shows 禁用 (Disable) and 卸载 (Uninstall), and the orange ✳ button appears at the top right — the extension is loaded without needing a restart yet.

(Fallback) Offline install via .vsix if missing from the Marketplace

If the previous step installed cleanly from the Marketplace, skip this step. Only if it is missing from the Marketplace, open the Claude Code extension page in a browser and download the .vsix package for Windows x64 (file name containing @win32-x64). Back in TRAE's Extensions panel, click ⋯ (hover tooltip 更多 / Views and More Actions) in the top-right corner, choose ① 从 VSIX 安装... (Install from VSIX...), and select the downloaded .vsix file (or drag the .vsix directly into the Extensions panel).

TRAE Extensions panel top-right More Actions menu, highlighting the Install from VSIX option (1)

Done right you will see: after selecting the .vsix, a notification at the bottom right confirms installation completed, and the orange ✳ button appears at the top right.

Stuck? The .vsix install won't start or the download fails

Make sure you downloaded the Windows x64 build (file name containing @win32-x64); an arm64 or other platform build will install but not work. If direct access to the VS Code Marketplace fails from your network, download the .vsix over a working proxy, copy it to this PC, and install it locally. See "Offline .vsix download URL" below for the full URL template.

Configure the QCode endpoint and API key (environment variables)

The Claude Code for VS Code extension in TRAE launches your locally installed Claude Code CLI and reads the QCode endpoint and API key from your user environment variables. On Windows, press Win + X to open Terminal (PowerShell) and run the two commands below to save the endpoint and your cr_ key as user-level environment variables (replace cr_xxxxxxxx with your own key, and do not add a trailing /):

[Environment]::SetEnvironmentVariable('ANTHROPIC_BASE_URL', 'https://api.qcode.cc/api', 'User')
[Environment]::SetEnvironmentVariable('ANTHROPIC_AUTH_TOKEN', 'cr_xxxxxxxx', 'User')
  • Optional nearer ingress points: Users in Mainland China can switch the hostname to the Asia node https://asia.qcode.cc/api, and users in North America / Europe can use https://us.qcode.cc/api — the same key works on all nodes.
  • If you already completed the Installation Guide and Environment Configuration and running claude in a terminal works normally, just verify the values and move on.
Need an API key?

If you do not have a QCode account yet, Sign up first. If you prefer to pay by usage, buy a Pay-as-you-go Pack first, then create a key in the Dashboard. Copy the entire string starting with cr_, replace cr_xxxxxxxx in the command above, and run it. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see Payment methods.

Done right you will see: both commands finish without errors, and opening a new PowerShell window and running echo $env:ANTHROPIC_BASE_URL prints https://api.qcode.cc/api.

Create config.json in Notepad and write primaryApiKey

Close all TRAE windows first. Open Windows Notepad, create or open ① config.json inside %USERPROFILE%\.claude (note that the file name is config.json, not settings.json; if the .claude folder does not exist yet, create it manually), enter the JSON below in the editor body ②, and confirm the encoding in Notepad's bottom-right status bar reads UTF-8:

{
  "primaryApiKey": "qcode"
}

Windows 11 Notepad editing config.json: highlighting the top tab config.json (1) and the primaryApiKey JSON content in the editor body (2)

Done right you will see: valid JSON with straight double quotes (no curly quotes or missing braces) in Notepad, and UTF-8 in the bottom status bar. The value of primaryApiKey can be any non-empty string such as qcode; actual authentication still uses ANTHROPIC_AUTH_TOKEN from the previous step.

Save as "All Files (.)" so it doesn't become config.json.txt

In Notepad, press Ctrl + Shift + S to open the Save As dialog and navigate to %USERPROFILE%\.claude. Enter config.json in ① 文件名(N) (File name), be sure to change ② 保存类型(T) (Save as type) from the default 文本文档(*.txt) (Text Documents) to 所有文件 (*.*) (All Files), confirm 编码 (Encoding) at the bottom right is UTF-8, and click ③ 保存(S) (Save).

Notepad Save As dialog: highlighting File name config.json (1), Save as type set to All Files (*.*) (2), and the Save button at the bottom right (3)

Done right you will see: the dialog closes and Notepad's top tab title reads config.json (with no trailing .txt).

Stuck? Save says the file already exists, or you can't find the .claude folder

If an older config.json already exists with other fields, keep the existing fields and add "primaryApiKey": "qcode" rather than overwriting the entire file. If you cannot find the .claude folder, type %USERPROFILE%\.claude in the Save As address bar and press Enter (if the path does not exist, open %USERPROFILE% and create a new folder named .claude first).

Verify the config.json file extension in File Explorer

Open File Explorer, type %USERPROFILE%\.claude into the ① address bar at the top, and press Enter. Click ② 查看 (View) → 显示 (Show) → check 文件扩展名 (File name extensions), then verify row ③ in the list: the file name must display as config.json and the 类型 (Type) column on the right must read JSON 文件 (JSON File).

Windows 11 File Explorer checking the .claude folder: highlighting the address bar (1), the top View menu (2), and the config.json (JSON File) row in the list (3)

Done right you will see: the list clearly shows config.json with type JSON 文件 (JSON File), rather than config.json.txt (Text Document).

Stuck? The file name shows config.json.txt

Right-click the file, choose 重命名 (Rename), remove the trailing .txt, press Enter, and click 是 (Yes) when Windows warns that changing a file name extension may make the file unusable.

Restart TRAE, launch Claude Code, and get a reply via QCode

Reopen TRAE and open a project folder; if prompted with 您是否信任此文件夹中文件的作者? (Do you trust the authors of the files in this folder?), click 是,我信任此作者 (Yes, I trust the authors). Next, click the orange ✳ icon in the top-right editor toolbar (or press Ctrl + Shift + P to open the Command Palette and run Run Claude Code — do not press Ctrl + Esc on Windows, as Windows intercepts it and opens the Start menu). On first launch inside the terminal, if prompted to trust the workspace, press ↓ to select Yes, I trust this folder and press Enter. Once ① at the top shows Opus 5.5 · API Usage Billing, send a short prompt (such as 你好,请用一句话介绍你自己 or a brief English greeting) and press Enter — moments later a reply returned through QCode appears at ②.

Claude Code terminal tab running inside TRAE IDE: highlighting the model status line Opus 5.5 · API Usage Billing (1) and the first line of the reply returned via QCode (2)

Done right you will see: the embedded terminal tab shows the active model status (such as Opus 5.5 · API Usage Billing) and outputs a complete reply within a few seconds. To double-check that requests routed through QCode, open probe.qcode.cc and paste the same key to see the 200 request log you just made.

Stuck? Pressing Ctrl + Esc opens the Windows Start menu, or the panel stays blank

Windows reserves Ctrl + Esc globally to open the Start menu, so TRAE never receives it. Click the orange ✳ icon in the top-right editor toolbar instead, or press Ctrl + Shift + P and run Run Claude Code. If launch says not logged in or connection failed, go back to the previous steps and verify that the environment variables are set, TRAE was completely closed and reopened, and config.json was not accidentally saved as config.json.txt or settings.json.

(Optional) Inspect TRAE's built-in AI custom model entry

If you only need the Claude Code extension, everything is already working. If you also want to add QCode as a custom model for TRAE's built-in AI (Agent / Chat), click ⚙ (Settings) in the top toolbar and select ① 模型 (Models) in the left navigation. When you are not signed in to a TRAE account, the right side shows only a ② 登录 (Sign in) button with no skip or offline API key form — using the built-in AI route requires clicking ② 登录 (Sign in) with your own TRAE account first.

TRAE Settings page with Models selected on the left (1), showing only a Sign in button in the built-in AI custom model area on the right when signed out (2)

Done right you will see: you have located the built-in AI custom model entry under Settings → Models. Close Settings if you do not need the built-in AI, or sign in to your TRAE account and continue to the last step to fill in the form.

Check your current TRAE version

Scroll to the bottom of the left sidebar in the same Settings window and click 关于 TRAE (About TRAE). At ① on the right, confirm the software version is 3.6.20 (2026-11-14 build) or newer — helpful if you ever need to troubleshoot UI differences or extension compatibility.

TRAE Settings About TRAE page, highlighting version number 3.6.20 (2026-11-14) (1)

Done right you will see: the page clearly displays 版本: 3.6.20 (Version: 3.6.20, or newer) and the release date.

(Optional, after signing in) Add a QCode custom model in built-in AI

After signing in to your TRAE account, go to Settings → Models → Add model → Custom model, choose the API format for the model you want to use, and fill in the fields (recommended: turn off the "Full URL" toggle and enter the base URL with no trailing /):

  • For Claude models: Choose Anthropic Messages as the API format, set the request URL to https://api.qcode.cc/api, set the model ID to claude-opus-5-5 (or claude-haiku-5-5 for lighter tasks), and enter your cr_xxxxxxxx API key.
  • For GPT or Chinese models: Choose OpenAI Chat Completions as the API format, set the request URL to https://api.qcode.cc/openai/v1, set the model ID to gpt-6.2-sol (or gpt-6.2-astra for advanced reasoning; see qcode.cc/models for Chinese model IDs), and enter your cr_xxxxxxxx API key.

After saving, return to the built-in AI chat panel, turn off Auto mode first (Auto mode never calls custom models), select the model you just added from the dropdown, and send a message to confirm it replies normally.

Done right you will see: your newly added custom model appears in the built-in AI model selector, and after turning off Auto and picking it, you receive normal replies.

Verify it works

When all of the following are true, TRAE is connected to QCode:

  • TRAE 3.6.20 is installed, you are in the classic IDE layout, and Anthropic's official Claude Code for VS Code extension is installed;
  • %USERPROFILE%\.claude\config.json has type JSON 文件 (JSON File — not .json.txt or settings.json), and the Windows user environment variables ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN are active;
  • Clicking the orange ✳ icon in the top right of TRAE or running Run Claude Code from the Command Palette and sending a greeting returns a reply via QCode (running claude directly in TRAE's integrated terminal also works, and probe.qcode.cc shows the matching 200 request record for the same key);
  • If you also configured a custom model in built-in AI: you are signed in to a TRAE account, Auto mode is turned off, and selecting your custom model in the model picker returns normal replies.

All done

You can now code with the Claude Code extension (and optional built-in AI custom models) through QCode in TRAE on Windows 11. From here you can:

Common errors

Error message Why What to do
claude : The term 'claude' is not recognized as the name of a cmdlet Claude Code CLI is not installed on this PC, or its install directory %USERPROFILE%\.local\bin is missing from user PATH Follow the Installation Guide to install Claude Code CLI, confirm %USERPROFILE%\.local\bin is in your user PATH, then completely close and restart TRAE
Not logged in · Please run /login ANTHROPIC_AUTH_TOKEN is not set, TRAE was not restarted after changing environment variables, or config.json is missing / saved as config.json.txt or settings.json Verify user environment variables ANTHROPIC_BASE_URL=https://api.qcode.cc/api and ANTHROPIC_AUTH_TOKEN=cr_xxxxxxxx are active, confirm %USERPROFILE%\.claude\config.json really has the .json extension, then completely close and restart TRAE
⚠Auth conflict: Both a token (ANTHROPIC_AUTH_TOKEN) and an API key (/login managed key) are set. Old /login credentials coexist with QCode's ANTHROPIC_AUTH_TOKEN and conflict with each other Run claude /logout in a terminal to clear the old login credentials, keep only QCode's ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL, then reopen Claude Code
{"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"}} The QCode key was placed in ANTHROPIC_API_KEY instead of ANTHROPIC_AUTH_TOKEN, or the key is incomplete, has leading/trailing spaces, or has expired Delete or clear ANTHROPIC_API_KEY, put the full cr_ key into ANTHROPIC_AUTH_TOKEN with no extra spaces, and verify ANTHROPIC_BASE_URL is https://api.qcode.cc/api
{"error":{"message":"Invalid URL (POST /v1/v1/messages)","type":"invalid_request_error","param":"","code":""}} ANTHROPIC_BASE_URL includes an extra /v1 at the end (e.g. https://api.qcode.cc/api/v1), so the client appends /v1/messages a second time Change ANTHROPIC_BASE_URL to https://api.qcode.cc/api (https://asia.qcode.cc/api in Mainland China) with no trailing /v1 and no trailing /, then restart TRAE
There's an issue with the selected model (name). It may not exist or you may not have access to it. The model ID is misspelled, not offered by QCode, or ANTHROPIC_BASE_URL has an extra /v1 Confirm ANTHROPIC_BASE_URL does not end with /v1, and run /model inside Claude Code to switch to an available QCode model (claude-opus-5-5 recommended by default; claude-haiku-5-5 for lighter tasks)

FAQ

Why does pressing Ctrl + Esc on Windows open the Start menu instead of Claude Code?

Ctrl + Esc is a global Windows shortcut reserved to open the Start menu, so the OS intercepts it before it reaches TRAE. On Windows, click the orange ✳ (Run Claude Code) icon in the top-right editor toolbar, or press Ctrl + Shift + P to open the Command Palette and run Run Claude Code.

Do I have to sign in to a TRAE account to use the Claude Code extension?

No. On first launch, click 跳过 (Skip) at the bottom of Build with TRAE, then click 先自己探索一下 → (Explore on my own) to reach the main window, and click IDE ↗ in the top-right corner to open the editor and install the Claude Code extension. A TRAE account is only needed if you want to configure custom models under Settings → Models → Custom model for TRAE's built-in AI.

What if config.json is written but Claude Code still won't open or keeps asking to log in?

Check four things in order:

  1. Confirm the file path is %USERPROFILE%\.claude\config.json (i.e. C:\Users\<YourUsername>\.claude\config.json), not settings.json.
  2. In File Explorer, enable View → Show → File name extensions and verify Notepad did not save it as config.json.txt.
  3. Check that the file contains valid JSON (straight double quotes, UTF-8 encoding).
  4. After editing environment variables or config.json, run claude in a terminal first to verify the CLI itself works, then completely close and restart TRAE (closing the last window quits the app by default).

What if Claude Code isn't found in the Marketplace or the .vsix downloads slowly?

If Anthropic's official Claude Code for VS Code does not appear in TRAE's Marketplace, use the offline .vsix route: download the Windows x64 .vsix (file name containing @win32-x64) from the VS Code Marketplace, then import it via ⋯ → Install from VSIX... at the top right of the Extensions panel (or drag it straight into the Extensions panel). If direct access to the Marketplace is slow or fails, download the .vsix over a reliable proxy and copy it to your machine to install.

Why isn't my custom model working in TRAE's built-in AI?

TRAE's Auto mode never calls custom models. Turn off Auto in the built-in AI chat bar first, then manually select your custom model from the model dropdown. Also check that the Full URL toggle matches the address you entered (turning Full URL off and entering the base URL https://api.qcode.cc/api or https://api.qcode.cc/openai/v1 is recommended).

How do I change TRAE's interface language or turn off the floating ball on the desktop?

Click ⚙ (Settings) in the top toolbar:

  • Switch language: General → Basic Settings → Language (defaults automatically to Simplified Chinese on Chinese Windows 11).
  • Disable the desktop floating ball: toggle it off under Desktop Floating Ball (桌面悬浮球).
  • Confirm quit behavior: General → Preferences → When closing the last window defaults to Quit application (退出应用), so closing the main window exits TRAE cleanly with no background tray process left behind.

What happens when my key expires?

Two cases:

  • A personal plan key cannot be renewed when it expires — open a new plan and switch to a new key.
  • For a pay-as-you-go pack, buy another pack after the key expires and the same key recovers automatically.

If you switch to a new key, run the PowerShell command to update ANTHROPIC_AUTH_TOKEN and restart TRAE (if you also configured a custom model in built-in AI, update the key under Settings → Models too).

Connection overview

Item Details
Available models Claude ✅ (Claude Code extension, and built-in AI with Anthropic Messages format) · GPT ✅ · Chinese models ✅ (built-in AI with OpenAI Chat Completions format) · Gemini ❌
Protocol and Base URL Anthropic: https://api.qcode.cc/api · OpenAI: https://api.qcode.cc/openai/v1
Recommended default models Anthropic: claude-opus-5-5 (lighter option: claude-haiku-5-5) · OpenAI: gpt-6.2-sol (top-tier option: gpt-6.2-astra)
Config location Claude Code extension: user environment variables + ~/.claude/config.json; built-in AI: sign in to TRAE, then go to Settings → Models → Custom model
Official docs docs.trae.ai

Other ingress points

All three ingress domains point to the same service and share the same cr_ key — replace only the hostname in the Base URL and keep the path unchanged (no trailing /):

Node Anthropic Base URL OpenAI Base URL
Global (first choice outside Mainland China) https://api.qcode.cc/api https://api.qcode.cc/openai/v1
Asia (first choice in Mainland China) https://asia.qcode.cc/api https://asia.qcode.cc/openai/v1
North America / Europe https://us.qcode.cc/api https://us.qcode.cc/openai/v1

See Endpoints and API Formats for full ingress and path details.

Relationship with TRAE's built-in AI

TRAE's built-in AI (Agent and Chat, with the earlier Builder and Builder with MCP merged into Agent) accepts custom models, provided you sign in to a TRAE account first. Both integration methods coexist without interfering with each other:

Capability TRAE built-in AI (custom model) Claude Code extension
TRAE account required Yes, requires signing in to a TRAE account No (click Skip on first launch)
Protocol Anthropic Messages or OpenAI Chat Completions Anthropic Messages
Entry point Settings → Models → Add model → Custom model Extensions panel install + environment variables & ~/.claude/config.json
Endpoint URL Turn off Full URL and enter the base URL (recommended); or turn on Full URL and enter the full endpoint path ANTHROPIC_BASE_URL environment variable
Caveat Auto mode never calls custom models — exit Auto and pick the model manually Independent of built-in AI; shares configuration with the terminal CLI

Here is how QCode endpoints map onto built-in AI custom models (leaving the Full URL toggle off and entering the base URL is recommended so paths are neither duplicated nor truncated):

API format Full URL off (base URL, recommended) Full URL on
Anthropic Messages https://api.qcode.cc/api https://api.qcode.cc/api/v1/messages
OpenAI Chat Completions https://api.qcode.cc/openai/v1 https://api.qcode.cc/openai/v1/chat/completions
  • Model ID: For Anthropic format, claude-opus-5-5 is recommended (lighter option: claude-haiku-5-5); for OpenAI format, gpt-6.2-sol is recommended (advanced option: gpt-6.2-astra). See qcode.cc/models for the full catalog and Chinese model IDs, and copy them character for character.
  • API key: Enter your QCode key starting with cr_ (placeholder example: cr_xxxxxxxx).

If Claude is your main coding driver, the Claude Code extension route is recommended: it needs no vendor account sign-in and stays consistent with the terminal CLI.

Offline .vsix download URL and multi-platform config.json

Advanced offline .vsix notes

If Claude Code does not appear in TRAE's built-in Marketplace, or the latest extension release requires newer VS Code APIs than TRAE exposes, open Version History on the Claude Code extension page, pick a compatible release, and construct the .vsix download URL from itemName and version:

https://marketplace.visualstudio.com/_apis/public/gallery/publishers/<publisher>/vsextensions/<extension>/<version>/vspackage

For Claude Code, the path is publishers/anthropic/vsextensions/claude-code/<version>/vspackage (if Download Extension appears in the right sidebar of the page, you can click it directly as well).

  • Match your platform architecture: Claude Code is published per platform (file names carry suffixes like @win32-x64 or @alpine-arm64; Windows and Linux split x64 / arm64, and macOS splits Apple Silicon / Intel). Installing the wrong architecture will install without working.
  • Two offline import methods: Click ⋯ → Install from VSIX... at the top right of TRAE's Extensions panel and choose the .vsix, or drag the .vsix directly into the Extensions panel to install automatically.

Multi-platform config.json setup

TRAE and VS Code read the same ~/.claude/config.json. If you use TRAE on macOS or Linux, create that file for your OS (remember the file name is config.json, not settings.json; even if you already created it for VS Code, make sure ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN in your terminal environment point to QCode):

Windows

Edit or create C:\Users\<YourUsername>\.claude\config.json (i.e. %USERPROFILE%\.claude\config.json):

{
  "primaryApiKey": "qcode"
}

macOS

Edit or create ~/.claude/config.json:

mkdir -p ~/.claude

cat > ~/.claude/config.json << 'EOF'
{
  "primaryApiKey": "qcode"
}
EOF

Linux

Edit or create ~/.claude/config.json:

mkdir -p ~/.claude

cat > ~/.claude/config.json << 'EOF'
{
  "primaryApiKey": "qcode"
}
EOF

Shortcuts, common features, and settings

Launch methods and keyboard shortcuts

Action Windows macOS
Launch Claude Code Click the orange ✳ icon in the top-right editor toolbar, or press Ctrl + Shift + P and run Run Claude Code (do not press Ctrl + Esc, which opens the Windows Start menu) Cmd + Esc, or Cmd + Shift + P and run Run Claude Code
Open Command Palette Ctrl + Shift + P Cmd + Shift + P
Open Extensions panel Ctrl + Shift + X Cmd + Shift + X
Open editor Settings Ctrl + , Cmd + ,

If Cmd + Esc on macOS is captured by TRAE's built-in Agent / Chat, open Settings → Keyboard Shortcuts, search for Claude Code, and rebind Claude Code: Toggle Panel to a non-conflicting key.

Common features

  1. Code explanation: Select code, open Claude Code, and ask "Explain this code."
  2. Code generation: Open Claude Code, describe the feature you need, review the output, and apply the changes.
  3. Code refactoring: Select code to refactor, ask Claude for a refactoring plan, and preview the diff.
  4. Error fixing: When you hit an error, send the relevant code or terminal output to Claude to diagnose and fix.

Common extension settings

Press Ctrl + , (Cmd + , on macOS) to open Settings and search for Claude Code to adjust extension behavior (shared with VS Code):

{
  "claude-code.autoSuggest": true,
  "claude-code.inlineChat": true
}

Using with the terminal CLI

The Claude Code extension in TRAE and the standalone claude CLI in your terminal share the same ~/.claude configuration and environment variables, so you can combine them by task:

Scenario Recommended tool
Quick code edits TRAE extension
Complex project analysis Terminal CLI
Code review Either
Git operations Terminal CLI
File generation Either

Get started with QCode

One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models

Enterprise →