Connect Supabase and Resend, and add keys
Apps that save data, have accounts or send email need outside services. The Agent works with Supabase for the database and sign-in, and Resend for email. Everything is in App settings on your app’s page, and only the workspace’s owners and admins can connect services or change keys.

Connect Supabase
Section titled “Connect Supabase”You need a free Supabase account and a project. Create one at https://supabase.com if you don’t have one.
-
On your app’s page, open App settings, then Integrations. (Or choose Database in the chat’s + menu.)
-
Next to Supabase, select Connect and sign in to Supabase.
-
Under Choose the project for this app, pick one of Your Supabase projects.
The app’s settings are filled in for you, and the Agent can see which tables your project has. Ask for what you need in plain words, for example “Let customers sign up and see only their own bookings”.
You approve every database change
Section titled “You approve every database change”When the Agent needs to change your database, such as adding a table or a security rule, the chat shows A change to your database, waiting for you. Select Show the SQL to read exactly what will run, then Approve and apply, or decline it. If a change removes tables, columns or data, the card says so first.
The same goes for Supabase Edge Functions the Agent writes: they’re deployed only when you approve them, and their code is kept in your app’s versions.
To disconnect, select Disconnect next to Supabase. The app keeps its settings and your data stays in Supabase.
Connect Resend for email
Section titled “Connect Resend for email”For confirmations, receipts and contact forms, connect a free Resend account (https://resend.com).
-
In App settings, under Integrations, select Connect next to Resend (or Send email from your app in the + menu).
-
Sign in to Resend and allow access.
We make a sending-only key for this app and add it to its settings as RESEND_API_KEY, then let go of the sign-in. Until you verify your own domain in Resend, emails come from Resend’s test sender, which only delivers to your own address. Once you verify a domain, ask the Agent to send from it.
If your app has both Supabase and Resend with a verified domain, its sign-in emails are sent through Resend too.
Add your own keys
Section titled “Add your own keys”For other services, such as Stripe or a map, add their keys yourself.
-
In App settings, open Environment variables and select Add variable. To add several at once, select Paste a .env file.
-
Type the Name, such as
STRIPE_SECRET_KEY, and paste the value. -
Choose Secret (only the app’s server can read it, and the AI never sees the value) or Public (sent to the browser with your pages, fine for publishable keys). Names starting with
NEXT_PUBLIC_are public.
When the Agent needs a key, it asks you in the chat, and the value goes straight into your settings, never into the chat. Changes reach the preview right away, and Publish copies them to your live site.