Skip to main content

Trae

Trae is an AI-native IDE launched by ByteDance. It features built-in AI conversation and code generation capabilities and supports custom model integration.

Prerequisites

  • You have activated a TCB environment and obtained the environment ID cloudBaseEnvID.

  • Enable the required model in the AI console.

  • Obtain the Base URL and API Key in the AI console.

Configuration Steps

The meanings of each field are as follows:

Field to EnterExplanation
Base URLThe Base URL for the large model, which is obtained in the AI console.
API KeyThe API Key for calling the large model, which is obtained in the AI console.
Model IDThe large model ID. Copy the identifier of an enabled large model from the model list in the AI console and enter it here.
  1. Open Trae, and in the conversation input box, click the Model List Selection button to Add Model.

trae.png

  1. Click Custom Config, enter the Base URL, API Key, and model ID, and save the configuration.

trae2.png

  1. Select an enabled model from the Model List to start a conversation.

trae3.png

Common Error Troubleshooting

Error MessageSolution
Adding Model FailedThe Base URL is entered incorrectly, the API Key is incorrect, or the large model is not enabled in the AI console.