inference.eu

Coding agents · Aider

Use Aider with open-source models hosted in the EU

Aider is an open-source AI pair programmer for the terminal that edits code in your git repository and commits each change. It connects to any OpenAI-compatible API, so pointing it at inference.eu takes two environment variables. Your code is then processed by open-weight models in European data centres.

  1. 01API format: OpenAI
  2. 02EU data centres
  3. 03Covered by one DPA

Set it up in a few minutes

  1. 1

    Create an API key in your inference.eu account and export it as INFERENCE_EU_API_KEY.

  2. 2

    Install aider with python -m pip install aider-install followed by aider-install.

  3. 3

    Set OPENAI_API_BASE to the inference.eu base URL and OPENAI_API_KEY to your key.

  4. 4

    Change into your project and run aider --model openai/<model id>, for example openai/qwen3-coder-480b-a35b-instruct.

  5. 5

    Add a file with /add, ask for a small change and check the commit aider creates.

Terminal
# Aider reads OpenAI-compatible endpoints from these two variables.
export OPENAI_API_BASE="https://api.inference.eu/v1"
export OPENAI_API_KEY="$INFERENCE_EU_API_KEY"

# Prefix the model id with openai/ so aider uses the endpoint above.
cd /path/to/your/project
aider --model openai/qwen3-coder-480b-a35b-instruct --edit-format diff

What Aider is

Aider is an open-source command-line tool for pair programming with a language model. You add files to the chat, describe a change, and aider edits the files and commits the result to git with a descriptive message. It builds a map of your repository so the model understands code outside the files you added, and it can run your linter and tests after each edit.

Aider works with many model providers through LiteLLM. Any endpoint that implements the OpenAI API can be used by setting a base URL and key, which is how it runs on inference.eu.

How the configuration works

Aider reads OPENAI_API_BASE and OPENAI_API_KEY from the environment. Set the base to the inference.eu URL ending in /v1 and the key to your inference.eu key. Then prefix the model id with openai/, as in --model openai/glm-5.3, so aider knows to send the request to the OpenAI-compatible endpoint.

You can put the same settings in .aider.conf.yml in your home directory or repository, using the keys openai-api-base and model, and keep the key in a .env file. Because aider does not know the context size of every model, add a .aider.model.metadata.json entry if you want accurate token warnings.

Which models to choose

Aider asks the model to return edits in a structured format, so models that follow instructions precisely do best. qwen3-coder-480b-a35b-instruct with --edit-format diff is a strong default for everyday changes. glm-5.3 and kimi-k3 handle larger refactors and explanations well.

Aider's architect mode splits the work between two models: one plans the change, the other writes the edits. Try --architect with --model openai/kimi-k3 and --editor-model openai/qwen3-coder-480b-a35b-instruct. For commit messages and chat summaries, aider uses a weak model; set --weak-model openai/gpt-oss-120b so those calls also go to inference.eu.

Troubleshooting

A warning that aider does not know the model is expected for custom endpoints; it only means aider has no metadata such as context size. You can silence it with a metadata file. A 401 error means OPENAI_API_KEY is missing or holds a different key; check it in the shell where you start aider.

"Model not found" or a 404 usually means the openai/ prefix is missing, so aider tried another provider, or the id after the prefix differs from the inference.eu id. If edits fail to apply, switch to --edit-format diff or whole and use one of the coding models above.

Keeping code and data in the EU

Aider runs locally and sends model requests from your machine to the endpoint in OPENAI_API_BASE. With inference.eu, the files you add, the repository map and your instructions are processed in EU data centres and never used for training. We sign a data processing agreement under Article 28 GDPR, share our subprocessor list and bill in euros.

Set the main, editor and weak models to inference.eu models so no request falls back to another provider. Aider can collect anonymous analytics if you opt in; leave it off, or use --analytics-disable, if your policy requires it.

Aider: common questions

The questions buyers, developers and legal teams ask us most. Something missing? Ask us directly.

Ask a question

Move your AI workloads to EU infrastructure

Tell us which models you use and roughly how much traffic you have. We reply within one working day with pricing and next steps.

  • Reply within one working day
  • Pricing for your volume
  • DPA ready to sign