CMO Studio

Move an app from Lovable or Bolt to your own hosting

You built an app in Lovable or Bolt and want it on hosting you control. This guide shows the steps: code from GitHub, data from Supabase, secrets in a form. It also tells you what may need changes.

Before you start

Apps made in Lovable or Bolt often run on the tool's own hosting and on a Supabase database. You can move them to your own hosting and keep your code and your data. Your code needs to be in GitHub first.

Check this first. Some apps rely on features of the platform they were built on. Examples are sign-in, row-level security rules, or functions that run on the source platform. These do not move by themselves. The app needs changes, and your AI agent can make them. Plan some time for this.

Step 1. Get the code into GitHub

Open your project in Lovable or Bolt. In the tool's settings, connect the project to GitHub, so the code is pushed to a repository you own. Check that the repository has your latest code.

Step 2. Sign up and connect your agent

Create a free account at studio.cmopartners.co. Then connect your agent. In Claude Code:

claude mcp add --transport http cmo-studio https://studio.cmopartners.co/mcp

Type /mcp and sign in. For Codex, Cursor or any other agent that speaks MCP, add https://studio.cmopartners.co/mcp as an MCP server. You choose which projects and rights the agent gets.

Step 3. Connect the repository

Ask your agent:

Create a project on CMO Studio for my repository yourname/my-app and connect it so every push deploys.

The agent picks a runtime (Node.js, Python, .NET or static) and calls connect_github. CMO Studio opens a pull request with the deploy workflow and merges it. The merge starts the first deploy. If the app has a React or Vite client in its own folder, or a static build output, tell the agent. It passes the folders to connect_github.

The repository must be visible to the CMO Studio GitHub App. The agent gives you a link to install it, and GitHub asks you to pick repositories.

Step 4. Move the database

If your app uses a Supabase database, you move the data in a few steps.

  1. The agent creates a Postgres database and links it to the project with create_database. The connection goes into the project's variables.
  2. If your data uses extensions, the agent switches them on first with enable_extension. Supported: pgcrypto, uuid-ossp, citext, pg_trgm, unaccent and vector (pgvector).
  3. You make a dump of the old database:
    pg_dump --no-owner --no-acl --inserts --schema=public <source> > dump.sql
    From a Supabase dump, also remove the row-level security policies, the grants to anon and authenticated, and any references to auth.*. The agent can do this for you.
  4. The agent calls get_import_url. It returns a one-time upload link, valid for 30 minutes, and the curl command to run. The whole file runs in one transaction.

Then ask the agent to check the tables with get_database. It shows the size and the row counts.

Step 5. Move the environment variables

Your app has settings and secrets, such as an email key or a payment key. Do not paste them into the chat. Tell the agent which variable names the app needs. It calls request_env_values and gives you a link to a form. You type the values there.

My app needs STRIPE_SECRET_KEY and WEBHOOK_SECRET. Ask me for the values.

For email, the agent can create a Mail API key with create_mail_api_key. It is written straight into the project's variables. The mail API is Resend-compatible: from, to, subject and html or text. You send from your own verified domain.

Step 6. Files and your domain

If users upload files, the agent creates a bucket with create_bucket. Buckets are public, or private with links that expire. Files up to 100 MB can be copied from a public https address with import_file, or uploaded from your computer with a one-time link.

Your app gets name.madebycmo.com with a free certificate. For your own domain, the agent gives you the DNS records to add, then verifies them.

Test before you switch

Open the new address and click through the app. Ask the agent to read the logs with get_logs. Fix what breaks. Every deploy is a version, and redeploy_version rolls back to one of the last 5. Move your domain only when you are happy.

Your code stays in your GitHub. Your database is standard Postgres. You can export it at any time.

What it costs

Free: 1 project, 1 database of 0.5 GB, 3,000 emails a month, 1 GB of files. Full Stack Start: 23 EUR a month for 3 projects, 3 databases of 5 GB, 10,000 emails and 10 GB of files. See Pricing for AI agents for all plans.

Deploy from Claude CodeMove from Lovable or BoltOne place instead of four toolsSecurityPricing for AI agents

Give your app a home you control

Free to start. Your AI agent does the moving.

Free plan, no card. Made by CMO Partners AS, Oslo. Questions: office@cmopartners.co