Guides d’intégration

Aider setup guide

Point Aider at MoLoop with two environment variables.

Overview

Aider is built on LiteLLM, so any OpenAI-compatible base URL works. Set two environment variables and pass the model ID with the openai/ prefix.

Quick configuration

Aider uses this base URL and key.

text
Base URL: https://api.moloop.io/v1
API key: YOUR_API_KEY

Compatibility

  • Chat Completions

  • Streaming

  • Tool calling

Step-by-step setup

Set environment variables

Aider reads OPENAI_API_BASE and OPENAI_API_KEY from the shell that launches it.

Windows

powershell
$env:OPENAI_API_BASE="https://api.moloop.io/v1"
$env:OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/YOUR_MODEL_ID

macOS

bash
export OPENAI_API_BASE="https://api.moloop.io/v1"
export OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/YOUR_MODEL_ID

Linux

bash
export OPENAI_API_BASE="https://api.moloop.io/v1"
export OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/YOUR_MODEL_ID

Run aider with the openai/ prefix

LiteLLM uses the openai/ prefix for its OpenAI driver; append the MoLoop model ID.

bash
aider --model openai/YOUR_MODEL_ID

Optional: persist in .aider.conf.yml

Put the configuration in the project root to avoid repeating it.

yaml
openai-api-base: https://api.moloop.io/v1
openai-api-key: YOUR_API_KEY
model: openai/YOUR_MODEL_ID

Copy the exact ID from the catalog. LiteLLM may show an unknown-model warning without failing the request.

Things to know

  • OPENAI_API_BASE must include /v1.

  • Use --no-show-model-warnings to hide warnings; provide model metadata for long-context tasks when needed.

Prêt à commencer ?

Obtenez une clé API et commencez à utiliser MoLoop dans ces outils.