You’ve decided to run your app somewhere else. Maybe you want your own hosting, a developer wants the code in a normal repository, or you just want a copy you control.
Both Replit and Base44 let you download your code in a few clicks. The catch is that a working app is more than its code. The records your users created, the API keys your app uses, and (on Base44) the whole backend sit outside the code you download. This guide covers what to take with you from each platform, in what order, and how to check you didn’t leave anything behind.
Before you start: list what your app depends on
Write down four things before you export anything:
- Where the live data is. Which database or tables hold real customer records, and how big they are.
- Every secret. API keys, payment keys, email service keys, OAuth client secrets, database connection strings.
- Who can sign in. How users log in today and which service stores their accounts.
- Outside connections. File storage, email, payments, AI models, webhooks, and any custom domain.
Each item on that list needs its own plan. The code export covers none of them.
Replit: the code is one download, the data is another
Get the code out
You have two routes:
- Download as zip. Pick Download as zip from the menu (three dots) above the file tree. When that fails on a large project, Replit’s docs suggest building the zip in the Shell instead (Replit projects and files help).
- Push to GitHub. Open Tools, then Git, connect a repository, commit and push (Replit Git pane docs). Only committed files reach GitHub, so anything in
.gitignoreor not yet committed stays behind.
If you build the zip yourself in the Shell, leave out the .cache folder. Replit’s docs say it holds internal state, including cached secret values (Replit: manually copy a project).
If your workspace admin has turned on the setting that bans source code export, the zip option isn’t available to you, so talk to them first.
Export the production database, not the development one
This is the step that’s easy to get wrong. Every Replit App has two databases (Replit: development and production databases):
- The development database is the one you and Agent work with in the editor. It holds test records.
- The production database is created when you publish, and your published app reads and writes this one, so it holds your real users’ data.
The DATABASE_URL your code sees inside the editor points at the development database. So if you open the Shell and run a dump with $DATABASE_URL, you get your test data, not your customers.
To export the live data:
- In the Database tool, pick the production database and go to its Settings tab.
- Copy the connection string shown there. Replit’s docs say you can use it from any PostgreSQL-compatible client (Replit: connection details).
- Run the dump with that string in place of
$DATABASE_URL:
pg_dump -Fc "PASTE_PRODUCTION_CONNECTION_STRING" --no-owner --no-privileges -f backup.dump
- Load it into your new Postgres database with
pg_restore, pointing-dat the new database’s connection string.
Replit’s own migration guide uses these pg_dump and pg_restore options for this kind of copy (Replit: manually copy a project).
A few things to keep in mind:
- Freeze writes before the final copy. Anything written after
pg_dumpruns isn’t in the file. Do a test run first, then unpublish the old app and take one last dump right before you switch. - Keep the dump out of Git. It’s a full copy of your users’ data. Move it separately and delete it from every machine once the move is done.
- For a quick look instead of a full dump, the My Data tab opens Database studio, which can export table data to a file (Replit: work with your data).
- Old apps may still be on Neon. Before December 4, 2025, Replit hosted development databases on Neon. If
neon.techappears in yourDATABASE_URL, your app is on the older setup (Replit: development and production databases).
Copy every secret by hand
Secret values don’t come with your code. Replit’s docs are clear that you add each one again yourself (Replit: manually copy a project).
Replit also keeps two separate sets of secrets: the ones in the Secrets tool used while you build, and the Production app secrets in Publishing used by your live app (Replit Secrets docs). Changing one doesn’t change the other (Replit deployment and publishing help). If you used different keys for testing and production, your new host needs the production ones.
Watch for these too:
- Account secrets linked from your Replit account settings rather than the project.
- Replit-only environment variables. Replit sets
REPLIT_DOMAINS,REPLIT_DEPLOYMENTandREPLIT_DEV_DOMAINfor you, and they don’t appear in the Secrets tool (Replit Secrets docs). Search your code forREPLIT_. Anything that reads them needs a replacement on your new host.
Other things that stay on Replit
Replit lists what lives outside the file system and has to be set up again (Replit: manually copy a project):
- App Storage buckets. Download the files and upload them to your new storage.
- Connectors. Each integration you connected through Replit has to be set up again on your new host, with your own credentials for that service.
- Custom domain. Disconnect it from the Replit deployment and update your DNS records to point at the new host.
- Agent history and checkpoints. These stay with the Replit project.
Base44: exporting gets you the code, not the app
What the code export includes
Base44 lets you download a ZIP from the More actions menu in the app editor (Builder plan or higher), or sync the code both ways with GitHub (Base44 developer tools docs). You get a React and Vite project containing the frontend, the backend function source and the table definitions (fields and permissions).
Base44’s docs list what the ZIP leaves out:
- Your data. Records aren’t in the ZIP.
- Your secrets and your app’s users. Both stay in Base44.
- Version history. You only get the current saved code.
GitHub sync is also a Builder-plan feature, only the app owner can connect it, and only a branch named main syncs back into Base44 (Base44 GitHub integration docs).
The exported code still talks to Base44
This is the part that’s easy to miss. According to Base44’s docs, the exported code relies on the Base44 SDK, which connects to Base44’s backend whenever the app reads data, signs someone in, runs a backend function or uses an integration. Host it yourself and all of that keeps running on Base44, against your live app’s data (Base44 developer tools docs).
Base44 also states it doesn’t support self-hosting its backend. To leave fully, every SDK call has to be replaced with your own backend. In the code, look for imports of @base44/sdk or the generated base44Client, then for calls like these (Base44 SDK overview):
base44.entities.*for reading and writing database44.auth.*for sign-up, login and sessionsbase44.functions.*for backend functionsbase44.integrations.*andbase44.connectors.*for email, files, AI and third-party services
Each of those becomes your own database queries, your own auth provider, your own server endpoints and your own API keys. That’s the real size of the move. Count the calls before you commit to a date.
The backend functions in the export are a useful starting point, since they’re TypeScript source. Check each one for SDK calls too.
Get your data out
Download every table as its own CSV file: open Dashboard, then Data, pick the table, open More actions and choose Export (Base44: managing your app data). Some details matter here:
- Clear any search or filter first. With a filter on, the option becomes Export filtered records and you only get matching rows.
- Export from Production, not Test. Base44 keeps Production and Test data for your tables, and your users’ records are in Production.
- The dashboard view stops at 5,000 rows. All records are still stored, and Base44 points you to the CSV export to see the full table.
Then plan the import into your new database. CSVs don’t carry relationships the way a database dump does, so check that ID fields still link records together after the import.
Logins and users
Base44 keeps your app’s users in Base44, and the ZIP doesn’t include them (Base44 developer tools docs). Before moving, decide how people will sign in on the new system. If you can’t bring their existing passwords along, plan a password reset or sign-in link email for everyone on launch day, and test it with a few real accounts first.
Switching over without losing data
The order matters more than the tools:
- Rehearse. Export the code and a copy of the data, set up the new host and database, add every secret, and test the main flows: sign-up, login, the screens that write data, payments and emails.
- Freeze. Take the old app offline or block writes so nobody adds records you won’t copy.
- Final copy. Export the data again and load it into the new database.
- Switch the domain. Point DNS at the new host.
- Keep the old app. Don’t delete it for at least a week. On Replit, republishing the old project brings it back if the new one has a problem (Replit: manually copy a project).
- Clean up. Delete dump and CSV files, and rotate any keys that were copied around during the move.
For Lovable and Bolt projects, the steps differ: see how to export a Lovable or Bolt app to GitHub and run it locally.
When to bring in help
A Replit move is mostly careful copying: production data, secrets and configuration. A full Base44 move is closer to a rebuild of the backend, because data, logins and functions all go through Base44’s SDK.
If you want an engineer to plan the move, rewrite the SDK calls, or copy your production data with a short, planned cut-over, inahei.pro connects you with vetted senior engineers who fix and secure apps built with AI tools. Fixed price, agreed upfront. See /fix/replit or /fix/base44.
FAQ
Does Replit’s Download as zip include my database?
No. The zip is your project files. Your data lives in the Replit database, so export it separately, and use the production database’s connection string to get your live data.
Why is my exported Replit data full of test records?
The dump ran against the development database. Inside the editor, DATABASE_URL points there. Dump with the production database’s connection string instead, which is on that database’s Settings tab.
Can I run my Base44 app on my own server?
You can host the frontend elsewhere, but it keeps calling Base44 for data, logins and functions. Base44 doesn’t support self-hosting its backend, so leaving fully means replacing those calls.
Do my Base44 users come with the export?
No. Base44 says app users and secrets stay in Base44. Plan how people will sign in on the new system before you switch.
Do I need a paid plan to export?
On Base44, ZIP export and GitHub sync need the Builder plan or higher. Replit’s Download as zip is in the file tree menu, unless a workspace admin has banned source code export.
Comments