> ## 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.

# MonkeyCode BetterToken setup guide

> Connect BetterToken to MonkeyCode with Codex group model IDs.

MonkeyCode is an enterprise AI development platform. When connecting BetterToken, use the Codex group with an OpenAI-style protocol.

## Prerequisites

* MonkeyCode account ([sign up at MonkeyCode](https://monkeycode.ai))
* BetterToken API Key (register here (`https://www.bettertoken.ai/register`))

## Setup

<Steps>
  <Step title="Log in to MonkeyCode">
    Visit [MonkeyCode](https://monkeycode.ai) and log in.
  </Step>

  <Step title="Open system settings">
    Enter the task page, then click **Settings** in the bottom-right corner.
  </Step>

  <Step title="Bind an AI model">
    In the **AI Model** section, click **Bind**.
  </Step>

  <Step title="Fill in the BetterToken config">
    | Field         | Value                                                                                         |
    | ------------- | --------------------------------------------------------------------------------------------- |
    | Model API URL | `https://www.bettertoken.ai/v1`                                                               |
    | API Key       | your BetterToken API Key                                                                      |
    | API format    | `OpenAI` or `OpenAI Compatible` (follow the current UI label)                                 |
    | Model name    | a **Codex group** model ID copied from the model plaza (`https://www.bettertoken.ai/pricing`) |
  </Step>

  <Step title="Only configure extra headers when the official docs explicitly require them">
    We did not find an official MonkeyCode setup requirement that makes `User-Agent` mandatory for BetterToken. Start with the `Base URL`, API key, and model ID shown on this page.

    If you are also using a custom gateway, tenant routing, observability, or caching layer, add headers only according to that upstream service's official docs.
  </Step>

  <Step title="Save and start using it">
    Click **Save**, then return to the main page and select the model you just configured.
  </Step>

  <Step title="Restart MonkeyCode">
    After saving the config, refresh the page or reopen MonkeyCode before using the new model.
  </Step>
</Steps>

<Note>
  If you need extra headers, follow the current MonkeyCode docs or your upstream gateway requirements instead of assuming `User-Agent` is mandatory for BetterToken.
</Note>
