# vgrid ai

AI configuration and diagnostic commands.

## ai doctor

Check AI configuration and test provider connectivity.

```bash
vgrid ai doctor [options]
```

| Option | Description |
|--------|-------------|
| `--json` | Output as JSON for machine parsing |
| `--test` | Test provider connectivity (requires network) |

```bash
# Check AI config
vgrid ai doctor

# Check config and test connectivity
vgrid ai doctor --test

# JSON output for CI
vgrid ai doctor --json --test
```

Without `--test`, the command checks local configuration only (no network calls). With `--test`, it attempts to reach configured AI providers and reports latency and status.