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

# xAI CLI

> CLI commands for xAI Grok provider

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    U[Input] --> A[Agent]
    A --> O[Output]

    classDef agent fill:#8B0000,color:#fff
    classDef tool fill:#189AB4,color:#fff

    class A agent
    class U,O tool
```

# xAI CLI Commands

## Environment Setup

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export XAI_API_KEY=xai-...
```

## Commands

### Check Provider Status

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts providers doctor xai
```

### Test Provider

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts providers test xai grok-3
```

### JSON Output

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts providers doctor xai --json
```

## Aliases

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts providers doctor grok
# Same as: praisonai-ts providers doctor xai
```

## Related

> [card] [xAI Code Usage](https://praison.ai/docs/js/providers/xai-code.md)
>
> xAI Code Usage

> [card] [Providers CLI Overview](https://praison.ai/docs/js/providers-cli.md)
>
> Providers CLI Overview


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.