Logo von Lovable Cloud Migration

Lovable Cloud Migration

Community
CarolMonroe22
lovable-cloud-migration

Guide for migrating from Lovable Cloud to your own Supabase project. Use when users ask about exporting data from Lovable Cloud, removing or disconnecting Lovable Cloud, pausing Lovable Cloud, restoring a Lovable Cloud .backup export, migrating to their own Supabase, getting data out of managed Lovable database, switching from Lovable Cloud to external Supabase, connecting their own Supabase to a Lovable project, or Lovable Cloud limitations (no SQL editor access, no custom auth emails, no direct Supabase dashboard access, no service role key).

Übersicht

HerausgeberCarolMonroe22
Repositorylovable-cloud-to-supabase-migration
Skill-Namelovable-cloud-migration
Sterne
35
Forks
5
Mitgelieferte Dateien
8
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 8 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von CarolMonroe22 auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Lovable Cloud Migration in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/CarolMonroe22/lovable-cloud-to-supabase-migration/tree/main
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CarolMonroe22/lovable-cloud-to-supabase-migration.git \
  .claude/skills/lovable-cloud-migration
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Lovable Cloud Migration in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Lovable Cloud Migration automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Lovable Cloud Migration nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Lovable Cloud to Own Supabase Migration

Created by Carol Monroe - Lovable Champion and Supabase SupaSquad Member The full migration was verified on a real end-to-end migration (12 tables, 237 rows, 23 users, 40 storage files, 5 edge functions, 2 cron jobs) on 2026-07-06. Password-hash access through Lovable MCP was rechecked on 2026-08-31 without exposing any hash values.

What Changed in v4.1.2 (August 2026)

Lovable's official documentation says that user passwords are not exported in a usable form and recommends a password-reset flow for migrated users. This skill therefore treats password reset as the default path.

The native export is still the primary source for the database, but it must never be presented as a password-preserving export.

An optional advanced route remains available when Lovable MCP query_database can read auth.users.encrypted_password on supported Cloud projects. A boolean-only capability check succeeded on 2026-08-31, and the complete hash-preserving flow was previously verified in March and July 2026. This route is optional, sensitive, and subject to change because Lovable MCP is a research preview.

What Changed in v4 (July 2026)

Lovable shipped official Export, Pause, and Remove buttons for Cloud (Cloud tab > Overview > Advanced settings). Lovable Cloud is no longer permanent. This rewrites the migration playbook:

  • The old "Cloud can never be disconnected" fact is obsolete. You can now export your database, remove Cloud from the SAME project, and connect your own Supabase.
  • The native export file (a pg_dump custom-format backup) is now the PRIMARY database source. Do not assume it preserves usable passwords. Follow the official reset path by default, or explicitly opt into the advanced MCP hash route after a capability check and security confirmation.
  • The old 68-step MCP migration into a fresh Lovable project is now the FALLBACK path, kept for the cases the native export cannot serve.

Naming note: this skill keeps the name lovable-cloud-migration on purpose so v4 REPLACES any earlier install of the same skill (whose "Cloud is permanent" guidance is now obsolete) instead of coexisting with it. If both this and an older copy are somehow present, this one wins - delete the older one.

What This Skill Does

Migrates an entire Lovable Cloud project to your own Supabase: database schema, data, RLS policies, functions, triggers, sequences, auth users and identities, storage buckets and files, edge functions with correct per-function verify_jwt, cron jobs, and secrets inventory. Then removes Cloud and connects the user's own Supabase to the same Lovable project. Passwords use the official reset path by default; the advanced MCP route can preserve existing hashes when available and explicitly approved.

Decision Point (ALWAYS start here)

Ask what the user actually needs, then pick the path:

User's situationPath
"My app burns credits while I'm not working on it"No migration. Pause Cloud (Cloud tab > Overview > Advanced settings). Done.
"I want backups of my Cloud data"No migration. Export project data works standalone, once per 24h, keep building on Cloud.
Ready to run on own Supabase, database ≤ 5 GBSAME-PROJECT PATH (primary, below): Export + auth decision + Remove + Connect on the existing Lovable project.
Database > 5 GB, export unavailable/failing, or user wants the original Cloud project kept untouchedFRESH-PROJECT PATH (legacy fallback): full MCP migration into a new Lovable project. See references/fresh-project-path.md.

Remind the user: Export/Pause/Remove buttons cost no credits. Only agent prompts do.

Why Migrate at All (the right reasons)

Lovable Cloud is a solid managed backend. Migration makes sense when the project needs things only a full Supabase setup provides:

You want to...Why it needs your own Supabase
Customize auth emails (sender, design, content)Cloud sends from no-reply@auth.lovable.cloud
Access the full Supabase dashboardSQL editor, extensions, logs, monitoring
Use the service role keyAdmin operations and some edge functions
Have staging + production environmentsCloud is one database per project
Own your infrastructure long-termYour project, your org, your billing

If none of these apply and the user is happy on Cloud, say so: there is no need to migrate, and Export-as-backup + Pause cover most worries now.

Prerequisites

RequirementNeeded forHow to set up
Lovable account with Cloud enabledEverything-
Supabase accountEverythinghttps://supabase.com
GitHub connected to the projectEverything (function code travels via the repo)Editor > + menu > GitHub > Connect
Lovable MCPStrongly recommended for inventory and source-side checks; required for the optional password-hash preservation route/mcp in Claude Code, or claude.ai Settings > Connectors - https://docs.lovable.dev/integrations/mcp-servers
Supabase MCPDestination-side automation (create project, run every verification)Built into Claude Code - https://supabase.com/docs/guides/getting-started/mcp
pg_restore 16+ with zstdSame-project path Step 14macOS: brew install postgresql@18
GitHub CLI (gh)Fresh-project path onlybrew install gh + gh auth login
Supabase CLIOptional - faster function deploys and storage uploadshttps://supabase.com/docs/guides/getting-started

Works in Claude Code and claude.ai, and also in other MCP-compatible agents like Cursor. Without any MCP, the same-project path still works - the user reads the counts off the Cloud panel by hand and Claude guides the terminal steps.

Choose Migration Level

Ask the user which level they want before starting:

LevelAudienceBehavior
GuidedFirst migration, not technicalExplain each phase, confirm before proceeding, show what is happening
StandardKnows Supabase/LovableConfirm key decisions, run phases with minimal pauses
ExpressAdvanced, done it beforeAsk for source + destination, run everything, report at the gate

Every level stops at the same hard checkpoints: cost confirmation, the Phase 7 gate, and the Remove click.

Key Facts

The native export

  • Format: pg_dump v18 custom format with zstd compression (source Postgres 17).
  • Restoring requires pg_restore v16+ built with zstd. The libpq build from Homebrew does NOT include zstd and fails with "does not support compression with zstd" even when the version number looks fine. Use postgresql@18 (Trap 18).
  • Lovable's documentation says password material is not exported in a usable form. Treat the export as carrying users, not usable passwords, and plan resets unless the optional MCP route is completed and verified.
  • INCLUDED for the supported database flow: schema and data, RLS policies, triggers, custom functions, sequences, cron and storage metadata. Verify every component against the baseline because the export contract can change.
  • NOT included: storage FILES (actual bytes), edge function CODE (lives in the repo), edge function SECRET values, vault secret VALUES (rows restore but are encrypted with the old project's key, unrecoverable cross-project).
  • The export saves INTO the project's own Cloud storage as a bucket named like database_export_06_07_26. Download it before removing Cloud - it dies with Cloud (Trap 17). Limits: 5 GB, one export per 24 hours.
  • The "we'll email you" toast is unreliable. Don't wait for the email: check Storage for the export bucket (~1 minute for a small database).

Passwords: official default vs advanced MCP route

  • Official default: Lovable says passwords are not exported in a usable form. Build and test a password-reset flow before removing Cloud.
  • Advanced option: Run a capability check that returns only counts, never hashes. If non-empty hashes are accessible, explain that the values will pass through MCP/agent execution, obtain explicit approval, then migrate only the minimum required auth fields.
  • Never paste hashes into chat, print them, commit them, or store them in a normal project folder. Delete protected temporary artifacts after the login test.
  • If the capability check fails, the agent cannot guarantee secret-safe handling, or any expected password user lacks a hash, use the reset path for that user. OAuth and passwordless users may correctly have no hash. Do not improvise passwords.

The Lovable side

  • After connecting an own Supabase, the Lovable agent CAN deploy edge functions to it (confirmed directly with the agent, config.toml respected). It CANNOT set edge function secrets - only the user can, in the Supabase dashboard.
  • LOVABLE_API_KEY is a managed WORKSPACE secret, independent of Cloud. It SURVIVES Cloud removal. AI features keep working after re-wiring (Trap 25).
  • Connecting the Supabase integration auto-rewrites .env (correct URL + key, no manual editing). But it may also overwrite src/integrations/supabase/client.ts with a template that breaks SSR on modern (TanStack) stack projects (Trap 23).
  • GitHub sync is two-way. Temporary helper functions you delete in Supabase come BACK if they still live in the repo - delete them everywhere (Trap 24).
  • Remix still does NOT work for migration - it inherits Lovable Cloud.

Security

  • The .backup file contains personal and authentication data and may contain sensitive credential material. Treat it like a password: keep it local, never commit it, delete it after the migration.
  • If the database password touched a chat, a script, or an AI session during the migration, rotate it at the end (Dashboard > Settings > Database).
  • Before pushing any migration artifacts to a public repo, scan them for project refs, keys, emails, and personal data.

THE SACRED ORDER

1. EXPORT      the database (button)
2. DOWNLOAD    the export + the storage files    ← they live inside Cloud
3. BUILD       the new Supabase (restore, fix, upload, deploy)
4. AUTH        test password reset, or explicitly run the MCP hash route
5. VERIFY      the 12-count gate — ALL GREEN or stop
6. REMOVE      Lovable Cloud                     ← only now, nothing before this is destructive
7. CONNECT     your own Supabase to the same project

Nothing is removed until its replacement is alive and verified. At every step before 6, the app still runs on Cloud, untouched. If any step fails, stop and fix - Cloud is the safety net until the gate is green.

SAME-PROJECT PATH (primary)

The full 33-step playbook lives in references/same-project-path.md. Read it when actually running the migration. The shape:

PhaseStepsWhat happensHuman moments
1. Baseline + GitHub1-412-count inventory, repo connected, verify_jwt + secrets mapConnect GitHub if missing
2. Export + Download5-8Official export triggered, found in Storage, downloaded, storage files downloadedExport click, downloads
3. Create destination9-12Supabase project, session pooler connection stringConfirm cost
4. Restore13-16zstd-capable pg_restore, identities fix pass, auth decision, snapshot checkApprove advanced hash route or use reset
5. Post-restore fixups17-21Cron recreate + zombie hunt, ghost rows cleared, files uploaded, URLs rewritten, sequences-
6. Functions + secrets22-25Deploy (CLI/MCP/agent), secrets re-entered, AI re-wired, temp helpers deleted everywhereEnter secrets
7. THE GATE26-2812-category audit vs baseline + tested auth path + image opensGate decision
8. Remove + Connect29-33Remove Cloud, connect own Supabase, fix integration overwrite, final tidyRemove + Connect clicks

Hard stops (never skip, at any migration level)

  1. Cost confirmation before creating the Supabase project (Step 9).
  2. The gate (Step 28): every count green + one tested login through the chosen auth path (original password after MCP preservation, or completed reset), or DO NOT proceed. Cloud stays as the safety net.
  3. Remove is the only destructive click (Step 29) and it is always the user's hand, never automated, never before the gate.

When to read what

SituationRead
Running the primary migrationreferences/same-project-path.md
Export unavailable, DB > 5 GB, or original project must stay untouchedreferences/fresh-project-path.md
Choosing/comparing export methodsreferences/export-methods.md
Storage helper function (fresh-project path)references/migrate-storage-function.md
A symptom needs a fixSymptoms table in references/same-project-path.md, then references/troubleshooting.md

FRESH-PROJECT PATH (legacy fallback)

The complete v3.1 flow - 68 deterministic steps, 9 phases, MCP-driven scan and rebuild into a NEW Lovable project - lives in references/fresh-project-path.md.

Use it when:

  • The database exceeds the 5 GB export cap (also: email support@lovable.dev with the project ID for a manual export).
  • The export feature is unavailable or failing for the project.
  • The user wants the original Cloud project kept running/untouched (staging-style migration with zero risk to the original).

That reference keeps its own trap table (Traps 1-16) and troubleshooting rows.

Traps Added in v4 (17-26, all hit and verified live)

TrapSeverityDescriptionPrevention
17CriticalExport saves INTO Cloud storage - Remove deletes itSacred order: Export -> DOWNLOAD -> Remove last (Steps 5-7, 29)
18Blockerbrew libpq pg_restore lacks zstd, fails on the .backupTest with pg_restore --list first; postgresql@18 (Step 13)
19Criticalauth.identities dropped by restore FK orderingCount check + second data-only pass (Step 15)
20Silent bugcron.job restore = permission denied; restored/recreated commands point at OLD project URL and run against a dead endpointcron.schedule + zombie hunt + cron.alter_job (Step 17)
21Silent bugstorage.objects ghost rows block uploads ("resource already exists"); protect_delete blocks SQL DELETEClear via Storage API/CLI before upload, never SQL (Step 18)
22Silent bugSigned URLs (?token=) die with the old project; text-replace makes them LOOK migratedRegenerate or NULL, never rewrite (Step 20)
23BreakerSupabase integration overwrites client.ts, breaks SSR on modern stackPost-connect fix prompt with explicit Do NOTs (Step 31)
24ZombieTemp helper functions replicate back via two-way GitHub syncDelete in Supabase AND in the repo (Step 25)
25Surprise (good)LOVABLE_API_KEY survives Cloud removal (workspace secret)Re-wire: server functions (recommended) or copy the key (Step 24)
26Data lossRestore is a snapshot at EXPORT time; later writes are missingAsk when writes stopped; re-export or re-apply deltas (Step 16)

Trap Added in v4.1

TrapSeverityDescriptionPrevention
27Account lockoutCurrent Lovable docs say official exports do not contain usable passwordsDefault to reset; use the MCP hash route only after capability check, explicit approval, and secure handling

Human Assistance Points (same-project path)

StepWhat the user must doWhy not automated
1Connect GitHub in the editorDashboard-only flow
5Click Export project dataDashboard-only button
7Download the export zipBrowser download
8Download storage files (small projects)Browser download (scriptable for large)
23Enter edge function secretsNo MCP/agent can set secrets
29Click Remove Lovable CloudDestructive, deliberately manual
30Connect own SupabaseDashboard OAuth flow
33OAuth providers, JWT secretDashboard-only settings
CostConfirm Supabase project costMCP requires explicit confirmation

Plan Requirements

ToolPlan neededCost
LovableAny plan with CloudVaries
SupabaseFree works if slot available$0-$10/mo
Claude Code (optional, automates everything)Pro or Max$20/mo+
claude.ai (optional, no-CLI route)Free/Pro$0+
GitHubFree$0

Documentation Links

Resources by Carol Monroe

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Lovable Cloud Migration?

Guide for migrating from Lovable Cloud to your own Supabase project. Use when users ask about exporting data from Lovable Cloud, removing or disconnecting Lovable Cloud, pausing Lovable Cloud, restoring a Lovable Cloud .backup export, migrating to their own Supabase, getting data out of managed Lovable database, switching from Lovable Cloud to external Supabase, connecting their own Supabase to a Lovable project, or Lovable Cloud limitations (no SQL editor access, no custom auth emails, no direct Supabase dashboard access, no service role key).

Warum Lovable Cloud Migration in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Lovable Cloud Migration besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Lovable Cloud Migration in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/CarolMonroe22/lovable-cloud-to-supabase-migration/tree/main ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Lovable Cloud Migration nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Lovable Cloud Migration verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Lovable Cloud Migration damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Lovable Cloud Migration kostenlos?

Ja. Der Skill wird von CarolMonroe22 auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇