Key takeaways
- Lovable gives you the code (GitHub sync on every plan, a zip on paid plans) and, for a Lovable Cloud project, a database export. Claude connected to Inference Bureau turns that into an app with models, permissions and route handlers.
- On a real open-source Lovable app, Supabase tables became models, row-level security became a permissions file, the four Deno edge functions became Next.js route handlers, and the React app kept its pages, components and styles.
- The work Claude does is narrow and checkable: about twenty Supabase calls in the frontend change, and everything else is carried over. Problems and a real browser check confirm it before you deploy anything.
- What you get afterwards is the part a prototype builder doesn't give you: development and production environments, a deploy plan on every pull request, record history you can restore, alerts, and permissions you review as code.
Lovable is a fast way to get from an idea to a working app. The app it gives you is a React frontend talking straight to a Supabase database from the browser, with row-level security in Postgres as the only guard. That shape is fine for a prototype. Once people depend on the app, you want more around it: a development copy you can break, a review before a change reaches production, a record of every write, and a way to undo one.
That's what Apps is for. This guide moves a real Lovable app onto it with Claude doing the translation, and shows each step with what it actually produced.
The app we moved
We picked an open-source Lovable app from GitHub (MIT licensed; we're not naming it). It's a public catalog of one person's film collection on disc: anyone can browse it, and the owner signs in to add titles, nest titles inside box sets, upload cover art and keep a wishlist. In numbers:
| Part | What it had |
|---|---|
| Frontend | Vite, React 18, React Router, Tailwind and shadcn/ui: 11 pages, 14 components, 13 UI primitives |
| Database | 2 tables (titles, wishlist) built up over 10 migration files |
| Row-level security | 8 policies on the two tables: anyone reads, only the owner writes |
| Storage | 1 public bucket for cover images, with policies on who may upload |
| Edge functions | 4 in Deno: three call a scraping API for disc details, one reads a Letterboxd RSS feed |
| Auth | Supabase email and password, owner only |
It's a typical small Lovable app, with each of the parts a move has to handle.
Step 1: get the code out of Lovable
Lovable has two ways out, both documented in its GitHub integration and self-hosting guides:
- GitHub sync, on every plan: Project settings → Git → GitHub → Add connection. Lovable creates a new repository and keeps it in sync both ways on one branch.
- Download codebase, on paid plans: in Project settings → Git, or at the bottom of the code editor's file list. You get a zip.
Either gives you the source, the config, supabase/migrations/*.sql and supabase/functions/*. Neither includes the data: records and stored files come out separately (step 6). Nothing you do here changes the Lovable app, which keeps running until you switch over.
Check which kind of Lovable app you have. Lovable says apps created from May 13, 2026 are built on TanStack Start, with server code of their own; older apps are a Vite single-page app like ours. If package.json lists @tanstack/react-start, it's the newer kind. The steps below are the same, but the pages change more (see "TanStack Start apps" below).
Step 2: connect Claude to Inference Bureau
In Claude, add the Inference Bureau connector from the connectors directory, or add a custom connector with the address https://api.inferencebureau.com/mcp. Claude opens the dashboard in your browser, you approve and pick the team, and it acts as you from then on. No key goes into Claude. See Connectors.
One connector covers the whole move. It creates the app, writes its files, adds models and fields, sets permissions, reads type errors, opens pages in a real browser and reads the event log. Development is where all of this happens; nothing reaches production until you deploy.
We ran the move in Claude Code connected to that same server, so the tool calls below are the ones Claude makes in claude.ai.
Step 3: give Claude the code and the brief
Upload the zip to a chat (with code execution turned on in its settings, Claude can unpack it), or add the GitHub repository to a Claude project. Then give it the brief. This is close to the one we used:
Move this Lovable app to Inference Bureau as a new web app called "Media Vault", in development only.
- Read AGENTS.md in the new app before writing anything.
- Each table in supabase/migrations becomes a model (create_model). user_id becomes a belongsTo user, other foreign keys become belongsTo links, CHECK constraints become enums. Leave out updated_at triggers: every record has createdAt and updatedAt.
- Each RLS policy becomes a grant in accessControl/permissions.ib.ts (grant_role): "anyone can view" is the unauthenticated role, auth.uid() = user_id is a filter on { $session: "userId" }.
- Carry the React app over as it is under web/client/ (not web/src: Next.js would read src/pages as its own pages), rendered in the browser by a catch-all page.
- Replace every supabase call in the frontend: table reads and writes go to route handlers that check who's signed in, functions.invoke goes to /api/functions/, auth uses the app's own sign-in pages.
- Port each edge function to a route handler: Deno.env becomes process.env, the auth.getUser check becomes currentUser(), service-role queries use the records API.
- Check with get_problems and view_page, signed out and signed in. List what you couldn't move.
The brief matters more than any single step. It tells Claude what to keep (the pages, the components, the styles) and what to replace (only what touches Supabase), so the change stays small enough to check.
Step 4: tables to models, policies to permissions
Claude read the ten migrations and made two models. The titles table:
CREATE TABLE public.titles (
id UUID NOT NULL DEFAULT gen_random_uuid() PRIMARY KEY,
user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE NOT NULL,
title TEXT NOT NULL,
media_type TEXT NOT NULL DEFAULT 'Film' CHECK (media_type IN ('Film', 'TV')),
parent_id UUID REFERENCES public.titles(id) ON DELETE CASCADE,
-- 13 more columns, four added by later migrations
);
became one create_model call: user a belongsTo the user model, parent a belongsTo another title (box sets hold their discs), and mediaType an enum with the five values the later migrations allowed, not the two the first one did. Reading the migrations in order is the point: the final shape of a Lovable table is often spread over several files.
The eight policies were all one of two shapes, so they became these grants in permissions.ib.ts:
unauthenticated: { models: { title: { read: true }, wishlistItem: { read: true } } },
"signed-in": {
models: {
title: {
read: true,
actions: {
create: true,
update: { filter: { user: { equals: { $session: "userId" } } } },
delete: { filter: { user: { equals: { $session: "userId" } } } },
},
},
// wishlistItem: the same
},
},
That's the same rule the SQL said, in a file that's reviewed with the rest of the code. See Access control.
Step 5: the frontend and the functions
The React app moved almost untouched. Claude put it under web/client/ and added a catch-all page that renders it in the browser, so React Router picks the page from the address as it did under Vite. Tailwind's config and PostCSS came along. Of the app's own files, these changed:
| Was | Now |
|---|---|
supabase.from("titles") select, insert, update, delete (8 calls in 2 hooks) | fetch to /api/data/titles, a route handler that reads for anyone and writes only for the signed-in owner |
supabase.functions.invoke(…) (5 calls) | /api/functions/<name> |
supabase.storage upload and public URL (2 calls) | a signed upload into the app's public storage, then its lasting CDN address |
supabase.auth (4 calls) and the login page | the app's own sign-in at /sign-in; useAuth asks /api/me who's there |
react-helmet-async | React 19's own <title> and <meta> |
A bulk .update().in("id", ids) | one update per title |
The route handlers answer with the same snake_case rows the components already used, so no component had to learn new field names.
The edge functions became four route handlers. Three were mechanical: the Deno serve wrapper became a POST handler, Deno.env.get("FIRECRAWL_API_KEY") became process.env.FIRECRAWL_API_KEY, and the block that checked the caller's Supabase token became currentUser(). The fourth read and wrote titles with Supabase's service role, so its queries became records API calls:
const filter = { user: { equals: String(user.id) }, mediaType: { notEquals: "TV" }, runtime: { isSet: false } };
const remaining = await api.title.count({ filter });
const { records } = await api.title.findMany({ filter, sort: { title: "Ascending" }, first: 20 });
Step 6: check it, then bring the data
get_problems came back empty. view_page opened / signed out: the catalog rendered with no console errors and no failed requests. Signed in as a development user, /manage showed the owner's controls (Add, Add nested title), and /wishlist rendered at phone width. The rows came from three titles and a wishlist item we added with create_record, since a public repository has no data.
Your own data comes from Lovable separately. For a Lovable Cloud project, Lovable's database export makes a Postgres archive with the schema, data and user accounts, and the database view exports one table at a time as CSV. Stored files are downloaded from Lovable's storage view; the export doesn't include them. Then:
- Tables import as CSV into each model: in the dashboard's record grid, or
ib-apps records import title titles.csv. The import plans first and lists what it can't read. Rename the CSV's headers to the field names (spine_number→spineNumber), which Claude can do for you. See Import and export CSV. - Users are records in the
usermodel. Bring their emails over and send each a password-reset email from the app's sign-in; their old Supabase sessions end at the switch either way. - Secrets don't come with the code. Lovable shows only their names, never their values, so set each one again in Settings → Environment variables. Our app needs
FIRECRAWL_API_KEY.
What Claude didn't do
It's worth being exact about what was left:
- The data. There was none in the repository; your app's comes over in step 6.
- Secrets. The scraping features answer "Firecrawl not configured" until the key is set.
- Old cover images live in Lovable's storage. New uploads land in the app's own storage; the old URLs keep working only while the Lovable project exists, so copy the files and update
coverUrl. - The splash screen in
index.htmlwas dropped. The app's own<head>tags went into the page's layout. - The 64 frontend files went up with
ib-apps pushfrom a folder rather than one connector call per file, because carrying 230 KB through a chat a file at a time is slow. For an app this size or bigger, Claude Code withib-apps devrunning beside it is the faster route (here's that setup).
TanStack Start apps
Lovable apps made since May 13, 2026 use TanStack Start, which runs code on the server. The data, permissions, functions and secrets move the same way. The pages change more: each route file becomes a Next.js page under web/app/, and server functions become route handlers or server actions. Add that to the brief in step 3. We haven't run a TanStack Start app through yet; the next part of this series will.
What you have now
The app works as it did. Here's what's different about running it:
- Development and production. Claude built in development.
ib-apps deploy(or Deploy in the dashboard) ships it to production with a plan first: the file changes, each model change and how many production records it reaches. You can add more development environments when you need them. - Changes reviewed before they ship. An environment can follow a GitHub branch: a push syncs it, and production deploys from it. Every pull request gets the deploy plan as a check, which fails when a change would break existing records, and each pull request can get a preview environment of its own (more here).
- Permissions as code.
permissions.ib.tsis a file in the pull request, not a policy in a database you remember to check. The API reference shows what each role can read and run. - Every write kept. Each create, update and delete is in record history for your plan's restore window, and you can put one model or all of them back to a point in time (more here).
- Something tells you when it breaks. When an action throws, a job gives up, a deploy fails or a route answers 5xx, the team gets an email with links to the events in Logs.
- The whole team in it. Members are unlimited on every plan, and Claude keeps working on the app through the same connector after the move.
The rest of the series
This is part one of moving from the AI app builders. Bolt, Replit, v0 and Base44 each export differently: Bolt can hand its database over as a Supabase project, Replit's is Postgres with a connection string, v0's lives in whichever provider you connected, and Base44's exported code still calls Base44 for its data. Each gets its own guide, written from a real move like this one. Part two moves a Bolt app.
Frequently asked questions
Does moving change anything on Lovable?
No. Exporting the code and the database only reads. The Lovable app keeps running until you point your domain at the new one, so you can move, check and switch over when you're ready.
Can I keep building in Lovable after the move?
Not on the same code. Lovable syncs to its own repository; once the app runs on Inference Bureau, its files live in the app and in your repository from there on. Keep building with Claude through the connector, or with the assistant in the dashboard.
Do I need Claude for this?
No, but it does the slow parts quickly: reading every migration, matching each policy to a grant, and finding every supabase call. Any MCP client that connects to Inference Bureau gets the same tools, and you can do every step by hand with ib-apps.
What about my users' passwords?
Bring users over by email and send each a password-reset email from the app's sign-in. Their Supabase sessions end at the switch-over in any case, so everyone signs in once more.