# floo vs Supabase for apps built with AI

Supabase is a Postgres backend your app connects to: auth, row-level security, storage, realtime, and SQL cron. floo runs the app itself, with gateway sign-in for teams, hosted sign-up for customers, and a scoped key per agent.

Canonical URL: https://getfloo.com/blog/floo-vs-supabase-for-agent-built-applications

## TL;DR

**Supabase is a backend your app connects to. You get Postgres with row-level security, Supabase Auth, storage, realtime, and SQL cron, and the web app runs somewhere else. floo runs the app itself next to its Postgres, storage, and jobs. Sign-in for a team happens at floo's gateway with no auth code, customer sign-up is a block in config, and each agent gets a key limited to the routes you name.**

- Pick Supabase for realtime subscriptions, scheduled SQL, or a long list of identity providers.
- Pick floo when you want one place to run the whole app, or when an agent will call it.
- Both keep your users in Postgres tables you can query.

Facts about Supabase come from its own documentation and the official `with-supabase` Next.js template, read on October 22, 2026.

## The two at a glance

| | Supabase | floo |
| --- | --- | --- |
| Web app hosting | Another host, typically Vercel | Included |
| Team sign-in (invite-only) | Supabase Auth, about 448 lines of template code, sign-ups disabled, an invite script holding the secret key | `access_mode = "accounts"` and `floo apps invite <email>`; no auth code |
| Customer sign-up | Supabase Auth with many providers | `[managed.default.users]`: email and password, Google, GitHub, Microsoft, Vercel |
| Where access is enforced | Row-level security policies on each exposed table | floo's gateway, before the request reaches your code |
| Agent credential | Secret keys with full project access | A key per agent, limited to declared routes, rate-limited, logged |
| Scheduled work | Supabase Cron runs SQL | `[cron.<name>]` runs a command in the app's container |
| Idle behavior | Free projects pause after a week without activity | Apps stay warm; Postgres sleeps after 5 idle minutes and wakes in about 0.5 to 2 seconds |
| Paid plan | Pro from $25 a month | Starter, $4 a month for one app with 4 credits included |

## Who writes the session code?

With Supabase, Supabase Auth keeps the identities and your app keeps the session. The official `with-supabase` template generates 11 files for that, about 448 lines: server and browser clients, a proxy that refreshes tokens, and login, logout, and password pages. When Claude builds a Supabase app, those files are part of what it writes and what you review.

An internal tool also has to be invite-only. On Supabase that means disabling sign-ups, editing the invite email template to point at a server route, writing a script that calls `inviteUserByEmail` with the secret key, and deleting the sign-up pages. The built-in email service delivers only to members of your Supabase org, so inviting a colleague outside it needs a custom SMTP provider.

On floo the app has no session code. One line in `floo.app.toml` puts sign-in in front of every page:

```toml floo.app.toml
[app]
name = "ops-desk"
access_mode = "accounts"
```

```bash
floo apps invite teammate@acme.com --role member --app ops-desk
```

floo sends the invitation. Each request arrives with the signed-in person in `X-Floo-User-Email` and the other identity headers, so a handler reads one header to know who is asking.

## Row-level security or a gateway?

Supabase exposes tables to the browser through its API, so access control lives in Postgres. Supabase's docs say to enable row-level security on every table in an exposed schema, then write a policy for each kind of access. So each table Claude adds comes with policies to write and review. Policies are powerful when many users share one table and each should see only their own rows.

floo doesn't expose the database to the browser. The gateway decides who reaches the app at all, and your code decides what each signed-in person can do, in the same language as the rest of the app. For a team tool where everyone invited sees the same data, there is nothing to write. For per-user rules, the check is an ordinary `WHERE` clause on the email from the header.

## What happens when you hand an agent a key?

Supabase has two kinds of keys. Publishable keys respect row-level security. Secret keys bypass it, and Supabase's docs warn that exposing one puts all of a project's data at risk. You can create several secret keys and delete each one, but every one has full project access. A credential limited to what one agent should touch means minting your own JWTs with a custom role, running Supabase's OAuth server and building its consent screen, or writing your own key table.

On floo, an agent is a named consumer with its own key:

```bash
floo apps consumers create stock-agent --app ops-desk
floo apps keys create stock-agent --consumer stock-agent --scope inventory.write --rate-limit-rpm 60 --app ops-desk
```

The key works only on routes declared with the `inventory.write` scope. floo strips it before your code sees the request and passes the verified consumer's identity instead. Every request is listed by key ID, and revoking the key leaves people signed in.

## Customer sign-up on each

For an app the public signs up to, Supabase Auth is the mature option, with a long list of social and enterprise identity providers.

floo's answer is User accounts. Add a table to the app's Postgres block:

```toml floo.app.toml
[managed.default]
type = "postgres"

[managed.default.users]
methods = ["email_password", "google"]
signup = "open"
```

floo runs the sign-in service at `/api/auth` on the app's own domain, so cookies are first-party, and keeps users, sessions, and accounts in a `floo_auth` schema in your Postgres. The app uses the standard Better Auth client and renders its own pages. In dev, any `@test.getfloo.app` address signs up with the code `000000`, so Claude can create a user and test the signed-in pages without a mailbox. The steps are in [how to add login to an app Claude built](https://getfloo.com/blog/how-to-add-login-to-an-app-claude-built).

## Scheduled jobs: SQL or a command

Supabase Cron runs a SQL statement on a schedule with no app code, which is ideal for a nightly cleanup or a rollup table.

floo runs a command in your app's container on a schedule, with the same environment variables and database as the app:

```toml floo.app.toml
[cron.daily-digest]
schedule = "0 9 * * *"
command = "node scripts/daily-digest.js"
service = "web"
```

That suits jobs that call an API, send email, or reuse app code. A job that is only SQL still needs a small script on floo.

## Keeping Supabase and hosting on floo

The two are not exclusive. A Next.js app that already uses Supabase runs on floo like any other app with a Dockerfile. Set the Supabase values with `floo env set`, using `--secret` for the secret key. `NEXT_PUBLIC_` values are compiled into the bundle, so pass them at build time, as in [how to deploy a Next.js app built with Claude Code](https://getfloo.com/blog/how-to-deploy-a-nextjs-app-built-with-claude-code).

## When Supabase is the better choice

- **Realtime.** Live subscriptions to table changes, for chat, presence, or dashboards that update without polling.
- **Scheduled SQL.** Supabase Cron with no container.
- **Identity providers.** More social and enterprise providers for public sign-up.
- **A backend for a frontend you host elsewhere.** If the app already lives on another host, Supabase adds the data layer without moving it.

Choose floo when the software is for a known group of people, an agent will use it too, or you want the app, its data, its sign-in, and its agent keys in one place. For the full Vercel plus Supabase path, step by step, see [floo vs Vercel + Supabase for internal tools](https://getfloo.com/blog/floo-vs-vercel-supabase-internal-tools).

## Sources

- Supabase: [Next.js server-side auth](https://supabase.com/docs/guides/auth/server-side/nextjs), [general auth configuration](https://supabase.com/docs/guides/auth/general-configuration), [inviteUserByEmail](https://supabase.com/docs/reference/javascript/auth-admin-inviteuserbyemail), [email templates](https://supabase.com/docs/guides/auth/auth-email-templates), [SMTP](https://supabase.com/docs/guides/auth/auth-smtp), [API keys](https://supabase.com/docs/guides/api/api-keys), [row-level security](https://supabase.com/docs/guides/database/postgres/row-level-security), [OAuth server](https://supabase.com/docs/guides/auth/oauth-server), [Cron](https://supabase.com/docs/guides/cron), [pricing](https://supabase.com/pricing), [with-supabase template](https://github.com/vercel/next.js/tree/canary/examples/with-supabase)
- floo: [App sign-in](https://getfloo.com/docs/guides/app-auth), [User accounts](https://getfloo.com/docs/guides/user-accounts), [app API keys](https://getfloo.com/docs/guides/app-api-keys), [Postgres](https://getfloo.com/docs/guides/postgres), [cron jobs](https://getfloo.com/docs/guides/cron-jobs), [cold starts](https://getfloo.com/docs/guides/cold-starts), [pricing](https://getfloo.com/pricing)

## FAQ

### Can Supabase give an agent a scoped API key?

Not as a documented feature. Supabase publishable keys respect row-level security, and secret keys bypass it with full project access. A scoped agent credential means minting your own JWTs, running Supabase's OAuth server, or building your own key system.

### How do you make a Supabase app invite-only?

Disable sign-ups in the auth settings, invite each person with inviteUserByEmail from server code that holds the secret key, and edit the invite email template to link to a server route. Supabase's built-in email reaches only members of your Supabase org, so inviting others needs custom SMTP.

### Does Supabase host the web app?

Supabase provides the database, auth, storage, and edge functions. Its official Next.js template runs the web app on a separate host, typically Vercel.

### Does floo have customer sign-up like Supabase Auth?

Yes. Adding [managed.default.users] to an app's Postgres turns on email and password sign-up plus Google, GitHub, Microsoft, or Vercel sign-in. floo runs the sign-in service at /api/auth on the app's own domain and keeps users in the app's Postgres. Supabase supports more identity providers.

### Can I keep Supabase and host the app on floo?

Yes. floo runs any app with a Dockerfile. Set the Supabase URL and keys with floo env set, marking the secret key with --secret, and the app talks to Supabase as before.
