
Aider is a coding assistant that works in the terminal, inside your project's Git repository. Here is how to install it, how to open it in the right folder and the first commands, already with an All in One AI model.
Before you start
|
|
|
1. Install Aider
The official documentation lists these two commands first. They are the same on Windows, Linux and macOS:
python -m pip install aider-install
aider-install
If you do not have Python yet, there are one-line installers that also install Python 3.12. On Linux and macOS:
curl -LsSf https://aider.chat/install.sh | sh
On Windows:
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"
There are more ways, with uv or pipx, on the Aider install page.
2. Tell Aider where the API is
Aider reads the address from OPENAI_API_BASE and the key from OPENAI_API_KEY. On Linux and macOS:
export OPENAI_API_BASE=https://api.interweb.co.mz/v1
export OPENAI_API_KEY="prod_..."
On Windows, use setx with the same names. setx only applies to the windows you open afterwards, so close the terminal and open a new one:
setx OPENAI_API_BASE https://api.interweb.co.mz/v1
setx OPENAI_API_KEY "prod_..."
Other programs use these names too. If you prefer names that belong to Aider only, see the article about the two variables.
3. Open Aider in your project folder
Go into the project folder and open Aider with the model:
cd my-project
aider --model openai/moonshotai/kimi-k2.7-code
openai/ tells Aider that the API is OpenAI-compatible. The rest is the catalogue id, with its own slash. The first time, Aider warns that it does not know the model's context or cost. You can carry on: the article about the warning explains what it means.
4. The first commands
| Command | What it does |
| /add file | Adds files to the chat, so Aider can edit them. |
| /model | Switches the main model, for example /model openai/zai-org/glm-5.2. |
| /tokens | Shows how many tokens the current chat takes up. |
| /exit | Leaves Aider. |
| So you do not have to type --model every time, create .aider.conf.yml in your home folder with the line model: openai/moonshotai/kimi-k2.7-code. The list of models that support tools is in Aider with All in One AI. |
|
Want to code in the terminal with our models? Visit the Coding with AI page. See Coding with AI |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon) See plans |











