Lovable Cloud Exporter

Free Lovable Cloud to Supabase Exporter

Lovable is great for building. As your app takes off and you want more control and ownership of your data, you'll need to migrate to your own Supabase.

This free, open-source tool moves everything for you: database tables, user accounts, and storage files.

Lovable's official migration guide requires you to:

  • Send a password reset email to every user.
  • Export and re-import tables manually, one CSV at a time, in the right dependency order.
  • Download and re-upload storage files individually.

With real users, that's a dealbreaker. This tool handles the full migration automatically. No password resets, no manual work.

Lovable Cloud
Lovable Cloud
Supabase
Supabase

What you'll need

  • Your Lovable project open in another tab
  • A new Supabase project for the transfer
  • ~10-15 minutes

Not sure where to build and host? Check out your options.

Step 1: Add the migrate helper edge function

First, create a small, temporary endpoint to export your Lovable Cloud data. We'll remove this endpoint after the export.

1

Create an edge function

In your Lovable project, tell Lovable:

Create an empty edge function called migrate-helper

2

Refresh the page to reload the latest code

Sometimes Lovable won't show the new edge function until you refresh the page.

3

Copy and paste the helper function code

First, enter an access key below. Then copy and paste the generated edge function code into Cloud > Edge Functions > migrate-helper > View code, then hit Save in the upper right.

Access key

Protects the temporary edge function so only you can trigger the export. Not stored on Dreamlit servers.

ts

Enter an access key above to get the helper code.

This code creates a secure, read-only endpoint on your Lovable Cloud project. The exporter will use it to fetch your database schema, tables, auth users, and storage files for the migration.

4

Deploy the edge function

Tell Lovable:

Deploy the edge function migrate-helper.

5

Enter your edge function URL

Get this from Cloud > Edge Functions > migrate-helper > Copy URL.

Edge function URL

This applet will use the access key you entered above to connect to your Lovable Cloud and initiate your export.

Step 2: Choose how to export

Connect your Supabase project below to transfer directly.

1

Paste your Supabase connection string

In your Supabase dashboard, click Connect in the top bar. Then, under Connection String, copy andn paste the Direct connection.

Connection string
2

Paste the secret API key

Go to Project Settings > API Keys > Publishable and secret API Keys >. Click "+ New secret key" to create a temporary secret key, then paste it here.

Secret API key
I confirmed the target database is blankUse a fresh or reset Supabase database before starting the export.

Step 3: Run the export

Transfer directly into your Supabase project.

Need help? .

Step 4: Transfer configs

You'll need to transfer over some configs from your Lovable Cloud project over to your Supabase to finalize the transfer.

Migrate env vars

In Lovable, go to Cloud > Secrets and ensure those secrets are copied over to your new Supabase project in Edge Functions > Secrets. This way your new edge functions can access them.

Reconfigure auth settings

Be sure to recreate any enabled auth provider settings in your new Supabase project so your existing login methods keep working against the new backend.

Move over any auth email templates

Copy paste the old auth email templates into your new Supabase project (or route your auth emails via Dreamlit in one-click).

Set up the emails that keep users active (optional)

“Welcome them on signup. Remind them 3 days before their trial ends. Win them back if they go quiet for a week.” Describe it in plain English and Dreamlit builds the entire workflow end-to-end. Preview with live data from your Supabase database, then publish when you're ready.

Step 5: Cleanups

After the export completes, check off each item as you clean up the temporary access you created for the migration.

Remove the migrate-helper function

Tell Lovable to remove the temporary edge function you created for the export.

Remove the edge function "migrate-helper".

Delete the temporary Supabase secret API key

Open Project Settings > API Keys > Publishable Secret Keys and delete the key you pasted into Step 2.

Reset the Supabase database password (optional)

In Supabase database settings, reset the postgres password you used in the connection string.

FAQs

Frequently asked questions

Lovable has documentation for moving to your own Supabase, but the process is rough:

  • Every user needs to reset their password. If you have real users, that's a non-starter.
  • You're exporting and importing table data via CSV, one table at a time, in the right dependency order.
  • Storage files need to be downloaded and re-uploaded individually.
  • Miss a step or get the order wrong, and you're starting over.

This tool handles all of it. Tables, users, and storage move to your Supabase backend without password resets or manual work.

Lovable Cloud is great for prototyping, but you may outgrow it as costs rise or as you need direct ownership of your database, storage, and secrets. Moving to your own Supabase also makes it easier to connect external services like Dreamlit or your own tooling, without being tied to a single platform. You can still keep building in Lovable if you want.

  • API keys, secrets, or third-party service credentials.
  • Login provider settings like OAuth config or redirect URLs.
  • App deployment, DNS, hosting, or the broader app setup.

Dreamlit lets you add professional, branded emails to your app built on Supabase. Connect your database, describe what you want in plain English, and the Workflow Agent builds the entire workflow for you: triggers, templates, and delivery.

You'll need to remove the Custom Email implementation from your Lovable Cloud project and replace it with another email solution (such as Dreamlit or Resend). There's currently no documented way to use Lovable Custom Email on your own infrastructure.

You'll deploy a temporary edge function to your Lovable Cloud project. The exporter uses it to read your tables, users, and storage files, then writes everything into your own Supabase project. Once it's done, you can remove the edge function.

Completely free, no strings attached. Many of our customers at Dreamlit were stuck on Lovable Cloud and wanted to use Dreamlit but couldn't because they didn't have direct access to their database. We started helping them one by one and decided to turn it into a tool so anyone can take control of their data.

The current flow is built around Lovable Cloud, but let us know which other platforms you want next. Hit us up on X or on r/dreamlitai.

Fully open source under the MIT license. You can inspect the code, run the CLI yourself, or self-host the entire tool from GitHub.

No. Your data flows directly from Lovable Cloud to your Supabase project. Nothing is stored on our side. You can always self host the tool or run the commands yourself if you'd like.

We're here to help. Use the chat widget in the bottom right to reach us directly, or send an email to [email protected]. We'll help you through it.