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

# Codex

> Use the latest MiniMax M-series models for AI programming in the Codex desktop app.

<div style={{background:"#fffbeb",borderLeft:"4px solid #d97706",padding:"12px 16px",borderRadius:"6px",margin:"16px 0"}}>[**Codex**](https://developers.openai.com/codex/) is OpenAI's official AI coding agent for the desktop.</div>

## Install Codex

Download and install the Codex desktop app from the [OpenAI Codex page](https://developers.openai.com/codex/).

## Configure MiniMax API

<Steps>
  <Step title="Edit the config file">
    Open `~/.codex/config.toml` and add the following, replacing `<MINIMAX_API_KEY>` with your key from the [MiniMax Developer Platform](https://platform.minimax.io/user-center/payment/token-plan):

    ```toml theme={null}
    model = "MiniMax-M3"
    model_provider = "minimax"
    model_context_window = 512000

    [model_providers.minimax]
    name = "MiniMax"
    base_url = "https://api.minimax.io/v1"
    experimental_bearer_token = "<MINIMAX_API_KEY>"
    wire_api = "responses"
    ```
  </Step>

  <Step title="Restart Codex and start using MiniMax-M3">
    Restart Codex — MiniMax-M3 is now ready to use.
  </Step>
</Steps>
