Prerequisites
- Node.js 20+ and npm
- Accounts and API keys for the required services below
Local development setup
Clone the repository
Clone the repo with all submodules. The mobile app and Expo template are git submodules, so
--recurse-submodules is required.Configure environment variables
Copy the example file and fill in your API keys:Open
.env.local and fill in at minimum the six required variables listed above. See the environment variables reference for the full list.Deploy the Convex schema
This pushes your database schema to your Convex deployment. Run this once on first setup, and again any time you change
convex/schema.ts.Start the Inngest dev server
Inngest handles background jobs — spawning sandboxes and running the AI agent. Start it in a separate terminal:The Inngest dashboard is available at
http://localhost:8288. Make sure INNGEST_DEV=true is set in your .env.local.Production build
To build a production-optimized bundle:In production, set
INNGEST_DEV=false (or remove the variable) and configure Inngest to use a real event key from your Inngest dashboard.Updating the Convex schema
Whenever you changeconvex/schema.ts or any file in the convex/ directory, re-deploy your Convex functions: