Run Aider on Ollama, Bedrock, or Any LLM Provider — One Gateway, Every Model
Dev.to AI
•
Generative AI
AI Tools
Aider is the best terminal AI coding tool I've used. But by default it sends every diff through your OpenAI or Anthropic key, which gets expensive fast on real refactors - a single 100-file repo map can torch a few dollars before Aider even reads your prompt. This post shows how to run Aider against any LLM provider - Ollama for free local runs, OpenRouter for mixed-provider routing, AWS Bedrock for the enterprise plate - through a single OpenAI-compatible endpoint. I'll use Lynkr, the self-hosted gateway I maintain, but the pattern works with any OpenAI-compatible proxy.