Grok API for Aider
Connect Aider to Grok 4.5 through the OpenAI-compatible GrokAPI endpoint.
1. Install Aider
Install Aider with its official installer. Run these commands in a terminal.
Terminal
python -m pip install aider-install
aider-install2. Create a GrokAPI key
Create a project key in your dashboard. Keep it private and do not commit it to the repository.
Create a key3. Configure the endpoint
Set the OpenAI-compatible base URL and API key for your current terminal session.
export OPENAI_API_BASE=https://api.llm-gate.tech/v1
export OPENAI_API_KEY=sk-grok-YOUR_API_KEY4. Start Aider
Open your project directory and start Aider with the openai/ prefix before the model ID.
Terminal
cd /path/to/your/project
aider --model openai/grok-4.5