Aider setup
Aider is an open-source AI pair-programming tool that runs in your terminal and edits code in your local git repository. It reads the Anthropic base URL and key from environment variables, so setting the 6090ti address and a 6090ti API key is all it takes to use Claude models.
Before you start
- Create an account and top up.
- Create an API key in the console (top up and create a key).
- Request
https://api.6090ti.com/v1/modelswith that key and pick a model name from the list; below it is written as<model name>. Prices per model: Claude model APIs.
Step 1: Install Aider
Python is required. In a terminal run:
python -m pip install aider-install
aider-install
Step 2: Set the base URL and key
# macOS / Linux
export ANTHROPIC_API_BASE="https://api.6090ti.com"
export ANTHROPIC_API_KEY="<your key>"
# Windows PowerShell
$env:ANTHROPIC_API_BASE = "https://api.6090ti.com"
$env:ANTHROPIC_API_KEY = "<your key>"
Do not add /v1 to the base URL. These variables last only for the current terminal window; to keep them, add them to your shell profile or system environment variables.
Step 3: Start and test
Go to your project directory (ideally a git repository) and run:
aider --model anthropic/<model name>
Prefix the model name with anthropic/, for example anthropic/claude-sonnet-4-6. Type “Reply with OK only”; if you get a reply and the call appears in the console usage records, the setup works.
Notes
- Aider edits files directly and commits to git automatically. Make sure your working tree has no unsaved changes before you start.
- For timeouts, add
--timeout 600.
Common errors
| What you see | Cause and fix |
|---|---|
401, INVALID_API_KEY | Wrong key, or extra spaces. Copy the full key from the console again. |
403, INSUFFICIENT_BALANCE | Not enough balance. Top up and retry. |
| 404 or “model not available” | The model name is wrong or not enabled for your key. Check with /v1/models. |
| 404 on the path | The base URL has a path too many or too few. Enter it exactly as in this guide; do not add /v1/messages yourself. |
| 429 | Too many requests or the upstream is busy. Wait and retry. |
More error details: API reference.