Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - From MiniMax and Aider docs

Use MiniMax in Aider

Aider's documented OpenAI-compatible path (OPENAI_API_BASE + OPENAI_API_KEY, model prefixed with openai/) combined with MiniMax's documented OpenAI-compatible base URL https://api.minimax.io/v1.

Last verified 3 steps3 official sources

Steps

  1. Step 1.

    Install aider.

    Terminal
    python -m pip install aider-install
    aider-install
  2. Step 2.

    Configure your API key and endpoint using MiniMax's OpenAI-compatible base URL.

    Terminal
    # Mac/Linux:
    export OPENAI_API_BASE=https://api.minimax.io/v1
    export OPENAI_API_KEY=<your MiniMax API key>
    
    # Windows:
    setx OPENAI_API_BASE https://api.minimax.io/v1
    setx OPENAI_API_KEY <your MiniMax API key>
    # ... restart shell after setx commands
  3. Step 3.

    Change into your codebase and start aider, prefixing the MiniMax model name with openai/.

    Terminal
    cd /to/your/project
    aider --model openai/MiniMax-M3

Caveats

  • Combination: aider documents the generic OpenAI-compatible mechanism; the base URL and model ids come from MiniMax's docs. Neither side publishes a MiniMax-specific aider guide.
  • Aider will show model warnings for models it is not familiar with (see aider's model warnings page).
  • MiniMax-M3.1-Flash-Preview requires an M Plan Subscription Key; pay-as-you-go keys should use MiniMax-M3 or an M2.x model.
  • MiniMax's OpenAI-compatible API ignores presence_penalty, frequency_penalty and logit_bias, only supports n=1, and accepts temperature in [0, 2].

FAQ

How do I use MiniMax in Aider?

Aider's documented OpenAI-compatible path (OPENAI_API_BASE + OPENAI_API_KEY, model prefixed with openai/) combined with MiniMax's documented OpenAI-compatible base URL https://api.minimax.io/v1.

Which MiniMax model ids work in Aider?

The official docs read for this guide list MiniMax-M3, MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, MiniMax-M2.5-highspeed and MiniMax-M3.1-Flash-Preview. Requests go to https://api.minimax.io/v1.

Is this an official MiniMax and Aider setup?

The steps draw on both MiniMax's and Aider's docs. It was last checked against 3 official pages on October 17, 2026.

Sources

Last verified against 3 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.