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

# Connect with TRAE

> Set up TRAE to use Modular Cloud models

This page explains how to run models from Modular Cloud on
[TRAE](https://www.trae.ai/).

## Before you begin

Make sure you have:

* A Modular Cloud [account](https://console.modular.com/signup).
* A Modular Cloud [API key](/administration/api-keys).
* [TRAE](https://www.trae.ai/) installed.

## Add a custom provider

To configure Modular Cloud as a provider in TRAE:

1. Choose the model that you want from our list of
   [shared endpoints](/models) or use a dedicated endpoint if applicable.

2. Open TRAE and go to **Settings > Models**.

3. Select **Add Model > Custom Model**.

4. Fill out the following fields:

   * **API Format**: OpenAI Chat Completions
   * **Base URL**: `https://api.modular.com/v1`
   * **Model ID**: `minimax/minimax-m3`
   * **API Key**: Your Modular Cloud API key

5. Click **Add Model** to save.

Then you can open the model picker in TRAE and select the Modular Cloud model to
use.

<Note>
  To understand the complete list of model settings, see the TRAE documentation on
  [Built-in models & custom models](https://docs.trae.ai/ide/models).
</Note>
