Drop-in OpenAI replacement for Aider
Set your API key in your environment:
export OPENAI_API_KEY=your_api_key_hereNote: Get your API key from aibadgr.com/signup
Set the base URL to AI Badgr:
export OPENAI_API_BASE=https://aibadgr.com/api/v1Important: The base URL must be the OpenAI-style root that contains /chat/completions under it. Use: https://aibadgr.com/api/v1
Run Aider with a specific model:
aider --model gpt-3.5-turboRecommended: gpt-4o-mini (cheap) or gpt-4o (better).
Other OpenAI-compatible names may work, but start with these.
Run: "Summarize this file"
You should see a response.
✓ That's it! You're now using AI Badgr with Aider.
Supports streaming + JSON mode.
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.