title | description | sidebar_label | sidebar_position |
---|---|---|---|
Use CodeGate with aider |
Configure aider to use CodeGate |
Aider |
10 |
import AiderProviders from '../partials/_aider-providers.mdx';
Aider is an open source AI coding assistant that lets you pair program with LLMs in your terminal.
CodeGate works with the following AI model providers through aider:
You can also configure CodeGate muxing to select your provider and model using workspaces.
:::note
This guide assumes you have already installed aider using their installation instructions.
:::
To configure aider to send requests through CodeGate:
To verify that you've successfully connected aider to CodeGate, type
/ask codegate version
into the aider chat in your terminal. You should receive
a response like "CodeGate version 0.1.13".
Learn more about CodeGate's features:
If you decide to stop using CodeGate, follow these steps to remove it and revert your environment.
-
Quit aider and unset the environment variables you set during the configuration process:
OpenAI:
unset OPENAI_API_BASE
(macOS/Linux) orsetx OPENAI_API_BASE ""
(Windows)Ollama:
unset OLLAMA_API_BASE
(macOS/Linux) orsetx OLLAMA_API_BASE ""
(Windows) -
Stop and remove the CodeGate container:
docker rm -f codegate
-
If you launched CodeGate with a persistent volume, delete it to remove the CodeGate database and other files:
docker volume rm codegate_volume