Replit
Replit Is Easy to Start and Hard to Leave: What Porting Out Actually Takes (and the Best Alternatives)
Replit gets you from idea to live app faster than anything. Moving off it is a project. What locks you in, how to export code, database and auth, what it costs to stay, and the best Replit alternatives in 2026.
Published 2026-11-11.
Replit's pitch is true: you describe an app and a few minutes later it's running, with a database, logins and a public URL, all in one browser tab. For a first build, nothing is faster.
The other half of the story shows up a few months later, usually when the bill does. The single most practical question in r/replit this year was some version of this one: "How do I get my Replit files out to GitHub/Vercel?"
This post is about that second half: why people want to leave, what actually ties you to Replit, how to port out step by step, and where to go. (For the full product review, see our Replit review for vibe coders.)
Why people are leaving (and why some stay)
Nearly all of it is cost. Replit bills its Agent by "effort," per checkpoint, so the price of a change depends on how much work the Agent decides to do. In 2026's Replit threads:
- One builder said they could "run through $250 in a day now easily".
- Another found a ten-minute, 53-action checkpoint cost $8.43, which worked out to over $50 an hour.
- A third had usage that hadn't changed but a bill that had: about $60 a day on top of the $100 plan. They moved to GitHub Codespaces with a Claude Max plan and said they stopped hitting limits.
The other side is real too:
- A builder with a year of apps said none had cost more than about $150. Scope your app and the bills stay sane.
- Someone who switched to Codex plus Claude Code found they hit allowance walls there too after the first week. Leaving doesn't make building free.
- Replit has responded. Hosting prices for apps at scale dropped by more than 50% on August 1 (Replit's billing update: Postgres storage went from $1.50 to $0.35 per GiB-month, for example). And on August 18 it launched Free Mode, running on an OpenAI model, which lets paid subscribers build within a usage allowance that refreshes every five hours.
So the honest version: Replit's hosting got cheaper, its Agent billing is still hard to predict, and the alternatives have usage limits of their own. If your app is small and your bill is fine, there may be no reason to move. If you want predictable costs, your own infrastructure, or a different agent, read on.
What actually ties you to Replit
Code is the easy part. These are what make leaving a project:
| What | How tied in | What to do |
|---|---|---|
| Code | Not much. Download as zip or push to GitHub. | Connect GitHub on day one. |
| Database | Medium. Replit's Postgres works with standard tools, but the data lives on Replit until you export it. | Export with pg_dump or the Database tool, then import into Neon, Supabase or another Postgres host. |
| Replit Auth | High. Users sign in with Replit accounts on a Replit-branded page, and the user records live in your app's database. | Plan a move to Clerk, Supabase Auth or Auth.js. Users may have to sign in again. |
| Secrets | Medium. Not included in the zip or GitHub export. | Copy each one into your new host's environment variables. |
| App Storage (files) | Medium. Separate from code and the database. | Download and re-upload to S3, R2 or Supabase Storage. |
| Deployments | Medium. Replit-specific config files (.replit, replit.nix). | Delete them and add your new host's config. |
| The Agent itself | Hard to measure. If Replit's Agent built and maintains the app, you'll be switching to a new assistant that has never seen the codebase. | Write a README and an AGENTS.md before you leave. |
Good news on auth: Replit's docs now say Clerk is the default auth on Starter, Core and Pro plans, with Replit Auth the default on Enterprise (Replit auth overview). If your app uses Clerk, auth is much easier to move.
There's also account lock-in, separate from code. Several threads describe billing disputes and locked accounts that froze live apps for days. Keep your own copy of the code and data regardless of where you host.
How to port out, step by step
1. Get the code out with history. Connect the project to GitHub and push. If that's not set up, use the three-dot menu at the top of the file tree and choose Download as zip. For big projects that fail to download, Replit's docs say to open the Shell, run zip -r project.zip ., and download that file.
2. Export the database. In Replit's Database tool, download tables as CSV or JSON, or open the Shell and run pg_dump "$DATABASE_URL" > backup.sql. Import into your new Postgres (Neon, Supabase, Render, Railway). Replit's docs warn that very large exports can fail because the file is written inside the project first; export table by table if so.
3. Swap auth if you use Replit Auth. Pick Clerk, Supabase Auth or Auth.js. Map your existing user IDs to the new provider so people keep their data. Email your users before switching, since they'll likely sign in again.
4. Move secrets and files. Recreate every Secret as an environment variable on the new host. Move uploaded files to S3, R2 or Supabase Storage and update the URLs.
5. Remove Replit config and deploy. Delete .replit and replit.nix, add a standard package.json start script (or your framework's equivalent), and deploy from GitHub to Vercel, Netlify, Render, Railway or Fly.
6. Run both for a week. Keep the Replit version up, test the new one with real flows (sign up, pay, reset password), then switch your domain's DNS.
A prompt to hand to Claude Code or Codex once the code is local:
This app was built on Replit. Make it run outside Replit: remove.replitandreplit.nix, replace any Replit-specific packages or env vars, make the database URL and all secrets come from environment variables, list every Replit service this app depends on (auth, database, storage, secrets) with a migration plan for each, and add a README with local setup steps. Don't change features.
The best Replit alternatives in 2026
| If you want... | Try | Trade-off |
|---|---|---|
| Free hosting and you already pay for ChatGPT | ChatGPT Sites (in Codex) | Hosting free through Dec 31, 2026; narrower runtime. Compared here. |
| The most control, predictable monthly cost | Claude Code or Codex + GitHub + Vercel/Netlify | You run the pieces yourself. See Codex vs Claude Code. |
| Replit's feel, in the cloud, with your own agent | GitHub Codespaces + Claude Code or Codex | Some setup, but your repo stays standard. |
| Another all-in-one browser builder | Lovable, Bolt, v0 | Similar ease, similar lock-in questions. Compared here. |
If you're staying on Replit
Keep the exit open anyway:
- Connect GitHub and push regularly.
- Keep secrets in environment variables, never in code.
- Prefer Clerk over Replit Auth.
- Take a database export monthly.
- Set a spending limit and check usage weekly.
Wherever it's hosted, the next step is the same: getting it in front of people. The free LaunchBuddy scan reads your live app and shows you what to fix before you launch.