Use Claude with Aider

$3/Mtok in

Aider's benchmark-driven culture keeps landing on Claude for the editor model. Route it through one key and pair a cheap weak model for commit messages and repo maps.

Facts

At a glance

Model

Claude Sonnet 4.5

anthropic/claude-sonnet-4-5

Price

$3 / M input · $15 / M output

Context window

200k tokens

Tool

Aider

Setup below — under two minutes

Quickstart

Set up Claude in Aider

  1. 1

    Export the endpoint and key:

    export OPENAI_API_BASE="https://api.companyfabric.com/v1"
    export OPENAI_API_KEY="$COMPANYFABRIC_API_KEY"
  2. 2

    Run Aider on this model (the openai/ prefix selects Aider's OpenAI-compatible client; the rest is the catalog id):

    aider --model openai/anthropic/claude-sonnet-4-5

Full tool guide: Use any model with Aider

FAQ

Frequently asked questions

Do I need a Anthropic account to use Claude in Aider?

No — one CompanyFabric key covers Claude Sonnet 4.5 and every other model in the library. Billing is one prepaid balance with exact per-call metering; BYOK at 0% is available if you already have provider keys.

What does Claude Sonnet 4.5 cost in Aider?

$3 / M input · $15 / M output — the same metered price as any other route to the model. Set a per-key budget cap to bound what the tool can spend.

Can I switch models later without touching Aider again?

Yes — the endpoint stays the same; the model is a string. Any catalog id works in the same configuration, including cheaper tiers for bulk work.

Explore

Related setups

One key. Every model. Exact prices.

Run Claude in Aider with free starter credits. Free starter credits included — no subscription required.