Set up Aider with GLBNXT

Introduction

Aider is a command-line AI pair programmer that allows you to edit code in your local git repository. Unlike standard chat interfaces, Aider "talks" directly to your files, applying edits, performing refactors, and committing changes automatically. By connecting it to GLBNXT, you get the power of high-performance models directly within your terminal workflow.

Prerequisites

Configuration

After Aider is successfully installed on your device, open the project file you want to have Aider co-code in. Then the configuration consists of three steps:

1. Add .env file

Create a file named .env and add the following three lines:

AIDER_OPENAI_API_BASE=https://ai.glbnxt.com/v1
AIDER_OPENAI_API_KEY=sk-***
AIDER_MODEL=openai/MODEL_ID

Use this template, replacing MODEL_ID with the exact Model ID found in the GLBNXT Model Hub.

2 .Add .json file

Create a file named .aider.model.metadata.json and add the following to it:

Use this template, replacing MODEL_ID with the exact Model ID found in the GLBNXT Model Hub and VALUE by your chosen amount of tokens.

  • Tip: The Context Window ("max_context_tokens") can be found in the GLBNXT Model Hub under Technical Specifications when clicking on your preferred model.

3. Run Aider

Execute the following command in your terminal to start the session:

Visit their Usage Page to get the most out of Aider.

Advanced settings

To optimize your experience with Aider, we encourage you to visit their Advance Model Settings Page. Here you can find extensions for the .json file and why to create a .yml file. To get you started with the latter, here is an easy-to-follow example: Create a file named .aider.model.settings.yml and add the following to it:

Use this template, replacing MODEL_ID with the exact Model ID found in the GLBNXT Model Hub.

Troubleshooting

  • Model ID Mismatch: If Cline fails to initialize, double-check that the key in Model ID matches the ID in the GLBNXT Model Hub exactly.

    • Note: to use glbnxt/Devstral Small 2, do not use the Model ID (glbnxt/devstral-small-2), but use the Model name glbnxt/Devstral Small 2.

For more information reach out to the Aider Documentation Page.

Last updated

Was this helpful?