Aider
Route Aider through Stockyard with the --openai-api-base flag.
CLI Configuration
Pass the Stockyard endpoint directly when launching Aider:
aider --openai-api-base https://your-stockyard-instance.com/v1 \
--openai-api-key your-stockyard-api-key
Environment Variables
Or set environment variables so every Aider session routes through Stockyard:
export OPENAI_API_BASE=https://your-stockyard-instance.com/v1
export OPENAI_API_KEY=your-stockyard-api-key
Config File
For persistent configuration, add to ~/.aider.conf.yml:
openai-api-base: https://your-stockyard-instance.com/v1
openai-api-key: your-stockyard-api-key
Verify
Run aider and send a message. Check Stockyard’s Observe dashboard to see the trace with model, tokens, latency, and cost.
Tip: Aider uses the OpenAI-compatible API. Stockyard’s
anthrofit and geminishim modules let you use Claude and Gemini models through the same endpoint.