Use Nivana in Aider

Aider edits code in your repository from the terminal. Point it at Nivana and the router picks the coding model for each request.

What you need

  • A Nivana API key: sign in, open the account menu and choose API keys. New accounts get 2,000 free credits.
  • The base URL https://nivana.one/v1 and the model name nivana/auto (or nivana/quality, nivana/speed, nivana/cost to lean the router one way).

Set up Aider

export OPENAI_API_BASE=https://nivana.one/v1
export OPENAI_API_KEY=nvn_sk_…
aider --model openai/nivana/auto

Aider may warn that it doesn’t know the model’s context window or prices; that is expected for a router, and Nivana handles context limits itself.

Limits

Tool calling works: the client’s tools are passed to the routed model, which can call them, and each step is routed on its own. JSON mode and sampling parameters (temperature, max tokens) are ignored, Nivana’s own web search is off when the client sends tools, and very long tool histories are not summarised, so a request larger than every model’s context window fails.

Every response’s model field names the model that actually answered. See the OpenAI-compatible endpoint and how routing works.