# Aider

Point Aider's OpenAI-compatible client at Laminarity for routed or model-pinned coding sessions.

> Verification: source-checked; checked 2026-09-01; Aider OpenAI-compatible API support

## Configure the environment

Aider prefixes OpenAI-compatible model ids with `openai/`; the API receives the suffix `auto`. Keep the Laminarity key in the environment or a private `.env` file, not in committed Aider configuration.

```bash
export OPENAI_API_BASE=https://api.laminarity.ai/v1
export OPENAI_API_KEY="$LAMINARITY_API_KEY"

aider --model openai/auto
```

## Pinning and reasoning

Use `openai/auto` for Laminarity routing and fallback. Use `openai/<concrete-id>` only after confirming the id with `/v1/models`; concrete requests do not receive Laminarity fallback.

Aider exposes reasoning effort controls for supported models. Apply them only to a compatible concrete model, and leave reasoning unset for `auto`.

## Verify

Start Aider in a temporary repository, ask for a one-line edit, inspect the diff, and undo it. This verifies streaming and edit-tool behavior without risking an active worktree.

## Upstream documentation

- [Aider OpenAI-compatible APIs](https://aider.chat/docs/llms/openai-compat.html)
- [Aider reasoning models](https://aider.chat/docs/config/reasoning.html)
