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
- Download the Windows / macOS / Linux client from the Trae website
- Install with the wizard and launch for the first time
- 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
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)
- In the chat window click the current model name → Add Model
- Choose OpenAI as the API format, Custom Configuration, Base URL https://tokenplus.net/v1
- Fill in the TokenPlus model ID and key, then click Add
- 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