Aider
Use Aider with any of 200+ models through Chuizi.AI via the OpenAI or Anthropic protocol.
Prerequisites
- Aider installed (
pip install aider-chat) - A Chuizi.AI account with an API key (starts with
ck-)
OpenAI Protocol (Recommended)
Use this configuration to access any model through the OpenAI-compatible endpoint.
Set the environment variables:
terminal
bash
export OPENAI_API_BASE=https://api.chuizi.ai/v1 export OPENAI_API_KEY=ck-your-key-here
Then start Aider with your preferred model:
terminal
bash
# Claude Sonnet aider --model openai/anthropic/claude-sonnet-4-6 # GPT-4.1 aider --model openai/openai/gpt-4.1 # DeepSeek aider --model openai/deepseek/deepseek-chat
Note: When using the OpenAI protocol, prefix the model name with openai/ to tell Aider to use the OpenAI API format, followed by the Chuizi.AI model name (e.g., openai/anthropic/claude-sonnet-4-6).
Next Steps
- Choose a Model — find the right model for your use case
- Cost Optimization — reduce costs with prompt caching and model selection
- Streaming Guide — understand how streaming works through the gateway