Lyna Cloud

Lyna Cloud

The backend for your project: a managed SQL database, user sign-in, file storage, secrets, edge functions, an API, payments and reports, all managed from project settings.

Lyna Cloud gives your app a real backend, and you manage all of it from Settings > Lyna Cloud without leaving the editor.

What you can do

  • Set up Lyna Cloud, managed by Lyna, step by step, or connect a Supabase project you already own.
  • Edit tables and rows, run SQL, apply migrations and restore backups.
  • Let people sign up and sign in to your app, and manage their accounts.
  • Upload files to buckets and serve them to your site.
  • Keep API keys out of your code with secrets.
  • Write, deploy and call edge functions.
  • Try every REST, GraphQL, auth and storage request in the API studio.
  • Connect your own Stripe account and query your payment data with SQL.
  • Follow traffic, slow queries and errors in Observability.

The Lyna Cloud pages

PageWhat it holds
DatabaseTables, SQL editor, migrations, backups, logs, security audit, advisor, keys and settings.
UsersYour app's users, sign-in methods, email templates and advanced auth settings.
StorageBuckets, folders and files.
SecretsApp secrets in .env and edge function secrets.
Edge FunctionsYour functions, their code, logs and calls.
APIThe API studio and your connection keys.
PaymentsYour own Stripe account, connected to your database.
ObservabilityReports on the database, the API, auth, functions and storage.

Set up a database

Every Lyna Cloud page runs on the project database. Until you add one, each page shows Add a database first with a Set up a database button.

  1. Open the setup

    Open Settings > Lyna Cloud > Database and choose Set up a database. The Set up database window opens.

  2. Pick where the data lives

    • Lyna Cloud (Recommended): Lyna creates and runs the database for you. The setup walks you through three steps: what Lyna Cloud includes (the database, sign-in, file storage that is private by default and shared through signed links, server functions, secrets, row level security on the tables Lyna creates, and a daily backup while the plan is active), the region (the one nearest you is picked and marked Recommended; it cannot be changed later), and a review. Then choose Create Lyna Cloud.
    • Your Supabase project: sign in with Supabase, choose one of your projects or create a new one, and the setup confirms what is connected.
  3. Wait for it to finish

    The setup shows each step as it runs: the database, sign-in, file storage, live updates and the API keys, then the keys saved to your project's environment. This usually takes a minute or two, and you can keep working. If something fails, the setup says so with Retry, or Back to pick another region. When it is ready, the setup says what is ready and the Database page shows your new database.

When the project already has a database, the chat does not ask: Lyna AI uses the one the project has and calls it by its name, your Lyna Cloud or your Supabase project.

Managed or connected

Lyna CloudYour Supabase project
Who creates itLyna, in a few guided stepsYou, in your Supabase account
How you connectNothing to doSign in with Supabase (OAuth). No keys to copy.
Leave itDelete database removes it and all its dataDisconnect unlinks it and keeps your data, or Delete database removes it

If Lyna loses access to your Supabase account, the pages show a reconnect banner. Choose Reconnect and sign in again.

Idle databases

A Lyna Cloud database of a project with no published site, that nobody uses for 30 days (no visits to its data, no work in the editor or with the AI), is archived: Lyna keeps a full copy of its data and its signed-up users, and stops the database. A project with a published site is never archived.

  • A warning first: seven days before, the project's owner gets an email with a one-click Keep my database link. Using the database in that time keeps it too.
  • Keep always on: in the database settings, the owner or an admin can keep it running for good.
  • It comes back on its own: when you open the Lyna Cloud settings, choose Restore the database, or ask the AI for something that needs it, it comes back with its data and users in about 3 minutes. Its address and keys change, and Lyna writes the new ones to your project's .env for you.

Archiving a database never touches your project's code or pages. Some databases are always kept running: one that stores files, or uses edge functions, sign-in with an outside provider or its own email sender.

Who can use it

  • Plan: your own Supabase project, and its pages, file storage included, work on every plan. Lyna Cloud and its file storage come with the Pro plan of the project's owner, and so do payments. On Free, those pages show what they offer and a See plans button. See Plans and credits.
  • Role: viewers can read the Lyna Cloud pages but cannot change anything, and keys stay hidden. Editors and above can make changes. See Members and roles.

FAQ

Need help?

Ask the team, read what changed, or learn from the blog.