Supabase
Connect the hosted Supabase project your deployed app will use for data and sign-in. Desktop prepares the local database when you start Local Server.
In Cloud → Supabase, choose Connect Supabase and select your project. Desktop saves the project URL and publishable key to the selected Fly TOML file and stages the backend key as a Fly secret.

Apply the hosted schema
Desktop checks the migration history after connecting. For a verified empty dev database with only the Kit's initial schema pending, Set up database gets the migration files and applies them to the named Supabase project. Commit any new SQL with supabase/kambium-schema.json.
For production, upgrades, or app-specific SQL, review the target and pending files before choosing Apply migrations. If Desktop prompts for Supabase CLI or more project access, follow the prompt. Migrations up to date means the hosted project has recorded the local migration files. If the project has existing application data without matching history, see existing database adoption.
Set up sign-in once the dashboard and backend have public URLs.
Supabase access and CLI requirements
Desktop uses a scoped Supabase personal access token for the current session. It passes the token to Supabase CLI v3.2 or newer within v3 when applying migrations.
- To import the project keys, allow Projects (account-wide) Read, API Keys Read and API Key Secrets Read.
- To apply migrations, allow Database Read and Write, Database Pooling Configuration Read and Production Branches Read for the project.
- To apply sign-in URLs, allow Auth Configuration Read and Write and Project Admin Write for the project.
You can also enter Supabase keys directly in Cloud → Configuration.
Set up without Desktop
Run from the app directory with Supabase CLI 3.2 or newer within v3. The Kit's database commands expect supabase/config.toml. Initialize the project if it has no Supabase configuration, then authenticate:
supabase init
supabase loginIf supabase init created supabase/config.jsonc, run supabase config convert --to toml before applying migrations. Supabase CLI config change
For a new, empty hosted database:
npm run db:init -- --remote=your-project-refReplace your-project-ref with the ID in https://<project-ref>.supabase.co. This imports the required SQL and applies all pending project migrations, including application SQL. Check the displayed target and SQL before confirming.
For file preparation without application, use kambium db export init, then review and commit SQL plus supabase/kambium-schema.json. Apply prepared files with kambium db upgrade --remote=your-project-ref. Local development may already have prepared them. Desktop displays that command with the target filled in.
An authenticated Supabase operator session is needed to apply hosted migrations, including a command copied from Desktop. See the Supabase CLI setup and CLI database contract. Deployment and hosted app startup do not apply migrations.
Interpreting checks or retrying a migration
API checks cover connectivity and access to core tables. The migration review compares recorded timestamps with local files, and does not inspect the full hosted schema. Recheck migration history after a failure or cancellation before trying again. Resolve missing or out-of-order history before applying changes.
Existing databases and custom URLs
Existing databases need a reviewed adoption baseline before importing upgrades; do not apply a fresh snapshot over them. Modified SQL, invalid import metadata and unsupported upgrade paths stop preparation. See the schema delivery contract.
For custom project URLs, select the migration target explicitly in the terminal. Desktop application supports standard hosted project URLs only.
For package and schema upgrades, follow Update your application.