Production Aider setup with Groq LLMs (Llama 3.1 70B main, Mixtral editor, 8B weak model), caching, auto-linting, and architect mode for complex refactors
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
Configures Aider with a cost-optimized multi-model setup using Groq's free-tier LLMs: Llama 3.1 70B for main chat, Mixtral 8x7B for editing tasks, and Llama 3.1 8B for lightweight operations like commit messages.
Creates an `.aider.conf.yml` configuration that:
1. **Verify Environment**
- Confirm `.env` file exists with `GROQ_API_KEY=<your-key>`
- Aider supports API keys for all providers via `.env` (not just OpenAI/Anthropic in YAML)
2. **Create Configuration File**
- Create `.aider.conf.yml` in project root or home directory
- Copy the configuration below:
```yaml
model: groq/llama-3.1-70b-versatile
editor-model: groq/mixtral-8x7b-32768
weak-model: groq/llama-3.1-8b-instant
architect: true # Use architect mode for complex edits
cache-prompts: true # Reduce API costs
dark-mode: true
code-theme: monokai
auto-lint: true # Automatically lint after changes
```
3. **Configure Linting (Optional)**
- For Python projects, add: `lint-cmd: "python: flake8 --select=E,W"`
- For JavaScript: `lint-cmd: "javascript: eslint"`
- Or keep `auto-lint: true` and let Aider detect linters
4. **Test Configuration**
```bash
# Start Aider (should load config automatically)
aider
# Verify model in chat
/model
```
5. **Usage Patterns**
- **Complex refactors:** Use `/architect` command or rely on auto-detection
- **Quick edits:** Regular chat uses 70B model efficiently
- **Commit messages:** Auto-generated using 8B model (fast, cheap)
**Replace `model:` line with:**
**For `weak-model:`** (commit messages)
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-multi-model-configuration-ctaf8z/raw