Aider access
Aider officially supports connecting to any OpenAI compatible API. It uses environment variables to set the interface address and token, and requires the model name to be prefixed with openai/.
Installation
Install according to Aider official method:
python -m pip install aider-install
aider-install
You can also use other installation methods officially provided by Aider. For the installation entrance, see the link at the end of the article.
Windows Configuration
Settings in the current PowerShell window:
$env:OPENAI_API_BASE = "https://shanghaido.com/v1"
$env:OPENAI_API_KEY = "YOUR_API_KEY"
aider --model openai/qwen3.8-flash
If you want to save it for a long time, you can use setx, but you need to reopen the terminal after execution:
setx OPENAI_API_BASE "https://shanghaido.com/v1"
setx OPENAI_API_KEY "YOUR_API_KEY"
macOS / Linux configuration
export OPENAI_API_BASE="https://shanghaido.com/v1"
export OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/qwen3.8-flash
OPENAI_API_BASE is filled in to /v1, Aider will request /chat/completions. The model name after --model must be:
openai/qwen3.8-flash
Do not omit openai/, and do not fill in the complete /v1/chat/completions into OPENAI_API_BASE.
Usage Tips
First run Aider in a small code directory, send a simple read-only question, and then allow it to modify a small content.
If Aider prompts that the model does not exist, first execute /v1/models to query the exact model name. If parameters are incompatible, first turn off additional inference parameters and use ordinary Chat Completions requests.
official information
encountered a problem
If you encounter problems with calling or configuration, please contact the site customer service and provide the model name, error time and error information to facilitate troubleshooting.