Use AI Badgr with Aider

Drop-in OpenAI replacement for Aider

1

Set API Key

Set your API key in your environment:

Set your API key
export OPENAI_API_KEY=your_api_key_here

Note: Get your API key from aibadgr.com/signup

2

Set Base URL

Set the base URL to AI Badgr:

Base URL
export OPENAI_API_BASE=https://aibadgr.com/api/v1

Important: The base URL must be the OpenAI-style root that contains /chat/completions under it. Use: https://aibadgr.com/api/v1

3

Pick Model

Run Aider with a specific model:

Model name
aider --model gpt-3.5-turbo

Recommended: gpt-4o-mini (cheap) or gpt-4o (better).

Other OpenAI-compatible names may work, but start with these.

4

Verify

Run: "Summarize this file"

You should see a response.

✓ That's it! You're now using AI Badgr with Aider.

Supports streaming + JSON mode.

If it doesn't work

404 Not Found

Your base URL is wrong. It must be the OpenAI-style root that contains /chat/completions under it. Use: https://aibadgr.com/api/v1

401 Unauthorized

Your API key isn't set or wrong. Check that you exported OPENAI_API_KEY in the same shell where you're running Aider.

Model not found

If you see "model not found", start with gpt-4o-mini or gpt-4o.