Aider
Aider is a terminal pair programmer that edits files in your git repo and commits as it goes. It connects to any OpenAI-compatible endpoint.
Setup guide: this config comes from Aider's official documentation and has not been run end to end against the gateway. Corrections to support@hyphen-solution.com.
The easy mistake
Aider routes through LiteLLM, which needs to be told what kind of endpoint it
is talking to. That is what the openai/ prefix on the model name does.
Code
The prefix is stripped before the request, so Hyphen still receives
minimax-m3. Also note the env var is OPENAI_API_BASE, not
OPENAI_BASE_URL. Aider does not read the latter.
1. Get a key
app.hyphen-solution.com → sign in → pick a
plan or credit pack → Dashboard → API Keys. Copy the sk-... key.
2. Configure
Code
On Windows use setx and restart the shell:
Code
As flags
Code
As a config file
.aider.conf.yml in your home directory or git root:
Code
weak-model is what Aider uses for commit messages and summarising chat
history. Point it at minimax-m2.5 so those small jobs finish fast.
As a .env file
Aider reads .env with AIDER_-prefixed names:
Code
Plain OPENAI_API_BASE and OPENAI_API_KEY also work in .env.
3. Verify
Code
At the prompt, ask it to reply with a single word. Aider prints the model it is
using on startup, so check that line says openai/minimax-m3.
Telling Aider the context window and cost
Hyphen models are not in LiteLLM's model database, so Aider does not know their
context window or price and will say so. Fix it with a metadata file. Create
.aider.model.metadata.json in your home directory or git root:
Code
Key each entry by the fully qualified name including the openai/ prefix.
Those costs are the real rate card, so Aider's running total will
match your console. Point at a file elsewhere with
--model-metadata-file path/to/file.json.
Aider only reports token limits, it does not enforce them, so this file is optional. Without it you lose the cost display and get a warning on startup.
Which model
openai/minimax-m3as the main model. Aider does whole-file and diff edits that reward the flagship.openai/minimax-m2.5as theweak-modelfor commit messages.openai/minimax-text-01if you use/addon a very large set of files.
Troubleshooting
- "LLM Provider NOT provided" or a routing error. You left off the
openai/prefix. - 404.
OPENAI_API_BASEis missing the/v1suffix, or you setOPENAI_BASE_URLinstead, which Aider ignores. 401. Wrong key.- Warning about unknown context window. Add the metadata file above.
- Empty or truncated edits. The M-series reason before answering. See Choosing a model.
429. Monthly budget spent. See Rate limits & caps.- Flags changed? Check Aider's OpenAI-compatible docs and the options reference.
Related
- Choosing a model: which model for which job.
- Other OpenAI-compatible clients: opencode, Cursor, Cline, Continue.