Cách dùng
Chạy Aider trong thư mục dự án của bạn:
cd /to/your/project
aider
Cấu hình nhà cung cấp LLM
Aider hỗ trợ nhiều nhà cung cấp AI. Bạn có thể chỉ định mô hình và khóa API khi khởi động Aider.
The easiest way to configure a provider is by using the --model và --api-key command-line options:
# DeepSeek via DeepSeek's API
aider --model deepseek --api-key deepseek=your-key
# Claude 3.7 Sonnet via Anthropic's API
aider --model sonnet --api-key anthropic=your-key
# o3-mini via OpenAI's API
aider --model o3-mini --api-key openai=your-key
# Sonnet via OpenRouter's API
aider --model openrouter/anthropic/claude-3.7-sonnet --api-key openrouter=your-key
# DeepSeek Chat V3 via OpenRouter's API
aider --model openrouter/deepseek/deepseek-chat --api-key openrouter=your-key
Môi trường shell
Aider được cài đặt tại:
- Tệp nhị phân:
/root/.local/bin/aider - Môi trường:
/root/.local/bin/env