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

# TRAE BetterToken setup guide

> Connect BetterToken to TRAE with Codex group model IDs.

When connecting BetterToken to TRAE, choose an OpenAI-style provider and use a model ID from the Codex group.

## Prerequisites

* BetterToken API Key (register here (`https://www.bettertoken.ai/register`))

## Setup

<Steps>
  <Step title="Open settings">
    In **IDE** mode, click the **Settings** icon in the upper-right corner to open the settings center.

    You can also open **SOLO** mode and click the **Settings** icon in the upper-right corner of the chat panel.
  </Step>

  <Step title="Open the model panel">
    In the left navigation, choose **Model** to open the **Model** panel.
  </Step>

  <Step title="Add a model">
    Click **+ Add model**.

    <img src="https://mintcdn.com/bettertoken-d796114e/_RpW3xYnOZ6jRVeT/images/trae/add-model.png?fit=max&auto=format&n=_RpW3xYnOZ6jRVeT&q=85&s=4b04ae68f50fac3a61b77c5560624d39" alt="The TRAE model panel with the settings entry, model navigation item, and add model button highlighted." width="3024" height="1898" data-path="images/trae/add-model.png" />
  </Step>

  <Step title="Fill in the model configuration">
    When the **Add model** window appears, fill in the fields as follows:

    | Field              | Value                                                                                         |
    | ------------------ | --------------------------------------------------------------------------------------------- |
    | Provider           | `OpenAI`                                                                                      |
    | Model              | `Custom model`                                                                                |
    | Model ID           | a **Codex group** model ID copied from the model plaza (`https://www.bettertoken.ai/pricing`) |
    | API key            | your API Key copied from the BetterToken console                                              |
    | Custom request URL | `https://www.bettertoken.ai/v1/chat/completions`                                              |

    <img src="https://mintcdn.com/bettertoken-d796114e/_RpW3xYnOZ6jRVeT/images/trae/model-config.png?fit=max&auto=format&n=_RpW3xYnOZ6jRVeT&q=85&s=9d64f161c2f635efa757e56f9355cd97" alt="The TRAE add model window with OpenAI selected, a custom model selected, and fields for model ID, API key, and custom request URL." width="1638" height="1686" data-path="images/trae/model-config.png" />
  </Step>

  <Step title="Save and start using it">
    Click **Confirm** to save the configuration, then choose the new Codex group model.
  </Step>
</Steps>

<Note>
  BetterToken only supports TRAE through **Codex group** models. Do not use fixed Claude model names, and do not set the custom request URL to `https://www.bettertoken.ai/v1`.
</Note>
