> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fased.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# xAI

# xAI

Fased supports xAI Grok models through an OpenAI-compatible API. In the Control
UI, open **Agent > Models** and use the xAI card.

| Property    | Value                 |
| ----------- | --------------------- |
| Provider id | `xai`                 |
| Auth env    | `XAI_API_KEY`         |
| API         | OpenAI-compatible     |
| Base URL    | `https://api.x.ai/v1` |

Setup methods:

* **xAI sign-in**: browser OAuth for eligible xAI/Grok accounts.
* **xAI device code**: remote-friendly sign-in for hosted or SSH sessions.
* **xAI API key**: paste `XAI_API_KEY` or set it in the gateway environment.

Use device code when the gateway is on a VPS or you are connected over
Tailscale/SSH and cannot rely on a localhost browser callback.

Example default model:

```json5 theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  agents: { defaults: { model: { primary: "xai/grok-4.5" } } },
}
```

Normal first-run surfaces show the current Chat API models:

* `xai/grok-4.5`
* `xai/grok-4.3`
* `xai/grok-build-0.1`

Older Grok 4, Grok 4 Fast, Grok 4.1 Fast, Grok 3, and Grok Code Fast models
are hidden from normal setup after the May 15, 2026 retirement window. Existing
explicit configs are not removed automatically.

Run `fased models list --all --provider xai` to see the full runtime catalog.
