TheaimartAIx DOCS
Home Get API key

Use AIx in Aider

Aider (the terminal pair-programmer) speaks OpenAI-compatible endpoints through LiteLLM. Point it at AIx with two env vars and an openai/-prefixed model.

Setup

export OPENAI_API_BASE="https://api.aix.theaimart.co/v1"
export OPENAI_API_KEY="tam_your_key_here"

# Prefix the AIx model id with openai/ so Aider routes to the compatible endpoint:
aider --model openai/anthropic/claude-sonnet-4-6

Other models, same pattern:

aider --model openai/deepseek-ai/DeepSeek-V3.2
aider --model openai/moonshotai/Kimi-K2.7-Code
Recommended

openai/anthropic/claude-sonnet-4-6 for the strongest edits; openai/deepseek-ai/DeepSeek-V3.2 for cost-effective work. Browse the catalog for more.

Persist it

Add to ~/.aider.conf.yml so you don’t retype it:

openai-api-base: https://api.aix.theaimart.co/v1
model: openai/anthropic/claude-sonnet-4-6

(Keep the key in the OPENAI_API_KEY env var, not the config file.)

Note

The openai/ prefix is required — it tells LiteLLM to use the OpenAI-compatible driver against OPENAI_API_BASE; the rest (anthropic/claude-sonnet-4-6) is the AIx model id.

Last updated July 18, 2026

Was this page helpful?