Skip to content

Integration guide

Use GreenPT in Aider

Aider is a terminal pair programmer that works with any OpenAI-compatible API, including GreenPT. Export the GreenPT base URL and your API key, start Aider with a coding model such as glm-5.2, and every change lands as a git commit while inference runs on renewable EU energy.

Two environment variables and one flag; Aider treats GreenPT like any other OpenAI-style endpoint.

Setup

Connect Aider to GreenPT

Every OpenAI-compatible setup needs the same three values. The steps below show where they go in this tool.

Base URL
https://api.greenpt.ai/v1
API key
GREENPT_API_KEY
Model
glm-5.2
  1. Install Aider

    Install with the official installer (or pipx install aider-chat). Aider needs Python 3.9 or newer and a git repository to work in.

    Terminal
    python -m pip install aider-install
    aider-install
  2. Create a GreenPT API key

    Sign up at account.greenpt.ai (14-day free trial, no credit card) and create an API key in the console.

  3. Point Aider at GreenPT and start it

    Export the OpenAI-compatible endpoint and key, then start Aider with the openai/ prefix so it routes through that endpoint. Add the exports to your shell profile to make them stick.

    Terminal
    export OPENAI_API_BASE=https://api.greenpt.ai/v1
    export OPENAI_API_KEY=$GREENPT_API_KEY
    aider --model openai/glm-5.2

Prefer flags over environment variables? aider --openai-api-base https://api.greenpt.ai/v1 --openai-api-key $GREENPT_API_KEY --model openai/glm-5.2 does the same in one line.

Pick a model

Five open coding models, one key

glm-5.2 is the flagship for agentic software engineering. kimi-k2.7-code handles very large repositories, devstral-2-123b-instruct-2512 is built for SWE agents, qwen3-coder-30b-a3b-instruct is the efficiency pick, and minimax-m2.5 the budget one. All open-weight, all hosted in the EU.

Compare all coding models

Why GreenPT

Why teams point Aider at GreenPT

Same agent, same workflow, different footprint. GreenPT serves open-weight coding models from green EU data centres, with privacy guarantees that proprietary defaults do not offer.

  • No training on your code

    Prompts and code are never used for training. GDPR-compliant, EU-based processing with DPAs on request.

  • Open-weight models

    glm-5.2, Kimi K2.7 Code, Devstral 2, Qwen3 Coder, and MiniMax M2.5. You know exactly what you run.

  • Renewable EU infrastructure

    Scaleway green data centres, 100% renewable energy, PUE 1.25 and WUE 0.25, with CO2 tracked per request.

  • One key for everything

    The same GREENPT_API_KEY also serves chat, embeddings, reranking, OCR, speech-to-text, and web search.

Frequently asked questions

Which GreenPT model should I use in Aider?

glm-5.2 as the default; its 1M-token context helps Aider’s repository map on big codebases. For quick edits on a budget, qwen3-coder-30b-a3b-instruct is fast, cheap, and efficient.

Compare the coding models →
Does Aider’s git integration change with GreenPT?

No. Aider keeps committing each change with a descriptive message regardless of the model provider. You review with git diff and undo with /undo exactly as before, just with EU-hosted open-weight models writing the code.

Does GreenPT train on my code?

No. GreenPT never trains models on your prompts, code, or conversations. Processing happens entirely inside the EU with full GDPR compliance, and data processing agreements are available on request.

How is this more sustainable than the default setup?

GreenPT models run in Scaleway green EU data centres on 100% renewable energy, with a PUE of 1.25 and a WUE of 0.25, well below industry averages. CO2 and energy usage are tracked per request, so you can report the footprint of your coding agent instead of guessing it.

What does it cost?

You pay per token through GreenPT API credits, and every new account starts with a 14-day free trial, no credit card required. Open-weight models are markedly cheaper to run than proprietary frontier models, and you can cut spend further with the Honey agent skill.

View pricing →

Start coding greener

Your agent, our models, less carbon .

Start a free 14-day trial, no credit card. Point Aider at one OpenAI-compatible endpoint and run glm-5.2 and friends on 100% renewable energy.

  • 100% Renewable
  • EU Hosted
  • OpenAI-compatible