Skip to main content

Trae

Overview​

Trae is an AI coding IDE from ByteDance with built-in smart completion, Chat, and Agent capabilities. Through "Custom Configuration" it connects any OpenAI-compatible service, so you can use TokenPlus's models in chat and the coding agent.

Installation​

  1. Download the Windows / macOS / Linux client from the Trae website
  2. Install with the wizard and launch for the first time
  3. Open any project and click the model selector in the chat window → Add Model

Configure TokenPlus​

Settings → Model → Add Model → Custom Configuration, choose OpenAI Chat Completions as the API format, set the Base URL to the TokenPlus /v1; if "Full URL" is on, fill in up to /chat/completions.

# Trae add custom model (OpenAI Chat Completions)
API format : OpenAI Chat Completions
Custom request URL : https://tokenplus.net/v1 # Full URL off
(or https://tokenplus.net/v1/chat/completions # Full URL on)
Model ID : e.g. gpt-4o, claude-sonnet-4-6
API Key : sk-your-TokenPlus-key
Advanced config : display name / context window / tool-call rounds as needed
tip

If OPENAI_API_KEY / OPENAI_BASE_URL are set in your shell they may interfere with Trae's validation - unset them first before adding. Usually fill the Base URL up to /v1 and keep "Full URL" off.

Quick start (up and running in 5 minutes)​

  1. In the chat window click the current model name → Add Model
  2. Choose OpenAI as the API format, Custom Configuration, Base URL https://tokenplus.net/v1
  3. Fill in the TokenPlus model ID and key, then click Add
  4. Use that model in Chat / Agent and send a test message

FAQ​

  • Cannot find the custom request URL? Upgrade Trae to the latest version first
  • Add / request failed? Check the Key is complete with no spaces, Base URL has /v1, and the model ID matches exactly
  • 401/403? Check key and model permissions, and account balance
Online Service