Setup
Provider key — Claude Code reads it from the XAI_API_KEY environment variable.
export XAI_API_KEY="..."
Get a key if you don't have one yet.
Details
| Website | https://x.ai |
|---|---|
| GitHub | https://github.com/xai-org |
| License | proprietary |
| Pricing | paid |
| Tags | llm-provider grok xai |