Configure Aider to use GitHub Copilot's API as the backend with Claude Sonnet 4 as the main model and GPT-4.1 as the weak model for AI-powered coding.
Configure Aider to use GitHub Copilot's API endpoint with Claude Sonnet 4 for powerful AI-assisted coding.
This skill configures Aider to route requests through GitHub Copilot's API while using Claude Sonnet 4 as the primary model and GPT-4.1 as the fallback model. It includes sensible defaults for dark mode theming and disables git attribution features.
1. **Create the Aider configuration file** in your home directory:
- Create `~/.aider.conf.yml`
- Add the following configuration:
```yaml
openai-api-base: https://api.githubcopilot.com
model: claude-sonnet-4
weak-model: gpt-4.1
show-model-warnings: false
dark-mode: true
code-theme: one-dark
attribute-author: false
attribute-committer: false
attribute-co-authored-by: false
```
2. **Ensure you have GitHub Copilot access**:
- You need an active GitHub Copilot subscription
- Authenticate with GitHub CLI: `gh auth login`
- Verify Copilot access in your GitHub account settings
3. **Install Aider** if not already installed:
- `pip install aider-chat`
- Or: `pipx install aider-chat`
4. **Launch Aider** in any project directory:
- Run `aider` in your terminal
- Aider will automatically use the configuration from `~/.aider.conf.yml`
Once configured, simply run:
```bash
aider
aider src/main.py tests/test_main.py
cd your-project
aider --auto-commits
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-with-github-copilot-backend/raw