Skip to Content
Getting StartedQuick Start

Quick Start

Choose how you want to run BuildPad DaaS:


BuildPad Cloud

The fastest way to start — no Docker, no servers, no Supabase account needed.

New BuildPad Cloud projects run on the Buildpad Engine. Existing projects on the Supabase backend keep running. To move one to the Buildpad Engine, see Move to the Buildpad Engine.

Create your BuildPad account

Go to app.buildpad.ai , click Sign Up, and register with your email.

Create an organization and project

After signing in, create an organization (e.g. “My Company”) and then create your first Project. Each project provisions a dedicated DaaS instance automatically.

Access your DaaS instance

On a Buildpad Engine project, the project’s Details page shows two addresses. The Studio card opens the Studio. The API card shows the Engine URL. Send every API call to the Engine URL, not to the Studio URL. The project’s starter kit holds the project’s tenant id, in NEXT_PUBLIC_BUILDPAD_TENANT_ID.

From your project’s detail page, your DaaS instance URL and credentials are shown. The instance is live immediately — no configuration required.

Get your API token

Sign in at the Engine URL. A BuildPad Cloud project is one tenant on a shared Engine, and your account can belong to more than one tenant there. So name the project’s tenant in the X-Tenant-Id header:

curl -X POST "https://<engine-url>/auth/v1/token?grant_type=password" \ -H "Content-Type: application/json" \ -H "X-Tenant-Id: <project tenant id>" \ -d '{"email": "admin@example.com", "password": "yourpassword"}'

The response holds access_token and refresh_token. After the sign-in, the session holds the tenant, and requests need no X-Tenant-Id.

This is the Engine’s Supabase-compatible sign-in, which the project’s starter kit uses. The Engine’s POST /api/auth/login also works. It takes the tenant as tenant in the body. See Tenants.

curl -X POST https://<your-instance>.buildpad.ai/api/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "admin@example.com", "password": "yourpassword"}'

Response:

{ "data": { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "...", "expires": 3600000 } }

expires is the token lifetime in milliseconds.

Make your first API call

curl "https://<engine-url>/api/items/<collection>?limit=5" \ -H "Authorization: Bearer <your_access_token>"
curl https://<your-instance>.buildpad.ai/api/users \ -H "Authorization: Bearer <your_access_token>"

BuildPad Cloud handles database provisioning, migrations, and updates automatically. Your DaaS instance URL is shown in the project dashboard at app.buildpad.ai . The project’s MCP tokens work on /api/mcp only. They do not work on the data API.


Self-Hosted (Docker)

Run BuildPad DaaS on your own infrastructure against a Buildpad Engine against a Supabase project.

Prerequisites

Get your credentials

You need the Engine’s public origin, for example https://engine.example.com. The browser that shows the Studio calls this origin directly, so the browser must be able to reach it.

From your Supabase project dashboard → Project Settings → API:

VariableWhere to find it
NEXT_PUBLIC_SUPABASE_URLProject URL (e.g. https://xyz.supabase.co)
NEXT_PUBLIC_SUPABASE_ANON_KEYanon / public key
SUPABASE_SERVICE_ROLE_KEYservice_role key (keep this secret)
SUPABASE_INTERNAL_URL(optional) Server-only Supabase URL — overrides NEXT_PUBLIC_SUPABASE_URL for all server-side connections. Useful when Supabase is reachable via an internal hostname in Docker/K8s.

The service_role key bypasses Row Level Security. Never expose it in a browser or public client.

Create a .env file

cat > .env <<'EOF' DAAS_BACKEND=go DAAS_GO_URL=https://engine.example.com HOST_ORIGIN=https://studio.example.com EOF

HOST_ORIGIN is the Studio’s own public origin. The Studio needs no Supabase variable on this backend.

cat > .env <<'EOF' NEXT_PUBLIC_SUPABASE_URL=https://xyz.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key SUPABASE_SERVICE_ROLE_KEY=your-service-role-key EOF

Run the container

Save this as docker-compose.yml:

services: buildpad: image: buildpad-daas:latest ports: - "3000:3000" env_file: .env restart: unless-stopped healthcheck: test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/server/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] interval: 30s timeout: 3s retries: 3 start_period: 60s

Then start it:

docker compose up -d

On first start, the container automatically runs all database migrations before serving traffic. Allow ~30 seconds for this to complete. Check progress with docker logs buildpad -f.

On this backend, the container runs no database migrations. The Engine owns the schema and applies its own migrations.

The container runs one worker process per CPU core, and each worker needs roughly 400 MB of memory. If the container’s memory limit is smaller than cores × 400 MB, cap the worker count with the WEB_CONCURRENCY environment variable (e.g. WEB_CONCURRENCY=2) to avoid out-of-memory kills.

Open the DaaS Studio

Navigate to http://localhost:3000  and log in with the Engine’s administrator account. The Engine’s seed step creates that account. DEFAULT_ADMIN_PASSWORD has no effect on this backend.

Navigate to http://localhost:3000  and log in with the admin account you set up in Supabase Auth (or create one — see Users & Auth).

Studio sign-in page

Get your API token

Sign in at the Engine, not at the Studio. On your own Engine, you usually sign in to the host, so you do not name a tenant. Without tenant in the body, the Engine signs you in to the host if you have a role there, or else to your only tenant:

curl -X POST https://engine.example.com/api/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "admin@example.com", "password": "yourpassword"}'

The response holds access_token, refresh_token, expires, mfa_required and mfa_enrollment_required. On the Engine, expires is the time when the access token expires, in Unix seconds.

To sign in to one tenant, add "tenant": "<tenant id>" to the body. The Supabase-compatible POST /auth/v1/token?grant_type=password shown for BuildPad Cloud also works on your own Engine, with the tenant in X-Tenant-Id. See Tenants.

curl -X POST http://localhost:3000/api/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "admin@example.com", "password": "yourpassword"}'

Response:

{ "data": { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "...", "expires": 3600000 } }

expires is the token lifetime in milliseconds.

Make your first API call

curl https://engine.example.com/api/users \ -H "Authorization: Bearer <your_access_token>"
curl http://localhost:3000/api/users \ -H "Authorization: Bearer <your_access_token>"

What’s Next