aider/aider/website/docs/llms/xai.md
2024-11-22 14:21:00 -08:00

24 lines
357 B
Markdown

---
parent: Connecting to LLMs
nav_order: 400
---
# xAI
You'll need a [xAI API key](https://console.x.ai.).
To use xAI:
```
python -m pip install -U aider-chat
export XAI_API_KEY=<key> # Mac/Linux
setx XAI_API_KEY <key> # Windows, restart shell after setx
aider --model xai/grok-beta
# List models available from xAI
aider --list-models xai/
```