mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-13 08:05:01 +00:00
24 lines
357 B
Markdown
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/
|
|
```
|
|
|
|
|