← Integrations · Terminal agents

Aider setup via the Kiree gateway

Connect Aider to kiree.net with OPENAI_API_BASE and OPENAI_API_KEY: pair programming in the terminal with catalog models.

Why the gateway

Why the direct setup does not cover every case

Aider normally calls OpenAI/Anthropic endpoints directly. The Kiree gateway exposes an OpenAI-compatible endpoint at https://kiree.net/v1; point the client there with one sk-… key and pick models from the catalog, billed by actual usage.

Setup

Steps to your first request

·

Get a key

Create a sk-… key in the kiree.net console.

·

Set the variables

export OPENAI_API_BASE=https://kiree.net/v1 and export OPENAI_API_KEY=sk-… in your shell profile.

·

Run with a model

aider --model gpt-4o-mini (or claude-sonnet-4-6) in the project folder; edits go through the gateway.

export OPENAI_API_BASE="https://kiree.net/v1"
export OPENAI_API_KEY="sk-…"

aider --model gpt-4o-mini

For Claude models, pass --model claude-sonnet-4-6: Aider selects the Anthropic format through the gateway.

Check: run aider --model gpt-4o-mini with a test edit in the project; charges come from the kiree.net balance.

Models

What to connect in Aider

Any text model from the catalog works on one key. Below are popular options to start.

Diagnostics

Common errors

!

401 Unauthorized

OPENAI_API_KEY is missing or wrong: check the export in the current session.

!

Requests still go to OpenAI

OPENAI_API_BASE was not picked up: re-read the profile (source ~/.bashrc) or pass --openai-api-base.

FAQ

Frequently asked questions

How do I connect Aider through the gateway?+

With OPENAI_API_BASE=https://kiree.net/v1, requests go to the gateway directly.

How is usage billed?+

Tokens are charged from the kiree.net balance based on actual usage; no subscription is required.

Which models suit coding?+

gpt-4o-mini for budget tasks, claude-sonnet-4-6 and deepseek-v4-pro for complex edits.

Get a key for Aider

Create a key in a couple of minutes; pay only for actual usage, no subscription required.