> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunbound.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Aider

> Connect Aider to the LLM Gateway

You need an [LLM Gateway key](https://docs.getunbound.ai/llm-gateway/keys.md#create-a-key).

## Setup

1. Set the gateway in your shell profile:

   ```bash theme={null}
   export OPENAI_API_BASE=https://api.getunbound.ai/v1
   export OPENAI_API_KEY=<your-key>
   ```

2. Start Aider with `openai/` in front of the model or [alias](https://docs.getunbound.ai/llm-gateway/models.md#aliases):

   ```bash theme={null}
   aider --model openai/claude-sonnet-4-6
   ```

Aider removes the `openai/` prefix and sends `claude-sonnet-4-6` to the gateway.

## Check it works

Send a prompt. In **LLM Gateway → Keys**, the key's **Last Used** updates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.