> ## Documentation Index
> Fetch the complete documentation index at: https://docs.llmrouter.app/llms.txt
> Use this file to discover all available pages before exploring further.

# TRAE

> Configure TRAE IDE to use LLM Router for intelligent routing, Skills, Zero Data Retention, and optimized AI-assisted coding.

***

## Documentation Index

Fetch the complete documentation index at:\
**[https://docs.llmrouter.app/llms.txt](https://docs.llmrouter.app/llms.txt)**

Use this file to discover all available models, tags, and features before exploring further.

# TRAE Integration

TRAE (/treɪ/) is a developer-friendly IDE that offers AI Q\&A, inline code completion, and powerful agentic programming workflows.

Connecting TRAE to **LLM Router** gives you access to intelligent tag-based routing, automatic Skill injection, context optimization, Zero Data Retention (ZDR), and significant cost savings.

## Step 1: Install and Launch TRAE

**1. Download and Install**

Go to the [TRAE website](https://www.trae.ai) and download & install TRAE.

**2. First Launch**

On first launch, you will see the setup screen. Click **Get Started** to
begin the setup.

## Step 2: Configure LLM Router in TRAE

Use your LLM Router API key to add models from LLM Router.

**1. Open Models**

In the chat sidebar, click the **Settings** icon at the top-right, then go to **Models**.

**2. Add Custom Model**

Click **+ Add Model** to open the model creation dialog.

**3. Enter Configuration Details**

* **Provider**: Select **OpenAI Compatible** (or **OpenAI** if available)
* **Base URL**: `https://api.llmrouter.app/v1`
* **API Key**: Enter your **LLM Router API Key** (`sk_llmr_...`)
* **Model**: Enter any supported model in provider/model format, for example:
  * `anthropic/claude-opus-4.6`
  * `openai/gpt-5.4`
  * `google/gemini-3.1-pro`
  * `xai/grok-4.20`

> [!TIP]
>
> You can configure default routing rules, tags (e.g. `coding`, `ui design`, `testing`), Skills, and Zero Data Retention directly in the **LLM Router Dashboard**.

**4. Validate and Save**

Click **Add Model**. TRAE will validate the connection.\
Once successful, your model will appear and can be selected for use.

## Step 3: Get Started with TRAE + LLM Router

* Select your LLM Router model in TRAE.
* Start coding with AI assistance for:
  * Feature implementation
  * Code generation and refactoring
  * Debugging and explanations
  * Agentic workflows and automation

Routing behavior, Skills, and privacy settings (like ZDR) are controlled via your **LLM Router Dashboard** and will apply automatically.

## FAQ

### Routing & Configuration

Routing rules, tags, and features like Zero Data Retention are managed in the **LLM Router Dashboard**. Any changes made there will automatically affect requests from TRAE.

### Connection Issues

* Double-check that your LLM Router API key is correct and active.
* Ensure the Base URL is set exactly to `https://api.llmrouter.app/v1`
* Verify your internet connection.
* If issues persist, check the error message shown in TRAE.

## Resources

* **TRAE Website**: [trae.ai](https://www.trae.ai)
* **LLM Router Dashboard**: Log in to manage your API keys, tags, Skills, and routing settings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.