June 11, 20264 min readPricingAider

How to use Aider cheaper without a subscription

Aider is one of the best terminal-based AI pair programmers around, and one of its quiet superpowers is that it has no subscription of its own. You bring your own model API key. That means your real bill comes from whatever provider sits behind Aider — and that is exactly where most people overpay.

If you are juggling a separate OpenAI key, an Anthropic key, and maybe a Google key, you are not just paying full retail on each. You are also locked into per-vendor minimums, dashboards, and billing dates. Here is how to run Aider cheaper, without committing to any monthly plan.

Why Aider gets expensive

Aider is efficient with context, but the cost drivers are predictable:

  • Premium-only habits. Routing every edit through the most expensive flagship model when a cheaper one would pass the tests.
  • Multiple vendor accounts. Each provider wants its own prepay or minimum, so your money sits fragmented across dashboards.
  • No easy way to switch. Comparing a cheaper model means new keys, new config, new endpoints.

The fix is not "use a worse model." It is paying per token at one place and switching models the moment a task does not need a flagship.

Pay per token, skip the subscription

AnyModel is a single OpenAI-compatible gateway. One API key reaches GPT, Claude, Gemini, DeepSeek, GLM, Kimi, Qwen, and Grok. There is no monthly fee, no minimum spend, and no credit card to start — you pay only for the tokens you actually use.

You also get room to test before spending anything: 1,000,000 free tokens on signup, and 6,000,000 total if you link Telegram. That is enough to run Aider across a real feature branch and see your true cost before any money changes hands.

Point Aider at AnyModel

Aider speaks the OpenAI API format, so setup is a manual OpenAI-compatible config — no special installer needed. Set two environment variables and pick a model:

export OPENAI_API_BASE="https://anymodel.org/v1"
export OPENAI_API_KEY="<YOUR_ANYMODEL_KEY>"

aider --model openai/deepseek-chat

The openai/ prefix tells Aider to use the OpenAI-compatible path; the part after it is the model id. To switch models, you change that one id — nothing else in your setup moves.

Note: the one-line installer (bash <(curl -fsSL "https://anymodel.org/i?tool=codex") <KEY>) only covers codex, claude, opencode, and hermes. For Aider, Cursor, Cline, Continue, and similar clients, use the manual base_url + key approach above.

Match the model to the task

The biggest savings come from not paying flagship prices for routine work. A practical pattern:

Task Cheaper choice
Boilerplate, renames, small edits DeepSeek, Qwen, GLM
General feature work Gemini Flash, mid-tier GPT
Hard refactors, tricky bugs A flagship Claude or GPT model

Aider's --model flag (or /model mid-session) lets you drop down to a cheap model for the easy 80% and only escalate when a task genuinely needs more reasoning. If you are unsure which model gives the best value for a given job, the model comparison page is a quick way to weigh quality against price.

Keep your code private

Sending proprietary code through a gateway is a fair concern. AnyModel offers Ghost Mode — opt-in, zero-retention API keys where your prompts and responses are not stored on our side; only a token counter runs. To be honest about the limits: the model provider still receives your prompt to generate a response, so this is not "100% privacy." But it does mean AnyModel itself holds no record of what you sent.

What you actually save

  • No subscription, no minimums — you stop paying the moment you stop coding.
  • One key, one bill instead of three vendor dashboards.
  • Free headroom to benchmark before spending.
  • Frictionless downshifting to cheaper models, which is where the real cost cuts come from.

Aider stays exactly the same tool you already like. You just feed it tokens from one place, at per-token rates, and reach for the cheap model first. For more setup walkthroughs and pricing breakdowns, browse the blog.

Ready to cut your Aider bill? Create a free AnyModel account — 1,000,000 tokens to start, no card required.

Read next