Aider Configuration
AiderDesk offers several ways to configure the underlying Aider engine, providing flexibility for advanced users. Configuration is loaded with the following priority (from highest to lowest):
- Settings configured in the AiderDesk UI.
- Command-line options specified in AiderDesk settings.
- Variables in a
.env
file in your project directory. - Settings in a
.aider.conf.yml
file in your project directory. - Variables in a
.env
file in your home directory. - Settings in a
.aider.conf.yml
file in your home directory. - System environment variables.
Aider Options
You can pass command-line arguments directly to the Aider process.
- Go to Settings > Aider.
- In the Options section, enter any valid
aider-chat
command-line flags (e.g.,--no-auto-commits
,--map-tokens 8192
).
Refer to the official Aider documentation for a complete list of available options.
Environment Variables
You can set environment variables for the Aider process, which is useful for configuring API keys and other secrets without hardcoding them.
- Go to Settings > Aider.
- In the Environment Variables section, add your variables in the
.env
format (e.g.,OPENAI_API_KEY=your-key-here
). - You can show or hide the content of this field by clicking the "Show Secrets" button.
.aider.conf.yml
AiderDesk respects the standard .aider.conf.yml
file. You can place this file in your project's root directory or your home directory to define project-specific or global settings for Aider.
Example .aider.conf.yml
:
model: openai/gpt-4.1
weak-model: openai/gpt-4o-mini
edit-format: diff
auto-commits: false