Integrations
Use Aider with any model
Aider takes a custom base URL either as a flag or from the environment. Connect to Hopscotch to use any model in the catalog.
Set it up
- 01
The configuration surface
Aider takes the base URL either as a flag or from the environment:
bashexport OPENAI_API_BASE=https://api.hopscotchlabs.ai/v1 export OPENAI_API_KEY=ub_live_YOUR_KEY_HEREThe flag form is --openai-api-base, and its own environment variable is AIDER_OPENAI_API_BASE.
Include the version segment in the value.
- 02
The three models
It configures up to three models separately, and each one needs its own pinned id:
- --model
- The main model.
- --editor-model
- Applies the edits in architect mode, where the main model proposes them.
- --weak-model
- Commit messages and chat-history summarisation.
Set all three explicitly if you use architect mode or let Aider write your commit messages.
- 03
The model id, and the prefix collision
Aider's documented way of naming a model on a compatible endpoint is to prefix it with openai/.
Our ids already begin with the provider that serves them, and for models served by OpenAI that provider is also openai. So a pinned id and Aider's prefix convention produce a doubled first segment:
bashaider --model openai/openai/gpt-4o-miniWe did not verify what reaches the wire in that case.
An id whose provider is not openai does not have this problem, because the prefix and the provider are then different strings.
- 04
Keep the key out of the repository
Aider reads .aider.conf.yml and .env from your home directory, your repository root and the current directory, in that order, with the later files overriding. Two of those three locations are inside the repository. Aider can add its own files to .gitignore for you, and the safe habit is the home-directory copy plus the environment variables above.
Models that fit an agent
These models support tool calling and take at least 128K tokens of context. Prices are per million tokens.
| Model | Context | Max output | Input /1M | Output /1M | Cached input /1M | Providers | Released |
|---|---|---|---|---|---|---|---|
| Gemma 4 E4B ITGoogledeepinfra/gemma-4-E4B-it | 131K | 8K | $0.02 | $0.10 | n/a | Deepinfra | 2 Apr 2026 |
| GPT OSS 20BOpenAIdeepinfra/gpt-oss-20b | 131K | 16K | $0.03 | $0.14 | n/a | Deepinfra | 5 Aug 2025 |
| GPT OSS 120BOpenAIdeepinfra/gpt-oss-120b | 131K | 16K | $0.04 | $0.17 | n/a | Deepinfra | 5 Aug 2025 |
| Command R7BCoherecohere/command-r7b-12-2024 | 128K | 4K | $0.04 | $0.15 | $0.04 | Cohere | 2 Dec 2024 |
| Nemotron 3 Nano 30B A3BNVIDIAdeepinfra/Nemotron-3-Nano-30B-A3B | 262K | 262K | $0.05 | $0.20 | n/a | Deepinfra | 15 Dec 2025 |
| DeepSeek V4 Flash 0731DeepSeekdeepinfra/DeepSeek-V4-Flash-0731 | 1M | 384K | $0.06 | $0.18 | n/a | Deepinfra | 31 Jul 2026 |
What changes when Aider runs through Hopscotch
- One key for every model
- Switch models in Aider by changing the model name.
- A budget for this tool
- Give Aider its own key with a daily limit. A long session stops at the limit.
- Every call in Activity
- Each request Aider sends shows up with its model, provider, tokens and cost.
- List price
- You pay each provider's list price per token, with no markup.
Aider questions
Do I need an account with each provider?
No. One Hopscotch key covers every model in the catalog, and you buy credit once.
Which model name goes in Aider?
The ID from the models page, such as deepinfra/gemma-4-E4B-it. The provider comes first, then the model.
Will Aider get a different model than the one I picked?
No. Hopscotch runs the model you name. To add a backup, set up a routing profile.
Can I use my own provider key with Aider?
Yes. Add the key in your dashboard. Requests to that provider run on it.