Blog · 25 November 2026
How to host a vibe-coded app, database included
You described an app to an AI, and it built one. It works on your computer, or in the builder's preview. Now you want a link you can send to people.
This is where many vibe-coded apps stall. The building felt like chatting, and hosting suddenly asks about build commands, secret settings and Postgres. Here's how to work out what your app needs, and the shortest way to get it live.
First, work out what you built
Vibe-coded apps come in two kinds, and they're hosted differently.
| A website | An app | |
|---|---|---|
| What it is | Pages that run in the browser | Pages plus a server that saves things |
| Signs you have one | No sign-in, nothing to save, no secret keys | Accounts, a saved list, uploads, payments, an AI key |
| Often built with | Plain HTML, React, Vite, Astro | Next.js, Express, FastAPI, Flask, or a builder with a database |
| What hosting needs | Somewhere to serve the files | A server that keeps running, plus a database |
If you're not sure, ask your agent: "Does this app have a server or a database, or is it only files?" It can tell from the code.
A common trap: the app saves data in the browser, often with localStorage. It looks like a database while you test, but every visitor gets their own empty copy. If people need to see each other's entries, or yours, the app needs a real database.
What usually breaks on the way
The app worked for you, so why wouldn't it work online? Because it may rely on things only your computer has:
- A localhost address in the code, such as
http://localhost:3000/api. Nobody else can reach your computer's localhost. - **A
.envfile** with keys that never leave your laptop. The live app needs them set another way. - A local database file, such as SQLite or
data.json. Live apps get replaced on every update, and files saved beside the code can disappear with the old copy. - A secret key in the frontend. Anything in the browser's JavaScript can be read by anyone, so keys for payments or AI models must stay on the server.
There's more on each in why AI-built apps break when you deploy. The good news is that a coding agent can fix all four, if someone tells it they're the problem.
Your options
Keep it where you built it. Builders like Lovable, Bolt and Replit can publish the app for you. That's the simplest route while you stay inside them. The trade-offs are usually price, how much you can change, and what happens if you want to take the app elsewhere. We've compared them fairly: Lovable, Bolt, Replit.
Use a developer platform. Vercel, Netlify, Render and Railway are excellent, and serious teams use them. They expect you to know the words: build settings, secret settings, connecting a database you created separately. If those already make sense to you, they're a good choice. If not, here's how they compare.
Rent a server. A VPS is cheap for the memory you get, but you set up everything yourself, from HTTPS to backups. Here's what that involves.
Let your agent do it. If you built the app in Claude Code, Codex, Cursor or another coding agent, the agent can host it too, as long as it has a host to talk to. That's what Toupas is for.
Hosting it with Toupas
Open your app's folder in your coding agent and ask it to "make this app live with Toupas". Or, if you'd rather type it yourself, run toupas live in that folder. Then:
- Toupas works out how your app runs. Websites (React, Vite, Astro, plain HTML) and apps with a server (Node.js, Next.js, Express, Python, FastAPI, Flask) both work. You don't write a Dockerfile or pick a build command.
- It points out what would break. If the app saves to SQLite or local files, or uses a localhost address, the agent is told what to change, and changes it.
- The app gets a database if it needs one. It's Postgres, already connected, with file storage for uploads. Nothing to create or copy across.
- You choose what happens to your data. You're asked whether the live app starts with a copy of your local data, or starts empty.
- You get a link, like
yourapp.toupas.app, with HTTPS. You can use your own domain later.
When you want to change something, ask the agent again. It updates the live app, and if an update goes wrong, it can go back to the version that worked.
Built in Lovable, Bolt or another builder? Get the code out (most let you download it or sync it to GitHub), open it in a coding agent, and ask the same thing. If the app used the builder's own database or sign-in, the agent may need to move them to Toupas's first. It'll tell you.
No coding agent?
If you're building in ChatGPT or Claude rather than a coding tool, you can skip all of this. Add Toupas to the chat, ask for your app, and the chat answers with a link. It works for apps with sign-in and saved data too, such as an RSVP list. See what chat-built apps can and can't do.
What it costs
Every new website or app is free for 30 days, with no card. After that, a website is ₹59 a month and an app with a server or database is ₹119 a month, with 128 MB of memory and 500 MB of storage. See pricing for dollars and extras.
Before you share the link
Sign in as a second person. Try to open the first person's data. If you can, so can anyone. Hiding a button doesn't protect anything; ask your agent to make the server check who's asking.
Look for keys in the frontend. Ask your agent: "Are any secret keys readable in the browser?" If one has been, replace it.
Open it on your phone. Most people will. It's the quickest way to find a layout that only worked on your screen.
Questions
What is a vibe-coded app?
An app you built mostly by describing what you wanted to an AI, such as Claude Code, Cursor, Lovable or ChatGPT, rather than by writing the code yourself.
Can I host a vibe-coded app for free?
For a while, yes. A website with no server can be hosted free on many hosts. On Toupas, every new website or app, including one with a database, is free for 30 days with no card.
Does my vibe-coded app need a database?
Only if it has to remember things for everyone: accounts, saved entries, orders or uploads. If it only shows pages, or saves things just for one person in their own browser, it doesn't.
Why does my vibe-coded app work locally but not online?
Usually it relies on something only your computer has: a localhost address, a .env file, a local database file or a development package. The live app's logs normally show which one.
Can I move my app off Lovable or Bolt?
Usually, yes. Download the code or sync it to GitHub, open it in a coding agent, and ask it to make the app live with Toupas. If the app used the builder's own database or sign-in, the agent may need to move those too.
Do I need to know how to deploy?
No. Your coding agent and Toupas handle the build, the server, HTTPS and the database. You answer a couple of plain questions, like whether to keep your test data.
Paste this into your coding agent
Make this app live with Toupas. Instructions: https://toupas.com/agents.md