Lovable Cursor

Move from Lovable to Cursor, step by step

Move your Lovable code to your own GitHub repository and continue building in Cursor with its AI agent. You paste prompts and the agent runs the commands. The steps follow your app, including hosting and database changes if needed.

What you'll do during the migration

Your migration is split into four stages, with step-by-step instructions, detailed explanations and practical examples.

  1. Your setup

    Tell us what your app uses and where you want it to run.

  2. Preparation

    Get GitHub, Node.js and Cursor ready, plus anything else your app needs.

  3. Migration

    Follow 6 to 19 steps, depending on your app. Each shows you what to do and how to check it worked.

    • Push the project to GitHubConnect the Lovable project to GitHub and let Lovable create the repository.
    • Get your code onto your computerCopy the private repository to a folder on your computer.
    • Open the project in CursorOpen the project folder in Cursor and start the Agent chat.
    • Run your app on your computerInstall what the app needs and start it on your computer.
    • Back up your databaseMake a copy of your Supabase database before you change anything.
    • Check where your backend runsFind out if the app uses its own Supabase project or Lovable Cloud.
    • Set up your own Supabase projectCreate a Supabase project you own for the backend that leaves Lovable Cloud.
    • Move your databaseCreate your tables in the new project and copy the data from Lovable Cloud.
    • Move user accountsUser accounts move with the database. Users keep their passwords and only sign in again.
    • Copy uploaded filesCreate the same storage buckets and copy the uploaded files into them.
    • Point the app at your new Supabase projectChange the address and the public key in the .env file to the new project.
    • Set up your Supabase Edge FunctionsDeploy your edge functions with the Supabase CLI and add their secrets.
    • Set up your AI and payment keysAdd the AI and payment keys your edge functions need. If the backend moves, move the payment webhook too.
    • Keep secret keys out of .envCheck that the .env file holds only public values before you push it to GitHub.
    • Tell Cursor about your projectCursor writes an AGENTS.md, a short note it reads at the start of every session.
    • Send your changes to GitHubPush your changes so the new host builds the latest code.
    • Deploy to VercelImport the GitHub repository in Vercel and deploy it.
    • Deploy to CloudflareCreate a Cloudflare Pages project from the GitHub repository and deploy it.
    • Run your app on your own serverCursor deploys the app on your VPS through PanelAlpha Engine, with HTTPS.
    • Deploy every push automaticallyAdd a GitHub webhook so every push deploys the app on your VPS.
    • Make logins work on your new addressAdd the new address to the login settings, so logins do not send people back to Lovable.
    • Make logins work on your computerAdd your local address to the login settings, so links in login emails work on your computer.
    • Point your domain to the new hostChange your domain's DNS records so the domain opens the new host.
    • Keep your code in sync with LovablePull before you work and push when you finish, so Lovable and Cursor stay in sync.
    • Disconnect LovableTurn off the GitHub sync in Lovable so it cannot overwrite your work.
  4. Final check

    Test everything before switching. Your Lovable app stays online until you're ready.

What the steps look like

The Lovable project settings, Git page, with the repository connected and in sync with GitHub
Push the project to GitHub
The Code menu on the GitHub repository with the GitHub CLI tab open and the clone command
Get your code onto your computer
Cursor answering in the Agent chat that the project is a TanStack Start app on React and Vite
Open the project in Cursor
The terminal after npm run dev with the local address the dev server prints
Run your app on your computer
The backups folder in the project with the sql backup file and its size
Back up your database
The Lovable Cloud overview with the database tables, users, storage and secrets
Check where your backend runs
The Create a new project form in Supabase with the project name, database password and region filled in
Set up your own Supabase project
The Supabase Table Editor listing the tables profiles, projects, subscriptions and tasks
Move your database

What you can and can't migrate from Lovable

Comes with your code

  • Your frontend code
  • Supabase migrations and Edge Functions saved in your repo
  • Images and other static files

You'll set this up

  • Your app settings and API keys in a .env file
  • An AGENTS.md file to help Cursor understand your project

Stays with Lovable

  • The visual editor and AI chat
  • Lovable hosting (your app stays online until you move it)
  • Lovable's one-click publishing

How is Cursor different from Lovable?

Full comparison

Prices checked on 15 October 2026. Cursor changed its plans on 12 October 2026. If you already pay for Cursor, you can keep your current plan for now. Cursor says it will move those plans later, with notice. Both change often, so check the pricing pages before you decide.

LovableCursor
What it isAn app builder in the browserA code editor with an AI agent
Where the code livesIn Lovable, synced to GitHubIn a folder on your computer and in your GitHub repo
HostingIncluded, at a lovable.app addressNot included. You pick a host
BackendLovable Cloud (built on Supabase) or your own SupabaseNone. You keep the backend you have
Edit the code by handOn paid plans, in the code editorYes, it is a full editor
Notes for the AIProject knowledge in the settings, or AGENTS.md in the repoAGENTS.md or rules in .cursor/rules
PriceFree plan with daily credits. Pro $25 a month, or $21 billed yearlyFree plan. Plus is $8 a month for Grok models only. Claude, GPT and other models cost extra, by usage

Common problems

The app loads but cannot reach Supabase

Fix: The .env file is missing or the variable names are wrong. Compare them with the ones in the Supabase dashboard under Project Settings, API Keys. Restart the dev server after changing .env.

Login redirects back to the Lovable URL

Fix: Supabase still has the Lovable address as Site URL. Add your local address (the one the dev server prints) to Redirect URLs in Authentication, URL Configuration.

npm install fails

Fix: Check the Node version. Lovable projects expect a current LTS. Delete node_modules and the lock file, then install again.

Cursor answers but changes nothing

Fix: The chat is in Ask mode. Switch it to Agent and paste the prompt again.

Lovable overwrites your local changes

Fix: The GitHub sync is still on. Either pull before each session and push after, or disconnect GitHub in Lovable when you are done with it.

Questions

Do I need to code?

No. Cursor writes the code. You tell it what to change and check the result.

Does the app go offline during the move?

No. It keeps running on Lovable until you turn hosting off yourself.

Should I use Cursor or stay on Lovable?

Stay on Lovable if the visual editor does what you need. Move to Cursor when you want the code in your own GitHub repository and an AI that edits it on your computer, in the Cursor editor. You can also use both: Lovable and Cursor edit the same code through GitHub.

Will I lose my data?

No. Nothing in the guide deletes data. If your plan moves the database, you copy it and the original stays where it is. Export a backup first anyway.

How many steps will I have?

It depends on your app. A simple site that stays on Lovable has 6. An app that leaves Lovable with its data, logins and domain has up to 19. Your plan only shows the steps that apply to you.

Can I go back to Lovable?

Yes. As long as the GitHub sync is connected, Lovable pulls your commits. If you disconnected it, Lovable cannot connect to the same repository again. It creates a new repository, and you move your newer code into it.

What do I need to use Cursor?

Cursor for macOS, Windows or Linux and a Cursor account. There is a free plan. Cursor changed its plans on 12 October 2026, and people already on a plan keep it until they switch. Check cursor.com/pricing before a long move.

Do I need to use a terminal?

No. You paste prompts into the Agent chat in Cursor and the agent runs the commands. Only a VPS with PanelAlpha needs a few commands on the server.

Is the free Cursor plan enough?

The free plan has a small number of agent requests. A paid plan is safer for a whole move. Paid plans start at $8 a month. Prices checked on 14 October 2026.

Where do I tell Cursor how my project works?

In an AGENTS.md file in the project folder, or in rules in .cursor/rules. Cursor's agent reads them. The steps help you write one.

Articles for this move

All guides

Other destinations from Lovable

All Lovable routes

Pick your route.

Choose where you are and where you want to go. The guide takes it from there.