Search docs...

Start typing to search documentation

aider
Aider

Aider Setup Guide

Aider is LiteLLM-backed, so UnoRouter’s OpenAI-compatible base URL works with two env vars.

Overview

Aider is LiteLLM-backed, so any OpenAI-compatible base URL works. Set two env vars and pass openai/MODEL_ID as the model.

Quick Config

Drop these values into the client. Your key auto-fills when you are signed in.

text
Base URL: https://api.unorouter.ai/v1
API Key: YOUR_API_KEY

Sign in to auto-fill your API key

Compatibility

Chat CompletionsStreamingTool calling

Step-by-step setup

  1. 1
    Set environment variables

    Aider reads OPENAI_API_BASE and OPENAI_API_KEY from your shell.

    bash
    export OPENAI_API_BASE=https://api.unorouter.ai/v1
    export OPENAI_API_KEY=YOUR_API_KEY

    Sign in to auto-fill your API key

  2. 2
    Run aider with the openai/ prefix

    LiteLLM uses the openai/ prefix to route the request through its OpenAI driver. Append your UnoRouter model id.

    bash
    aider --model openai/YOUR_MODEL_ID

    Sign in to auto-fill your API key

  3. 3
    Optional: persist in .aider.conf.yml

    Drop a config in your project root so you do not have to repeat the flags.

    yaml
    openai-api-base: https://api.unorouter.ai/v1
    openai-api-key: YOUR_API_KEY
    model: openai/YOUR_MODEL_ID

    Sign in to auto-fill your API key

Recommended models

Free models that work well here. Paste any model id into the client.

tiny-aya-earthmistral-small-3.2-24b-instruct-2506voxtral-small-2507dolphin-mistral-24b-venice-editionmistral-7b-instruct-v0.3

Gotchas

  • Always include /v1 in the base URL.
  • LiteLLM may print unknown model warnings. Use --no-show-model-warnings or supply a context window via --model-metadata-file if it gets noisy.
Generate API KeyModels