# Aider

Use Aider with a KosCompute OpenAI-compatible coding model.

Set the key, then pass the OpenAI-compatible base and model to Aider.

```bash
export KOSCOMPUTE_API_KEY="your-api-key"
export OPENAI_API_KEY="$KOSCOMPUTE_API_KEY"
export OPENAI_API_BASE="https://api.koscompute.com/v1"

aider --model openai/qwen/qwen3.8-27b
```

Some Aider and LiteLLM releases use `OPENAI_API_BASE`; others accept `--openai-api-base`. Run `aider --help` for the installed version if the environment variable is not recognized.

Choose a model that advertises tool calling and sufficient context. Keep repository commits enabled so generated edits remain reviewable and recoverable.
