Aider¶
You can follow these instructions to use your AI-VERDE API Key with Aider, self-described "AI pair programming in your terminal". More information on installing and using Aider can be found here, https://aider.chat.
Prerequisites¶
- Obtain your AI-VERDE API Key. See Obtaining your AI-VERDE API Key.
- Note the model(s) you want to configure for Aider. See Getting a List of Models.
- Install Aider. Instructions can be found here, https://aider.chat/#getting-started.
- The remaining instructions assume a terminal on macOS or Linux with bash and Aider installed.
1. Configuring Aider¶
-
Create a
$HOME/.aider.conf.ymlfile with the following contents:openai-api-key: insert-your-aiverde-api-key openai-api-base: https://llm-api.cyverse.ai/v1 model: openai/insert-default-model -
Replace
insert-your-aiverde-api-keywith your AI-VERDE API Key. - Replace the text
insert-default-modelwith the AI-VERDE model. For example, to usegemma-4-26b-it, the model field would be set toopenai/gemma-4-26b-it. If the model name contains a slash (e.g.my-team/claude-sonnet-5), keep it as is and addopenai/in front (e.g.openai/my-team/claude-sonnet-5).
Warning
$HOME/.aider.conf.yml holds your API key. Keep it in your home directory and don't commit or share it.
Note
This is the minimal configuration needed to use Aider. If you want to set other configuration for any models, you can add a $HOME/.aider.model.metadata.json file. Instructions on the configuration values that can be set in this file can be found here, https://aider.chat/docs/config/adv-model-settings.html.
2. Running Aider¶
Run Aider with the following command:
aider
Note
You may get additional prompts if you're not in a git repo and if you have not configured your model further (see note above). You can also run aider with aider --no-show-model-warnings if you prefer to ignore model warnings.
If you are successful entering Aider, congratulations!