Stage 2 · Bring in your agent

How to use Claude Code on your Lovable app, and keep Lovable

Connect the project to GitHub in Lovable, open that repository in Claude Code, and let it push its changes back. Lovable keeps hosting the app and running its database, so your users notice nothing. You still click Publish to put a change live.

Checked against Lovable’s, Vercel’s and Supabase’s own documentation on 29 September 2026.

The short version

  1. Connect GitHub in Lovable. Open Project settings → Git → GitHub, or the + next to the chat box, then Project → GitHub, and click Connect. Lovable creates a new repository in your GitHub account and starts syncing both ways. The repository is private by default, and GitHub sync on github.com is available on every Lovable plan (Lovable docs).
  2. Install Claude Code. It comes in the Claude desktop app, in the Code tab, and it needs a paid Claude plan: Pro, Max, Team or Enterprise (Claude Code docs). Codex, OpenAI’s agent, works the same way on the same repository.
  3. Let the agent work on the repository. It copies the repository to your computer, makes the change, and pushes it. Commits pushed to the synced branch appear back in your Lovable project (Lovable docs).
  4. Click Publish in Lovable. A push updates the project inside Lovable, not your live site. Lovable’s own answer to “Does pushing to my repository update my live site?” is “No … it never publishes” (Lovable docs). Publish → Publish changes puts it live, and the Publish button is free, while asking Lovable’s chat to publish costs credits (Lovable docs).

That is the whole move for most people. Your code sits in an account you own, your agent builds, and Lovable keeps doing the hosting, the database, the logins and the files.

Three rules that keep the sync working

What the copy on your computer does not have

What it costs

What changes is who does the building. People who work this way describe the saving in their own numbers: “If I had done all of that in Lovable, I estimate it would’ve cost $500-800 in tokens” (r/lovable, December 2025), and “Use Codex or Claude Code for precise edits … Go back to Lovable mainly to publish. This saved me way more credits than trying to write ‘better prompts’” (r/lovable, June 2026). Those are their results, not a promise about yours.

Do you need to leave Lovable for this?

No. This is stage 2 of six, and it moves nothing your users depend on. Move the hosting or the data only when something in your business asks for it. If you are weighing the two tools against each other, see Lovable vs Claude Code.

Where this fits

This is part of stage 2, bring in your agent. Other short answers:

Not sure which stage your app is in?

The free check asks five questions about your app and gives you the path, what usually breaks on it, and what it costs. It asks; it does not look at your app. About a minute, no email.

If you would rather have your AI agent do the work with you, the kit is $19, one payment: the full guide, an agent skill that runs each stage, guardrails and checks.