Skip to main content
Aider is a terminal-based AI coding assistant that works directly with your git repository. It can make changes across multiple files, understand your codebase context, and commit changes automatically.
Verified working with MiniMax-M2.7 on Infercom.

Prerequisites

Installation

Verify installation:

Configuration

Set these environment variables:
Then run Aider:
Add the export commands to your shell profile (~/.bashrc, ~/.zshrc) for persistence.

Option 2: Config File

Create ~/.aider.conf.yml:
Then simply run:

Option 3: Command Line

Pass everything on the command line:

Model

Use MiniMax-M2.7 with the openai/ prefix:
The openai/ prefix is required. Using just MiniMax-M2.7 will not work.

Example Usage

Interactive Mode

Then chat with Aider:

Non-Interactive Mode

Disable Auto-Commits

Reasoning Output

MiniMax-M2.7 has built-in reasoning capabilities. To see the model’s thinking process, disable streaming:
You’ll see a THINKING section before each response showing the model’s reasoning.

Controlling Reasoning Effort

You can adjust reasoning intensity with --reasoning-effort:
Valid values: low, medium, high
--no-stream is required to display reasoning output. The --no-check-model-accepts-settings flag is needed because Aider doesn’t recognize MiniMax-M2.7’s reasoning support by default.

Troubleshooting

Unknown Model Warning

You may see this warning:
Fix: Create ~/.aider.model.metadata.json with MiniMax-M2.7 specs:
This enables proper context window handling and cost tracking. Alternative: Suppress the warning with --no-show-model-warnings:

Connection Errors

Verify your configuration:
You should see a list of available models.

Model Not Found

Ensure you’re using the correct model name with the openai/ prefix:

Performance

  • Token throughput: 400+ tokens/sec with MiniMax-M2.7
  • Context window: 192K tokens - handles large codebases

Next Steps