Move to the Buildpad Engine
This page is for you if your Studio runs on the Supabase backend and you want to move your project to the Buildpad Engine backend. It covers BuildPad Cloud projects and self-hosted deployments.
A change of backend does not move data. The Supabase backend keeps the data in a Supabase project. The Buildpad Engine keeps it in its own database. To move, you set up a Buildpad Engine, copy your schema, access rules, users, files and records to it, and then redo the parts that do not copy.
What Changes
The API paths, the response format, the filter syntax and the access model (permissions, policies, roles) are the same on the two backends. These differences affect a move:
- Where the API is. Your app calls the Engine’s URL, not the Studio’s URL.
- Sign-in and sessions. Users sign in at the Engine (
POST /api/auth/login, or the Supabase-compatiblePOST /auth/v1/token). The Engine uses bearer tokens only. It sets no cookie. When the move uses the Engine’s account import, users keep their IDs, their passwords and their authenticator apps. - Access rules. The Engine applies roles and permissions before each request. There is no PostgreSQL row-level security (RLS) to write.
- Tenants. Each session belongs to one tenant.
- Files. The Engine serves files at
/api/files/assets/:id. - Automation. The Engine runs hooks, cron jobs and custom services in its own JavaScript runtime, not in Node.js. File-based extensions and
/api/ext/*endpoints are not available.
For the full list, see Core Concepts: What differs.
What Moves and What You Redo
This table is for a BuildPad Cloud project that you move with the migration tool, to a new project at data service version 2026.10.18 or later. On a self-hosted deployment you do these parts yourself, with the Studio’s and the Engine’s API (see Self-Hosted Deployments).
| Part | How it moves |
|---|---|
| Collections, fields and relations | The migration tool. Some column types and default values change, because the Engine accepts a fixed list of them |
| Roles, policies, permissions and their links | The migration tool. Every permission rule moves. You review the rules whose meaning changes before you switch over (see below) |
| Users | The migration tool. Users keep their IDs, their passwords, their roles (with the tenant each role is for) and their authenticator apps |
| Folders and files | The migration tool. File IDs stay the same |
| Records | The migration tool. Primary keys stay the same, and the ID counters continue after the imported records |
| Scope types and items (tenants) | The migration tool. They keep their IDs and go beneath the new project’s own tenant |
| Project settings: name, look, outgoing email and MCP | The migration tool |
| Hooks, cron jobs and custom services | The migration tool copies the ones that run on the Engine, switched off. You rewrite the others with your AI agent’s migrate-to-engine skill. When you switch over, the tool switches on every one that was on in the old project |
| Workflows | The migration tool |
| App code | By hand, with your AI agent’s migrate-to-engine skill |
These do not move:
- Passwords of users who signed in only with Google or another identity provider. They sign in with XAppHub, or an administrator sets a password.
- Authenticator apps that the old project stored encrypted. Those users keep their account and set up MFA again.
- Values in hashed or concealed fields.
- Database views, functions and triggers, and RLS policies. The Engine applies roles and permissions itself.
- Links from records to workflow instances. The records move, but the link is cleared.
- The old project’s system account and its seeded administrator. The new project has its own.
Permission rules. From Buildpad Engine 0.1.0-dev.13 (data service version 2026.10.18), the Engine resolves every variable that Filter Rules documents, $CURRENT_ROLES, $CURRENT_POLICIES and $CURRENT_RESOURCE_URI included. The Supabase backend treated some of these as empty (null), so a copied rule can give access to more records on the Engine. The tool lists those rules, and you review each one before you switch over. An older Engine resolves only $CURRENT_USER, $CURRENT_USER.<field>, $CURRENT_ROLE and $NOW: rewrite a rule that uses another variable.
BuildPad Cloud Projects
A BuildPad Cloud project keeps its backend for its whole life. New projects run on the Buildpad Engine. Existing projects on the Supabase backend keep running, and you can move them when you are ready. To move a project, you create a new Buildpad Engine project and copy the old project into it with the migration tool. Your platform operator gives you the tool.
The step-by-step guide is Moving to the Buildpad Engine in the BuildPad platform docs. It has the commands, the values to collect and the checks. Follow that guide. This section is a summary.
The move has these stages:
- Prepare. Update the old project to Buildpad DaaS 0.1.96 or later. Create the new project in the same organization, and back it up before the import.
- Practice. Run the export and a dry run of the import. The dry run prints the plan: the schema changes, the accounts, the permission rules to review, the automation to rewrite, and the counts.
- Freeze and copy. Stop all writes to the old project. Then run the export and the import. The tool copies the schema, the access rules, the users with their passwords and authenticator apps, the scopes, the folders and files, the records, the settings, and the automation that runs on the Engine (switched off). It realigns the ID counters.
- Check. The tool compares the counts with the old project’s database. The new project shows more roles, policies and users: every Buildpad Engine project has its own administrator, Workers role and worker account.
- Review and rewrite. Rewrite the hooks, cron jobs and custom services that the tool flagged, with the
migrate-to-engineskill. Review the permission rules that the tool lists. Give a password to each user that the tool lists as having none. - Port the app. Download a starter kit for the new project, and change the app to call the Engine. The tool includes a scanner that lists each place where the code uses a Supabase-only feature, and your AI agent’s
migrate-to-engineskill works through the list. - Switch over. Deploy the app as a new microapp of the new project. After the final export and import, acknowledge the reviewed permission rules and let the tool switch on the automation. Point your users to the new app. Keep the old project stopped, not deleted, for an agreed time. Then delete it.
The export writes your project’s data to a folder on your computer: users’ emails, records and files. Keep the folder on an encrypted disk, do not commit it, and delete it when you finish.
Self-Hosted Deployments
The migration tool is not published for self-hosted deployments. You cannot download it from these docs. To move a self-hosted Studio from Supabase to the Buildpad Engine, you do the same stages with the Studio’s and the Engine’s API. You need an administrator account on each side.
- Set up the Engine. Run a Buildpad Engine and connect a second Studio to it. See Run the Studio on the Buildpad Engine. Keep the old Studio and its Supabase project running until you switch over.
- Update the old Studio. Use Buildpad DaaS 0.1.96 or later. Older versions give the schema snapshot in an older format, without the
collections,fieldsandrelationslists. - Freeze the old deployment. Stop the app, or put it in maintenance mode. Turn off hooks and cron jobs in the old Studio. Changes made after the copy do not move.
- Copy the schema. Get a snapshot from the old Studio with
GET /api/schema/snapshot. Leave out the system collections (daas_*) and views. Send the snapshot to the Engine withPOST /api/schema/diff, read the diff, and apply it withPOST /api/schema/apply. If the Engine refuses a column type or a default value, change it in the snapshot. For example, usegen_random_uuid()in place ofuuid_generate_v4(). See Schema API: Schema Migration. - Copy the access rules. Read the roles, policies, permissions and access links from the old Studio. Create them again on the Engine, in the Studio (see Roles & Policies) or with
/api/roles,/api/policies,/api/permissionsand/api/access. Review each rule that uses a dynamic variable (see Permission rules in What Moves and What You Redo). - Import the users. As a host administrator of the Engine, send the accounts to
POST /api/tenants/:id/users/import, in batches of up to 500. Send each account’s ID, its bcrypt hash from the Supabase project’sauth.users, its roles, and its verified authenticator apps fromauth.mfa_factors(the base32 secret, andcreated_atin RFC 3339 format). Users keep their IDs, their passwords and their authenticator apps. Senddry_run: truefirst to check a batch without writing. The report lists each account with no usable password: give it a password in the Studio (see Users). The request and its report are in the Engine’s API reference (the Studio’s API Explorer). - Copy the files. Download each file from the old Studio (
GET /api/assets/:id) and upload it to the Engine (POST /api/files). If a file gets a new ID, change the file fields in your records to the new ID. - Copy the records. Read each collection from the old Studio with the Items API. Write the records to the Engine with
POST /api/items/:collectionand an array of records, or withPOST /api/utils/import/:collectionand a JSON or CSV file (administrators only). Keep the primary keys. Write the related collections first, so that foreign keys resolve. User references, such asuser_created, stay correct, because the users keep their IDs. - Realign the ID counters. If a collection uses auto-increment integer IDs, call
POST /api/utils/sequences/realignas an administrator of the tenant (send{"collections": [...]}to realign only some). Until you do, a new record can get the ID of an imported one.POST /api/utils/import/:collectionrealigns them for you. - Redo by hand. Create the hooks, cron jobs, workflows and custom services again in the new Studio. Set the project settings again. Change your app to call the Engine: its URL, its sign-in, bearer tokens, and
/api/files/assets/:idfor files. - Switch over. Check the record counts, and test sign-in with a migrated user’s old password. Point your users to the new Studio and app. Keep the Supabase project, stopped, until you are sure that you do not need it.
Steps 6 and 9 need Buildpad Engine 0.1.0-dev.12 or later. On an older Engine, create each user with a new password (POST /api/users, which gives a new ID, so change the user references in your records), and reset each sequence in the Engine’s database.
Practice on a copy first. Run the stages against a test Engine, check the result, and time the run, so that you can plan the freeze.
Related Pages
- Core Concepts: the two backends and how the Studio picks one
- Run the Studio on the Buildpad Engine: connect a Studio to an Engine
- Authentication: sign-in and tenants on the Engine
- Promoting Changes Between Environments: snapshot, diff and apply