◉ TOKNADO

Integrations / Aider

Aider + TOKNADO

How to use Aider with TOKNADO's OpenAI-compatible API

Aider is an AI pair-programming tool that edits your local git repo from the terminal. It connects to any OpenAI-compatible endpoint with two environment variables and one rule about the model name.

That rule is the number one cause of failed Aider setups with custom endpoints, so it comes first below.

Start free trial Jump to setup

What you need

Setup: Aider with TOKNADO

  1. Set the base URL and key

    Aider uses the standard OpenAI variables. On Windows use setx and restart the terminal afterward.

    # macOS / Linux
    export OPENAI_API_BASE=https://toknado.up.railway.app/v1
    export OPENAI_API_KEY=YOUR_TOKNADO_API_KEY
    
    # Windows (PowerShell, persisted)
    setx OPENAI_API_BASE https://toknado.up.railway.app/v1
    setx OPENAI_API_KEY YOUR_TOKNADO_API_KEY
  2. Start Aider with the openai/ prefix

    Prefix the model ID with openai/. Aider routes through LiteLLM, and that prefix selects the OpenAI-compatible transport. The prefix is routing information, not part of the model ID.

    cd /path/to/your/project
    aider --model openai/toknado/auto
  3. Persist the settings

    To avoid retyping, put them in .aider.conf.yml in your repo root or home directory, and keep the key in your environment.

    # .aider.conf.yml
    openai-api-base: https://toknado.up.railway.app/v1
    model: openai/toknado/auto

Notes for real-world use

Troubleshooting Aider + TOKNADO

SymptomWhat to check
Requests go to the wrong provider or failYou forgot the openai/ prefix on --model.
404Don't append /chat/completions to OPENAI_API_BASE; Aider adds it.
“Unknown model” warningExpected for custom endpoints. Continue, or add model metadata.
Variables not picked up (Windows)After setx, close and reopen the terminal.
429 errorsYou reached the rolling hourly limit or upstream throughput dropped. Check usage and consider a larger plan.

FAQ

How do I use Aider with a custom OpenAI-compatible endpoint?

Set OPENAI_API_BASE and OPENAI_API_KEY, then run aider --model openai/<model-id>.

Why is the openai/ prefix required?

Aider uses LiteLLM, which reads the prefix to choose the OpenAI-compatible route for your endpoint.

Does the cost shown in Aider match my bill?

No. It is Aider's estimate. TOKNADO bills a flat monthly plan.

Can I use a config file instead of env vars?

Yes. Use openai-api-base and model in .aider.conf.yml, and keep the key in the environment.

Point Aider at TOKNADO

One OpenAI-compatible endpoint, a managed model pool behind it, and usage you can see in the Storm Console. 3-day trial, up to 250 requests per rolling hour.

Start free trial See pricing Setup guide

Hourly limits apply over the previous 60 minutes. Service is best effort; upstream availability can reduce throughput.

More tools that work with TOKNADO