- pgSchema "mesh" with 4 tables isolating the peer mesh domain - Enums: visibility, transport, tier, role - audit_log is metadata-only (E2E encryption enforced at broker/client) - Cascade on mesh delete, soft-delete via archivedAt/revokedAt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3.0 KiB
3.0 KiB
title, description, url
| title | description | url |
|---|---|---|
| xAI Grok | Setup xAI provider and learn how to use it in the starter kit. | /ai/docs/xai |
xAI Grok
The xAI provider integrates Grok models into your application using the AI SDK.
Setup
### Generate API KeyVisit the [xAI website](https://x.ai) to create an account. After signing in, navigate to your account settings to generate an API key.
### Add API Key to Environment
Once you've acquired an API key, add it to your project's `.env` file (e.g., in `apps/web`):
```bash title=".env"
XAI_API_KEY=your-api-key
```
### Configure Provider (Optional)
The starter kit automatically uses the `XAI_API_KEY` environment variable. For advanced configurations and customization options, refer to the comprehensive [AI SDK xAI documentation](https://sdk.vercel.ai/providers/ai-sdk-providers/xai#provider-instance).
