Skip to content
SUMMON

Connect Supabase

Supabase is the back end behind the apps you build with Summon: it stores your app's data, signs your users in, keeps their files and runs server code. This page explains the two ways to give a Summon project a database, how to connect your own Supabase account, how to use a Supabase project you already have, and how Summon asks you before any change that could delete data.

What Supabase does in a Summon project

  • Database. Your app's data lives in tables in a Supabase database.
  • Sign-in. Your users create accounts and log in through Supabase.
  • File storage. Images and other uploads are kept in Supabase storage.
  • Server functions. Code that must run on a server, not in the browser, runs as Supabase functions.

You do not need to set any of this up by hand. Summon's agent creates the tables, the security rules that decide who can see which data, and the storage for you as it builds your app.

Two ways to get a database

When your app needs a database, the agent shows a Connect a database card in the chat. It offers these choices:

ChoiceWhat it means
Use Summon databaseSummon creates and maintains the database for you. You do not need a Supabase account. It is paid in Summon credits: a first charge when it is created, then the same amount deducted automatically every month.
Connect SupabaseSummon creates a new project in your own Supabase account. The project lives in your Supabase organization, you manage it there, and you pay Supabase directly.
Use an existing projectLinks a Supabase project you already have instead of creating a new one. See Use a Supabase project you already have.

Use Summon database and Use an existing project are not offered on every project, so you may see only some of these buttons.

About the Summon database

Before anything is created, Summon shows Let Summon handle your database with the exact number of credits it charges now and every month. Click Confirm to go ahead or Cancel to go back. Creating the database takes one to two minutes.

If your credit balance runs out, the database is paused after a 3-day grace period. Your data is kept and can be restored once you top up. Deleting the Summon project deletes this database and everything stored in it, and stops the monthly charge.

Connect your own Supabase account

  1. In the Connect a database card in the chat, click Connect Supabase.
  2. A Supabase window opens. Sign in to Supabase and approve Summon's access to your account. While you do this, Summon shows Authorizing… sign in to Supabase in the tab that just opened.
  3. If this is your first time on Supabase, Supabase asks you to create an organization first. Create it, close that tab, then click Try again in Summon to finish connecting.
  4. If you belong to more than one Supabase organization, choose the one where the new database will be created. With only one organization, Summon uses it.
  5. Summon creates a new Supabase project and shows Creating database… this takes 1–2 minutes. When it finishes you are back in the chat and the agent carries on building with your database.

If you have already connected your Supabase account, Summon skips the sign-in and goes straight to creating the project.

Use a Supabase project you already have

If you already run a Supabase project, perhaps one with real users and data, you can build on it instead of starting empty.

  1. In the Connect a database card, click Use an existing project.
  2. Sign in to Supabase if you have not connected your account yet (same as steps 2 and 3 above).
  3. Under Choose a Supabase project, you see your projects with their team, region and status. Pick one.
  4. Summon asks Link this project? and explains that it will read your schema and ask you before it changes anything. Click Link project. Nothing is linked until you do.

Which projects you can pick:

  • Only the project owner sees this option. Developers working on your project cannot link a database.
  • You need Owner or Admin access to the project in Supabase.
  • One Summon project per Supabase project. A project already linked to another Summon project shows Already linked to another Summon project. and cannot be picked. A Summon project that already has a database cannot link a second one.
  • Paused projects can be picked with Resume and use. Summon wakes the project up first, which can take a few minutes. A project that is still in the middle of pausing cannot be picked until it has finished.
  • If your Supabase plan has no room to wake a paused project, Summon lists your other running projects so you can pause one and try again.

Because this database may hold your business's live data, Summon treats it more carefully:

  • Every change asks first (see below), as on any other Summon database. Looking at your data never asks.
  • The agent sees the shape, never the data. Before changing anything it reads the list of tables, columns, security rules and functions, never your rows.
  • Summon never deletes or pauses it. Deleting the Summon project leaves your Supabase project untouched.
  • Login settings are only added to. Summon keeps every sign-in setting you already have and only adds its own.

Approve every database change

The agent asks you before every change it makes to your database: adding a table or a column, adding, editing or deleting rows, changing a security rule, and anything else that adds, changes or removes something. Only looking at your data or at the shape of your database runs without asking.

When the agent wants to make a change, it explains it in plain words and you see an Approve a database change card in the chat with the exact change and three buttons:

  • Allow this time runs this one change, once, exactly as you saw it.
  • Allow all changes on my databases runs it and lets the agent make future changes on every project you own without asking you.
  • Deny stops it. The agent does not make the change.

A card nobody answers expires after 15 minutes. It then shows Expired — ask the agent again. Rows you allow the agent to delete cannot be brought back by Summon.

A project you linked with Use an existing project follows the same rule.

Turn "Allow all" on or off

Allow all is your personal choice: it applies to all your databases, not to one project. Open Settings, go to Preferences, and find Database changes. Use the Allow all changes on my databases switch. Turning it on asks you to confirm. While it is off, the agent asks you before each change on databases of projects you own.

If you also work as a developer on Summon, you see a second switch, Allow all changes on customer databases. It covers your ordinary changes on every customer project you work on (see below).

The card's Settings link takes you straight to these switches.

Developers working on your project

A developer working on your ticket is asked before each change their agent makes to your database, and approves their own ordinary changes, such as adding a column or adding, editing or deleting chosen rows. They take responsibility for these changes, and rows they delete cannot be brought back by Summon. Your Allow all switch never covers a developer, and you cannot see or change theirs.

Some changes still come to you, whatever the developer's own settings say: deleting a table or every row in it, deleting or updating rows in Supabase's own sign-in or file-storage tables, and adding database code such as functions, or using your project's own database functions. For these you get a notification and a request on the ticket page, Your developer wants to change your database, with the developer's explanation, the exact change, and Allow and Deny buttons. If nobody answers within 3 days the request is approved automatically; you get a reminder one day before.

Never allowed

A few changes would break your database or expose it to the public, so they are refused for everyone, always, whoever asks and whatever you answer:

  • deleting a whole schema (a top-level section of the database);
  • changing database user accounts or their passwords;
  • opening your data to anonymous visitors;
  • changing the helper functions Summon installs in your database.

Troubleshooting

MessageWhat to do
Popup was blocked. Allow popups for this site, then try again.Allow pop-ups for Summon in your browser, then click the button again.
Sign-in didn't finishIf Supabase asked you to create an organization, create it, close that tab, then click Try again.
No Supabase organizations found.Create an organization in Supabase, then try again.
Project limit reachedYour Supabase organization has no room for another project. Pick a project to Pause, and Summon tries again.
You need Owner or Admin access to this Supabase project.Ask the Supabase project's owner to give you Owner or Admin access, or pick another project.
This project has no usable API keys.In Supabase, open Project Settings → API Keys, create a secret key, then try again.
This Supabase connection was started from another Summon accountSign in to the Summon account that should own the connection and connect Supabase again from there.
This Supabase connection link expired or was already used.Click Connect Supabase again.

We use cookies to improve your experience.