Back to stack index

Cloud

Supabase

Postgres plus auth for quick AI backends.

Short answer

Supabase is an open-source backend platform built on PostgreSQL. A single Supabase project gives you a Postgres database, user authentication, file storage, auto-generated APIs, real-time subscriptions and serverless edge functions. It is one of the most common backends for AI apps, especially those built with AI app builders such as Lovable and Bolt, because pgvector lets the same database store embeddings for semantic search and retrieval. The free plan includes a 500 MB database, 50,000 monthly active users, 5 GB of egress and 1 GB of file storage, and free projects pause after a week of inactivity. Pro starts at $25 a month and Team at $599 a month, with compute billed separately and a $10 monthly compute credit. On October 1, 2026, the OrioleDB storage engine entered public beta on all plans, and from September 25 logs began moving to usage-based pricing. Supabase can also be self-hosted with Docker.

Free plan
500 MB DB, 50k MAU, 5 GB egress, 1 GB storage
supabase.com/pricing
Paid plans
Pro from $25/mo; Team from $599/mo
supabase.com/pricing
October 1, 2026
OrioleDB public beta on all plans
Supabase changelog
License
Apache 2.0 for most components
Supabase GitHub

Updated October 21, 2026How we evaluate tools

Official site

Directory projects (3)

  • Supabase

    Supabase accelerates app backends or internal tools with frameworks you can self-host.

  • NocoDB

    NocoDB accelerates app backends or internal tools with frameworks you can self-host.

  • Baserow

    Baserow combines chat, docs, or meetings in a workspace you deploy instead of a proprietary suite.

Supabase for AI apps: Postgres, pgvector, auth and storage, plus open-source alternatives NocoDB and Baserow in 2026

What Supabase provides

Supabase started in 2020 as an open-source alternative to Firebase, built on PostgreSQL instead of a proprietary document store. Each project includes:

ComponentWhat it doesOpen-source base
DatabaseFull PostgreSQL with extensions, including pgvectorPostgreSQL
AuthEmail, magic links, OAuth, phone and SSO loginSupabase Auth (GoTrue fork)
StorageFiles with access rules, image transformationsSupabase Storage
APIsREST from PostgREST and GraphQL from pg_graphqlPostgREST
RealtimeSubscribe to database changes and broadcast messagesSupabase Realtime (Elixir)
Edge FunctionsServer-side TypeScript on DenoDeno
StudioWeb dashboard, SQL editor and table editorSupabase Studio

Row Level Security, a Postgres feature, controls who can read and write each row. Because the browser talks to the database through Supabase's API, correct security policies are essential.

Which directory projects relate to it

ProjectRelationship
SupabaseThe platform itself, open source and self-hostable
NocoDBOpen-source Airtable alternative that can sit on top of an existing Postgres database
BaserowOpen-source no-code database with AI fields, built on Django and Postgres

Supabase is also the default backend for apps generated by Lovable and Bolt, and a common choice in Next.js AI starter templates.

Plans and pricing

PlanPriceKey limits
Free$0500 MB database, 50,000 MAU, 5 GB egress, 1 GB storage; pauses after 1 week inactive; 2 active projects
ProFrom $25/monthLarger included quotas, daily backups, no pausing; usage billed beyond quotas
TeamFrom $599/monthSSO for the dashboard, SOC 2 reports, longer log retention, priority support
EnterpriseCustomDedicated support, custom terms

Compute is billed separately by instance size, and Pro and Team include a $10 monthly compute credit, which covers the smallest instance. Larger databases for heavy AI workloads, such as vector search over millions of rows, need bigger compute add-ons.

Changes in fall 2026

DateChange
September 25, 2026Logs began moving to usage-based pricing, with a grace period into early 2027
October 1, 2026OrioleDB storage engine entered public beta on Free, Pro, Team and Enterprise

If your app writes large volumes of logs through Supabase, for example detailed request logs from AI features, check the new log pricing before the grace period ends.

AI features

Vector search. Enable the vector extension, add a vector column, create an HNSW index, and query with a SQL function or through the client library. Supabase's docs include full RAG examples with OpenAI, Hugging Face and other embedding providers.

Automatic embeddings. Supabase documents a pattern using database triggers, queues and edge functions to generate embeddings whenever a row is inserted or updated, keeping vectors in sync with content without a separate pipeline.

Edge Functions for model calls. Server-side functions keep API keys out of the browser and can stream model responses. Edge Functions also include a built-in runtime for small embedding models.

AI assistant in Studio. The dashboard includes an assistant that writes SQL, explains queries, designs schemas and drafts Row Level Security policies.

MCP server. Supabase's official MCP server lets coding agents such as Claude Code and Cursor create tables, run queries and manage projects. Use it with a development project and read-only mode where possible; giving an agent write access to production data is risky.

Self-hosting Supabase

Self-hosting runs the same components in Docker. It is useful for data residency, air-gapped environments or avoiding usage fees, but it takes ongoing work:

  • Change every default secret and the JWT keys before going live.
  • Put the API gateway behind TLS and keep Postgres off the public internet.
  • Set up backups yourself with pg_dump or WAL archiving.
  • Track releases of each component and test upgrades.

Platform features such as branching, managed point-in-time recovery and some dashboard tools are limited or missing when self-hosted.

Security pitfalls in AI-built apps

Apps generated by AI builders often reach production with Supabase tables that have Row Level Security disabled or policies that allow anyone to read everything. Security researchers have repeatedly found such apps exposing user data through the public anon key. Before launch:

  1. Enable Row Level Security on every table in exposed schemas.
  2. Write policies that check auth.uid() against the row's owner.
  3. Never expose the service_role key to the browser.
  4. Run Supabase's Security Advisor in the dashboard and fix its warnings.

Building a RAG feature on Supabase

A typical retrieval feature on Supabase uses four pieces. A documents table stores source files, uploaded to Supabase Storage. A chunks table holds text passages with a vector column and a foreign key to the document. An edge function or a background job splits each upload into chunks, calls an embedding model and inserts the vectors. A Postgres function takes a query embedding and returns the closest chunks, filtered by the current user through Row Level Security, so users only retrieve their own documents. Combining that vector query with Postgres full-text search gives hybrid retrieval, which handles exact terms such as product codes better than vectors alone. For a few hundred thousand chunks, this runs comfortably on a small Pro compute instance.

Supabase compared with alternatives

OptionStrength
SupabasePostgres plus auth, storage and APIs in one
NeonServerless Postgres with branching; database only
FirebaseGoogle's backend platform with a document database
AppwriteOpen-source backend platform with its own database layer
PocketBaseSingle-file backend on SQLite for small apps
ConvexReactive backend with TypeScript functions
PostgreSQL on your own serverFull control, more work

NocoDB and Baserow

Some teams want a spreadsheet-like interface over data that AI workflows read and write, such as lead lists, content calendars or labeled evaluation datasets. NocoDB and Baserow fill that role. Both are self-hostable, offer REST APIs, and add AI features such as fields that fill themselves by running a prompt on each row. NocoDB can attach to an existing Postgres database, so a team can browse and edit a Supabase table in a grid view without writing SQL; check that it respects your access rules, since it connects with database credentials rather than Supabase's Row Level Security.

Related: PostgreSQL stack, Vercel stack, Next.js stack, MCP stack, Django stack, Stack index.

Frequently asked questions

Is Supabase good for AI apps?

Yes, for most small and medium apps. It provides auth, a Postgres database with pgvector for embeddings, file storage for uploaded documents, and edge functions for calling model APIs, all in one project. Very large vector collections or heavy GPU workloads need other services alongside it.

Why does my free Supabase project pause?

Free projects pause after one week without activity to save resources. You can restore a paused project from the dashboard. Upgrade to Pro if the project must stay online, for example for a production app or a demo you share.

What is OrioleDB?

OrioleDB is a new storage engine for PostgreSQL, developed by a team Supabase acquired, designed to reduce bloat and improve write performance by changing how Postgres stores row versions. It entered public beta on Supabase on October 1, 2026. Use it for testing, not yet for critical production data.

Can I self-host Supabase?

Yes. Supabase publishes a Docker Compose setup with the database, auth, storage, API gateway, realtime and Studio dashboard. Self-hosted Supabase lacks some platform features, such as managed backups, branching and certain dashboard functions, and you are responsible for updates and security.

What are NocoDB and Baserow, and how do they relate to Supabase?

They are open-source, spreadsheet-style database tools, alternatives to Airtable. Like Supabase they give teams a database with an interface and API, but they are aimed at non-developers building tables and views, while Supabase is a developer backend. NocoDB can connect to an existing Postgres database, including Supabase's.

Sources

  1. Supabase pricing
  2. Supabase changelog
  3. Supabase AI and vectors
  4. Self-hosting Supabase