Blog · Guide
Host a Lovable or Cursor app privately, with login and a database
You built something with Lovable or Cursor: a client portal, a tracker for your team, a tool for one customer. Now it has to be online, but only for some people, each signing in as themselves, with the data kept somewhere that survives the next change. This guide covers that with Basemodo, from the code to a private link.
What you'll end up with
- The app at its own address,
your-app.basemodo.app, or on your domain. - Private: only the people you invite get in. Basemodo signs them in with an emailed link, Google or GitHub, so you write no login code.
- A database on a disk that survives every deploy, backed up for you.
- A new deploy every time you change the app, from Lovable, Cursor or your agent.
1. Get the code somewhere Basemodo can read it
If you built it in Lovable, connect the project to GitHub in Lovable. Lovable creates a repository and keeps it in sync both ways, so every change you make in Lovable lands there as a commit.
If you built it in Cursor, the app is already a folder on your computer. You can deploy that folder directly, or push it to GitHub first if you want a deploy on every push.
2. Deploy it
You need a Basemodo account with a Plan. Starter is $5 a month for one app, and Pro is $18 a month for five.
The easiest way is to ask the agent you already use. Set up Basemodo for Claude, ChatGPT, Cursor or another agent, then ask:
Deploy this app to Basemodo and give me the link.
From a terminal, install the CLI and deploy the folder:
curl -fsSL https://basemodo.com/install | shbasemodo deployBasemodo works out how to build and run the app and gives you a URL in about a minute. If the folder is a clone of a GitHub repository, basemodo deploy offers to link the app to it, and from then on every push deploys it. For a Lovable project, that means every change you make in Lovable goes live by itself. See Deploying from GitHub.
Lovable apps created since May 2026 are TanStack Start apps: they render pages on a server, not only in the browser. Basemodo detects them and runs that server.
3. Keep it private and invite people
Every app on Basemodo starts private. Opening the link without an invitation shows a sign-in page, and after sign-in, a page saying they have no access.
Invite people by email, from the terminal, from the app's page on basemodo.com, or by asking your agent:
basemodo share ana@client.com ben@client.comEach person gets an email with a link. They sign in with that link, Google or GitHub, and the app opens. Nobody needs a password or a Basemodo Plan to use an app you shared.
Other ways to share, when you need them:
--visibility workspace: everyone in your company's Workspace gets in.--visibility link: anyone with the address who signs in.--visibility public: anyone, with no sign-in, for a page meant for everyone.
4. Know who is signed in
Basemodo tells the app who each visitor is on every request, in the headers X-Basemodo-Email, X-Basemodo-Id and X-Basemodo-Role. The app reads them to show "Hello, Ana", keep each person's records apart, or let only the owner see a settings page. Ask your agent to use them: "Use the X-Basemodo-Email header as the signed-in user." Who is visiting has examples.
If your Lovable app already has a login screen of its own, your users now sign in twice. Ask your agent to remove the app's login and use Basemodo's headers instead.
5. Choose where the data lives
Every Basemodo app has a SQLite database at /data/app.db (its path is in $BASEMODO_DB), on a disk that keeps its data through every deploy. You don't create it or connect to it: the app opens the file. Pro and Workspace back it up every hour.
If you built the app in Cursor, ask your agent to keep its data in $BASEMODO_DB.
If you built it in Lovable, your data is in Postgres, in Lovable Cloud or your own Supabase project. Lovable Cloud is built on Supabase. You have two options.
- Keep Supabase. The app keeps working as it is. Basemodo keeps the pages private, but the app's code in the browser still talks to Supabase directly, so your data is protected by Supabase's row-level security rules, not by Basemodo's sign-in. Check those rules before real people use the app.
- Move the data into the app's SQLite. Ask your agent: "Move this app's data from Supabase to the SQLite database in
$BASEMODO_DB, and read and write it from the server." Then the data sits behind the same sign-in as the pages, its backups are part of the app, and you pay for one service. Backups are daily on every Plan and hourly on Pro and Workspace.
For a small private app, the second option is simpler to run. Keep Supabase if the app depends on its realtime features or on file storage you don't want to move.
6. Keys and passwords
API keys don't belong in the code. Set them as Secrets, and the app gets them as environment variables:
basemodo env set STRIPE_KEY=sk_live_...Or tell your agent "set the Stripe key as a Secret".
What it costs
Starter is $5 a month for one app, Pro is $18 a month for up to five, and Workspace is $25 a month for two seats plus $5 per extra seat, for a team that owns its apps together. Prices are flat with hard limits, so you never get a surprise bill. The people you invite never pay. See Pricing.
If you're putting apps online for clients, Basemodo vs Vercel + Supabase + auth compares the cost of the usual stack.