Skip to content
Docs/Integrations/Aider

Aider

A terminal pair-programming tool that edits files in your git repo. It reaches any OpenAI-compatible server through two environment variables.

Settings

OPENAI_API_BASE
https://uncensoredllm.xyz/v1
OPENAI_API_KEY
your vk-... key
--model
openai/uncensoredllm-1

Steps

  1. Install Aider: python -m pip install aider-install, then aider-install.
  2. Set the two environment variables. On Windows use setx instead of export, then restart the shell.
  3. Change into your project directory and start Aider with the model name below.
Shell
export OPENAI_API_BASE="https://uncensoredllm.xyz/v1"export OPENAI_API_KEY="vk-..."aider --model openai/uncensoredllm-1

The openai/ prefix tells Aider to use the OpenAI-compatible route. What follows it is our model id.

Context window and prices

Aider warns about models it does not know. Its docs say most people can ignore the warning, and that Aider never enforces these limits. To register the real values anyway, put a .aider.model.metadata.json file in your home directory, the repo root or the launch directory, or pass it with --model-metadata-file:

payload.jsonJSON
{  "openai/uncensoredllm-1": {    "max_input_tokens": 262144,    "max_output_tokens": 65536,    "litellm_provider": "openai",    "mode": "chat"  }}

Check that it works

Start Aider in a scratch repo. It prints the model name it loaded. Ask for a small change to a file and confirm it answers.

When something does not work

  • Unknown model warning Expected for a model Aider has no record of. Use the metadata file above, or ignore it.
  • 404 model_not_found The part after openai/ is not our model id. See models.
  • 401 The key was not exported in the shell you started Aider from. See errors.