Aider setup using local OpenAI-compatible API server with GPT-4 and dark mode enabled. Includes conventions file integration.
This skill configures Aider to work with a local OpenAI-compatible API server (like GitHub Copilot's local endpoint) while maintaining project conventions through a dedicated file.
The configuration enables:
1. **Create the Aider configuration file** (`.aider.conf.yml` in your project root):
```yaml
dark-mode: true
read: CONVENTIONS.md
#model: ollama/mistral-nemo
openai-api-key: dummy_key
4: true # Use gpt-4-0613 model for the main chat
openai-api-base: http://localhost:51234/v1
```
2. **Create a `CONVENTIONS.md` file** in your project root to define coding standards, patterns, and guidelines that Aider should follow.
3. **Ensure your local API server is running** on `http://localhost:51234/v1` before starting Aider.
Run Aider from your project directory:
```bash
aider
```
Aider will automatically:
The configuration includes commented-out alternatives:
**Ollama** (local open-source models):
```yaml
model: ollama/mistral-nemo
```
**Claude** (Anthropic API):
```yaml
sonnet: true
```
Uncomment and configure as needed for your preferred backend.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-with-local-api/raw