Skip to main content
Aider is an AI pair-programming tool that edits your local git repo from the terminal. Venice works through Aider’s OpenAI-compatible API support — set the Venice base URL and API key, then prefix the model ID with openai/.

Terminal Pair Programming

Edit your git repo with Venice models from the CLI

OpenAI Compatible

Uses Venice’s /chat/completions endpoint

Any Text Model

Swap in any Venice text model ID

Prerequisites

  • A Venice API key from venice.ai/settings/api
  • Python 3.9+ available on your machine
  • A git repository to work in

Setup

1

Install Aider

Install Aider with the official installer:
See the Aider install docs if you prefer another install method.
2

Configure Venice as the OpenAI endpoint

Point Aider at Venice by setting the OpenAI-compatible base URL and your Venice API key.Mac / Linux:
Windows (PowerShell):
Windows (Command Prompt, persisted):
Restart the terminal after setx so the new variables are available.
3

Start Aider with a Venice model

From your project directory, prefix the Venice model ID with openai/:
Other good starting models:
Browse all text model IDs in the model catalog.

Persist Configuration with .env

For a project-local setup, create a .env file in your git repo root:
Then start Aider normally:
Aider also reads .env from your home directory. Repo-root values take priority over home-directory values. Keep this file out of git — add .env to .gitignore if it is not ignored already.
You can also set AIDER_OPENAI_API_BASE and AIDER_OPENAI_API_KEY. Official Aider docs still document OPENAI_API_BASE and OPENAI_API_KEY for OpenAI-compatible providers.

Persist Configuration with YAML

You can store the same settings in .aider.conf.yml in your repo root or home directory:
Then run:

Verify the Setup

After Aider starts, ask it something small that proves the model is reachable:
If the endpoint and key are correct, Aider streams a response from the selected Venice model. You can also confirm the API key outside Aider:

Choosing Models

Use caseExample model IDAider flag
Strong coding / refactoringzai-org-glm-5-1--model openai/zai-org-glm-5-1
Fast iterationminimax-m25--model openai/minimax-m25
Long-context codingkimi-k2-5--model openai/kimi-k2-5
Uncensored chatvenice-uncensored--model openai/venice-uncensored
Always prefix Venice model IDs with openai/ when launching Aider. Without that prefix, Aider will not route the request through the OpenAI-compatible provider path. Discover current model IDs at runtime:
Or check GET /models/traits for defaults such as text:default.

Config Notes

  • Keep OPENAI_API_BASE set to https://api.venice.ai/api/v1. Do not append /chat/completions; Aider adds the chat path itself.
  • Use a Venice API key in OPENAI_API_KEY. Do not use an OpenAI key with the Venice base URL.
  • Aider may warn that the model has an unknown context window or cost. That warning is expected for many Venice model IDs and is usually safe to ignore. See Aider model warnings.
  • Prefer capable coding/reasoning models for multi-file edits. Smaller or non-coding models may struggle with Aider’s edit formats.
Setting OPENAI_API_BASE and OPENAI_API_KEY in your shell also affects other tools that read those variables. Prefer a project .env or .aider.conf.yml if you use OpenAI elsewhere in the same environment.

Troubleshooting

Confirm OPENAI_API_KEY is a Venice key from venice.ai/settings/api, with no extra whitespace. On Windows after setx, restart the terminal.
Confirm the model ID exists in the text model catalog and that you launched Aider with the openai/ prefix, for example openai/zai-org-glm-5-1.
Check that OPENAI_API_BASE is exactly https://api.venice.ai/api/v1 in the same shell session. Print it with echo $OPENAI_API_BASE (or $env:OPENAI_API_BASE in PowerShell).
Expected for many Venice models. Aider falls back to sane defaults. To silence it, add model metadata as described in Aider advanced model settings.

Resources

Venice Text Models

Browse available Venice model IDs

Aider OpenAI-compatible docs

Official Aider provider setup

Aider config with .env

Persist API keys and model settings

Venice API Reference

Full endpoint and parameter docs