• UnoRouterUNOROUTER
Documentation
  • AI Applications
Coding agents
  • opencodeOpenCode Setup Guide
  • Kilo CodeKilo Code Setup Guide
  • Zed IDE Setup Guide
  • ClineCline Setup Guide
  • RooCodeRoo Code Setup Guide
  • continue-devContinue.dev Setup Guide
Character & fiction clients
  • SillyTavernSillyTavern Integration Guide
  • janitor-aiJanitor.AI Integration Guide
  • risuaiRisuAI Integration Guide
  • Chub / Venus Integration Guide
  • nevikaNevika Integration Guide
Chat clients
  • librechatLibreChat Integration Guide
  • OpenWebUIOpen WebUI Integration Guide
  • LobeHubLobeChat Integration Guide
  • AnythingLLM Integration Guide
  • CherryStudioCherry Studio Integration Guide
  • typingmindTypingMind Integration Guide
  • BoltAI Integration Guide
  • Page Assist Integration Guide
  • chatboxChatbox Integration Guide
  • Big-AGI Integration Guide
CLI tools
  • aiderAider Setup Guide
  • cc-switchCC Switch Integration Guide
  • Claude CodeClaude Code Integration
  • CodexOpenAI Codex CLI Setup Guide
  • GeminiGemini CLI Integration
  • openclawOpenClaw Integration
  • Hermes AgentHermes Agent Integration
  • ModelContextProtocolMCP Server Setup Guide
Navigate
  • Models
  • Rankings
  • Inspector
  • Pricing
  • Chat
  • Status

Search docs...

Start typing to search documentation

PlatformIntegrationsChat
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.com/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.com/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.com/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.

agnes-2.0-flash:freeallam-2-7b:freebielik-11b-v3.0-instruct:freecodestral-latest:freecommand-r:free

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

On this page

Overview
Quick Config
Compatibility
Setup steps
Set environment variables
Run aider with the openai/ prefix
Optional: persist in .aider.conf.yml
Recommended models
Gotchas