Free Lovable Cloud to Supabase Exporter
Lovable is great for building. As your app takes off, you'll want to host it wherever you like, bring your own infrastructure and AI, and own your data. Step one is moving to your own Supabase.
This free, open-source tool moves the data pieces for you: database tables, user accounts, and storage files.
Lovable's built-in export hands you a database backup file, which is real progress. It is still not a migration. To finish the move you need to:
- Restore the backup file with Postgres command-line tools, working through the errors it prints.
- Download storage files separately and re-upload them by hand. They are not in the export.
This tool does the data move in one pass from your browser: database tables, users with passwords intact, and storage files, straight into your Supabase project. For the config that moves by hand, like auth settings, secrets, and scheduled jobs, it gives you step-by-step directions.
679+ people have used this exporter
“All 412 tables transferred successfully and all 125 users came across with their password hashes intact. No forced password resets for our users, which was a dealbreaker with the manual approach.”
“I was able to finish the migration, and now I can build my native companion app off the same database and keep building in Lovable. I'm stoked! Even Lovable, ChatGPT, and Claude all said it was impossible.”
“I've used your exporter and I just want to say what a fantastic tool, thank you!!!”
“Can I start with, this tool is absolutely amazing!”
“The tool has been extremely helpful. We just successfully migrated a client from Lovable Cloud to Supabase. This tool made it much simpler.”
“Thanks a lot for the tool, I transferred the project to Supabase and the data is showing up there.”
What you'll need
- Your Lovable project open in another tab
- A Supabase account (we'll create the project for you)
- ~10-15 minutes
Want additional help? Book an expert migration review ($299, 90 min) or have us do the whole migration for you (custom quote).
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.
Create an edge function
In your Lovable project, tell Lovable:
Create an empty edge function called migrate-helper
Refresh the page to reload the latest code
Sometimes Lovable won't show the new edge function until you refresh the page.
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.
Protects the temporary edge function so only you can trigger the export. Not stored on Dreamlit servers.
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.
Deploy the edge function
Tell Lovable:
Deploy the migrate-helper edge function with verify_jwt = false in supabase/config.toml.
Enter your edge function URL
Get this from Cloud > Edge Functions > migrate-helper > Copy URL.
Test this URL before export. The check uses your access key but does not return credentials.
Step 2: Choose how to export
Step 3: Run the export
Transfer directly into your Supabase project.
Need help? , book an expert migration review ($299, 90 min), or have us do it for you.
Step 4: Transfer configs
Choose where you'll keep building next. The checklist below covers the code and config that still needs to move, including any app Edge Functions.
What's next?
Connect your new Supabase project to a fresh Lovable app and keep the same building flow you're used to.
- In Lovable, create a new app and link it to your migrated Supabase project.
- Bring over the old app source. If the repo includes Supabase Edge Function source, keep it with the code and deploy it in the new project.
- Re-add any API keys, OAuth providers, or third-party secrets in Lovable's settings.
Keep building in Lovable config checklist
These are the handoff tasks for the path you picked above.
Migrate env vars
Copy any app secrets from Lovable Cloud into Supabase Edge Functions > Secrets, and keep client-safe public values separate from server-only secrets.
Redeploy app Edge Functions
The exporter does not deploy existing Edge Functions. Bring their source over with your app code if you have it, deploy them to the target Supabase project, and recreate their secrets.
Reconfigure auth settings
Recreate any enabled auth provider settings in your new Supabase project so existing login methods keep working against the migrated backend.
Swap Lovable AI for your own AI key
AI features built with Lovable AI call Lovable's gateway, which stays behind after migration. Get an API key from Anthropic or OpenAI, ask your app to switch its AI calls to that provider, and store the key as an Edge Function secret.
Move your email sending
Lovable Cloud's managed email does not come along, so auth and app emails stop sending after you cut over. Connect Dreamlit to your migrated Supabase project to keep branded auth and app emails working in a few clicks, or set up a provider like Resend or Postmark and update your email functions.
Recreate your scheduled jobs
Scheduled jobs (cron) are saved with your old project's function URLs and keys baked in, so after migration they either break or keep calling the old backend. Recreate each job in your new Supabase project pointing at the new function URLs and keys, then remove the old ones.
Connect the new Supabase project in Lovable
In Lovable, create or open the app you want to keep building in and connect it to your migrated Supabase project.
Re-add Lovable-side secrets
Add only the third-party secrets your Lovable app still needs in Lovable Cloud > Secrets. Keep Supabase database, auth, and storage owned in Supabase.
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
In Supabase database settings, reset the postgres password you used in the connection string.
Want additional help? Book an expert migration review ($299, 90 min) or have us do the whole migration for you (custom quote).
The exporter is free for every project
Free for every project, big or small. Pay only if you want expert help.
Every project
Free
No card. No size limits.
- Any number of app tables
- Any number of storage files
- Database, users, and storage move in one pass
Optional expert help
90-minute expert migration review
$299
Expert-guided readiness review, blocker diagnosis, and a migration and deployment plan. For people who want confidence before or while migrating.
Done-for-you migration
Custom quote
For teams that would rather hand the whole thing off. From guided support to fully hands-off migration, zero-downtime cutover, and recreation outside Lovable.
Frequently asked questions
Lovable now has a built-in export button, and it is a real improvement. But it hands you a backup file, not a working migration:
- Restoring the file takes Postgres command-line tools (pg_restore) in a terminal, and the restore prints errors you have to judge and work through.
- Storage files are not in the export. You download and re-upload them separately.
- Exports are capped at 5 GB, one per day, delivered by email.
- Auth settings, secrets, and scheduled jobs still need to be rewired by hand.
This tool does the whole data move in your browser instead. Tables, users with passwords intact, and storage files land straight in your Supabase project, and a checklist walks you through the rest.
Use this free, open-source exporter. Deploy a temporary edge function to your Lovable Cloud project, point it at an empty Supabase project, and the exporter copies your tables, users, and storage files in a single pass. Small projects often finish in a few minutes; larger databases or storage-heavy projects take longer.
Yes. The exporter is free for every project size, including big databases and storage-heavy projects.
The exporter is open source, so you can also run it on your own machine for free.
If you want hands-on help, book the $299 expert migration review or ask us about a done-for-you migration.
Yes. Beyond free chat support, there are two ways to get extra help:
- Expert migration review: 90 minutes with an expert ($299) who audits your setup and guides you through the migration.
- Done-for-you migration: the Dreamlit team handles the whole migration for you. Custom quote.
and we'll point you to the right option.
No. The exporter migrates user accounts with their password hashes intact, so existing users do not need to reset their passwords or re-verify their email addresses.
They may need to log in again after you cut over to the new Supabase project. The important part is that password hashes and auth records are preserved, so users can keep using their existing credentials without a forced password reset or email re-verification.
It moves your database tables, user accounts (with passwords intact), and storage files into your own Supabase project. Row-level security policies on tables come across automatically.
No. Supabase Edge Functions are deployed code, not database or storage data. The exporter moves database tables, auth users, and storage files. Bring Edge Function source over with your app code if you have it, then deploy those functions and recreate their secrets in the target Supabase project. See the build and host guide for the path-specific steps.
Yes. The exporter is non-destructive — it reads from Lovable Cloud and writes into a new Supabase project, so your original data stays intact until you choose to retire it. You can keep both running side by side while you cut over.
Lovable Cloud is a managed backend that Lovable provisions for you — convenient for prototyping but billed per usage and tied to Lovable. Connecting your own Supabase project means you own the database, storage, and secrets directly, which can lower ongoing cost and lets you connect external tools like Dreamlit, Claude Code, or Cursor.
Small projects often finish in a few minutes. Time scales with the size of your database and storage, so large databases or media-heavy projects can take much longer. If storage copy fails after the database clone succeeds, you can retry storage without rerunning the database clone.
Storage files are copied bucket-by-bucket into your new Supabase project, and public/private bucket configuration carries over. Row-level security policies on database tables come across automatically. Bucket-level policies configured in the Lovable Cloud UI need to be re-applied in Supabase Studio after the migration.
Yes. The migration engine is open source and ships with a local CLI. When you run the CLI, your Lovable Cloud and Supabase credentials stay on your machine, and migration data only passes through your local runtime.
You have three options: stay on Lovable Cloud and optimize it, move only the backend to your own Supabase project, or leave Lovable for a tool like Claude Code or Cursor. This exporter handles the data move for the last two options without losing users or data.
The exporter is free for every project size, including big databases and storage-heavy projects.
It is also open source, so you can run it on your own machine. If you want help, book the $299 expert migration review or ask us about a done-for-you migration.
Yes. Once your data is in your own Supabase project, you can connect that project to a new Lovable app and keep building on top of infrastructure you control.
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.
- Existing Supabase Edge Function deployments or other app code. Move that source through your app-code workflow, then deploy it in the new environment.
- 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 that data into your own Supabase project. This helper is not a migration for existing app Edge Functions. Once the data migration is done, you can remove the helper.
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.
The CLI, migration runtime, and helper code are open source under the MIT license. You can inspect the code or run the CLI yourself from GitHub.
Hosted transfer jobs are processed transiently by Dreamlit's exporter runtime, and migration data is not kept after the job. You can always run the CLI locally from GitHub if you do not want credentials or data to pass through Dreamlit infrastructure.
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.