Skip to content

Aider Integration

Overview

Aider is a powerful voice and text-based AI pair programming tool that directly edits code in your local Git repository. It provides a natural language interface for making code changes, adding features, and fixing bugs.

Key Features

  • Git Integration: Works directly with your Git repositories
  • Voice Control: Optional voice commands for hands-free coding
  • Real Code Edits: Makes actual changes to your codebase
  • Multi-File Context: Understands project-wide dependencies
  • Commit Management: Creates meaningful Git commits

Use Cases

  • Implementing new features via natural language descriptions
  • Fixing bugs through conversation about the problem
  • Refactoring code with AI assistance
  • Exploring alternative implementations through dialogue
  • Learning new codebases through guided exploration

Setup Instructions for interacting with Aider in text mode

  1. Install Aider: python -m pip install aider-install

  2. Create an environment variable or modify Aider’s config .aider.conf.yml:

    Terminal window
    export OPENAI_API_KEY="RELAX_API_KEY"
    export OPENAI_API_BASE="https://api.relax.ai/v1/"
  3. Run Aider with the relaxAI model:

    Terminal window
    aider --model openai/Llama-4-Maverick-17B-128E

Configuration Example (.aider.conf.yml)

model: Llama-4-Maverick-17B-128E
openai_api_base: https://api.relax.ai/v1/
openai_api_key: RELAX_API_KEY

Using Aider

Here are some common Aider commands:

  • /help - Show available commands
  • /add <files> - Add files to the current coding session
  • /drop <files> - Remove files from the session
  • /ls - List files in the current session
  • /diff - Show changes made so far
  • /commit "message" - Commit changes with the specified message

Example usage: Aider in Action Aider in Action Aider in Action

Resources