Introduction
Aider is an open-source AI pair programmer that runs in your terminal. It integrates with your local git repository, can create and edit files across multiple languages, and commits changes automatically as you work. Aider is designed from the ground up to support OpenAI-compatible endpoints, making it one of the simplest tools to connect to a model on SaladCloud. Aider works with SaladCloud in two ways:- Salad AI Gateway - no infrastructure to deploy or manage. Sign up for access, point Aider at a single shared endpoint, and use your Salad API key directly. Currently in closed beta, available via monthly subscription.
- Self-hosted model - deploy your own SaladCloud container group, billed per hour, for full control over the model, hardware, and configuration. Still very easy to set up and use.
Prerequisites
Before getting started, make sure you have:- A SaladCloud account
- Python 3.8+ installed
- A local git repository to work in
Step-by-Step Setup
Step 1: Choose Your Backend
- Salad AI Gateway
- Self-Hosted on SaladCloud
Salad AI Gateway is the fastest way to get started - no container groups to deploy, no cold starts to wait for.
- Sign up for early access at salad.com/ai-gateway.
- Once approved, find your Salad API key in the portal.
| Model | Description |
|---|---|
qwen3.5-35b-a3b | Qwen 3.5 35B Mixture of Experts - best for agentic tasks and complex reasoning |
qwen3.5-27b | Qwen 3.5 27B - strong balance of capability and speed |
qwen3.5-9b | Qwen 3.5 9B - fastest response times, suited for lighter tasks |
Step 2: Install Aider on your local machine
Install Aider via pip:Step 3: Configure Aider to Use Your SaladCloud Endpoint
- Salad AI Gateway
- Self-Hosted on SaladCloud
Set the required environment variables before running Aider:No custom headers are needed - your Salad API key in
OPENAI_API_KEY is all that’s required.Step 4: Start Aider and Test the Connection
Navigate to your project directory and start Aider, prefixing the model name withopenai/:
“Create a hello world Python script that prints ‘Hello from SaladCloud!’”If Aider successfully creates and commits the file, your setup is complete. Note: Aider may display a warning about an unknown model. This is safe to ignore — Aider is simply checking its internal model database and your SaladCloud model won’t be listed there.
Tips for Best Results
Use the --edit-format Flag
For smaller or less capable models, the whole edit format is more reliable than the default diff format:
diff format produces more efficient edits but requires the model to generate valid unified diffs, which some
models struggle with.
Work in a Git Repository
Aider is designed to work inside a git repository. It automatically commits each change it makes, giving you a full undo history. Initialize git in your project if you haven’t already:Set a Context Window
When using a custom deployment, ensure your model server is configured with a sufficient context window. Aider works best with at least 16384 tokens, ideally 32768 or higher. Our preconfigured Qwen 3.5-35B-A3B recipe already has optimal settings.Model Recommendations
- Qwen 3.5-35B-A3B: Best balance of capability and cost for agentic coding tasks
- Qwen 3.5-9B: Suitable for simpler tasks; may struggle with complex multi-file edits
This documentation page was created using Aider powered by an LLM model running on SaladCloud.