Skip to main content

Installation

PHP 8.2+, Laravel 12 or 13, and Composer. For a single checklist with troubleshooting, use the Integration guide.

1. Install Sanvex

php artisan migrate creates the sv_* tables (Sanvex migrations ship with sanvex/core and load automatically). You do not need a separate Sanvex migrate command. Confirm:

2. Add drivers

Run php artisan sanvex:list again — the new driver should appear.

3. Configuration

Environment variables

Set driver variables in .env (see each driver’s Configuration page). Example for Gmail OAuth:
APP_URL must match your running app and the provider’s redirect URI in their console.

Publish config (optional)

Only needed if you want to edit config/sanvex.php in your app (custom drivers array, overrides). .env alone is enough for most installs.

Encryption key (optional)

Copy the printed line into .env as SANVEX_KEK=.... If omitted, Sanvex uses APP_KEY. Per-driver details: Drivers. Core settings: Configuration.

4. Store credentials

API key drivers (GitHub, Notion internal, etc.):
OAuth drivers (Gmail, Notion public) — set client ID/secret in .env, then visit the built-in login URL (routes register when client ID is set): See Gmail configuration and Notion configuration.

5. Verify

Agent packages (optional)

Laravel AI · MCP

Next step

Usage · Quickstart · Database