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.
Base URL: https://api.moloop.io/v1
API key: YOUR_API_KEYCompatibility
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
$env:OPENAI_API_BASE="https://api.moloop.io/v1"
$env:OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/YOUR_MODEL_IDmacOS
export OPENAI_API_BASE="https://api.moloop.io/v1"
export OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/YOUR_MODEL_IDLinux
export OPENAI_API_BASE="https://api.moloop.io/v1"
export OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/YOUR_MODEL_IDRun aider with the openai/ prefix
LiteLLM uses the openai/ prefix for its OpenAI driver; append the MoLoop model ID.
aider --model openai/YOUR_MODEL_IDOptional: persist in .aider.conf.yml
Put the configuration in the project root to avoid repeating it.
openai-api-base: https://api.moloop.io/v1
openai-api-key: YOUR_API_KEY
model: openai/YOUR_MODEL_IDRecommended models
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.
始める準備はできましたか?
API キーを取得して、これらのツールで MoLoop を使い始めましょう。