For the complete documentation index, see llms.txt. This page is also available as Markdown.

Aider

Aider is an AI pair programming tool that works in your terminal. It integrates with TensorX through its OpenAI-compatible API support.

Prerequisites

  • Aider installed (pip install aider-chat)

  • TensorX API key from app.tensorx.ai

Configuration

Environment Variables

Set the following environment variables to connect Aider to TensorX:

# Mac/Linux
export OPENAI_API_BASE=https://api.tensorx.ai/v1
export OPENAI_API_KEY=your-tensorx-api-key

# Windows (PowerShell)
$env:OPENAI_API_BASE = "https://api.tensorx.ai/v1"
$env:OPENAI_API_KEY = "your-tensorx-api-key"

# Windows (Command Prompt)
setx OPENAI_API_BASE https://api.tensorx.ai/v1
setx OPENAI_API_KEY your-tensorx-api-key

Using with Aider

Navigate to your project directory and start Aider with a TensorX model:

The openai/ prefix tells Aider to use the OpenAI-compatible endpoint.

Persistent Configuration

You can also set these in a .env file in your project directory:

Or use Aider's YAML configuration file (.aider.conf.yml):

Available Models

Check TensorX Models for the full list of available models. Popular options include:

Model
Best For

claude-sonnet-4-20250514

Complex reasoning, code generation

claude-3-5-sonnet-20241022

General coding tasks

gpt-4o

Fast responses, multi-modal

gpt-4-turbo

Large context, document analysis

Troubleshooting

Empty responses

If you receive empty responses, verify:

  1. Your API key is correctly set

  2. The base URL includes /v1 at the end

  3. The model name uses the openai/ prefix

Model warnings

Aider may show warnings for unfamiliar models. These can be safely ignored as TensorX handles model compatibility.

Resources

Last updated

Was this helpful?