Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 1.91 KB

aider.mdx

File metadata and controls

74 lines (49 loc) · 1.91 KB
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:

  • Local / self-managed:
  • Hosted:
    • OpenAI and OpenAI-compatible APIs

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.

:::

Configure aider to use CodeGate

To configure aider to send requests through CodeGate:

Verify configuration

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".

Next steps

Learn more about CodeGate's features:

Remove CodeGate

If you decide to stop using CodeGate, follow these steps to remove it and revert your environment.

  1. Quit aider and unset the environment variables you set during the configuration process:

    OpenAI: unset OPENAI_API_BASE (macOS/Linux) or setx OPENAI_API_BASE "" (Windows)

    Ollama: unset OLLAMA_API_BASE (macOS/Linux) or setx OLLAMA_API_BASE "" (Windows)

  2. Stop and remove the CodeGate container:

    docker rm -f codegate
  3. If you launched CodeGate with a persistent volume, delete it to remove the CodeGate database and other files:

    docker volume rm codegate_volume