Move your app

How to Move Your Replit App to a HIPAA-Ready Stack (Without Rebuilding It)

Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.

Short answer: A Replit app can usually move without a rebuild: the code downloads as a zip (Replit, Projects and files (help), verified November 15, 2026) and the database copies out with pg_dump, a standard PostgreSQL tool (Replit, Manually copy a project to another workspace, verified November 15, 2026), but Replit says it is not HIPAA-compliant (AI Medical Website Builder | Replit, verified November 15, 2026), so hosting, logins, file storage, secrets and AI access get replaced. Sign BAAs with the new providers first, then move the data and re-link logins.

If you built a practice app in Replit and real patients now use it, the good news is that Replit produces ordinary code and an ordinary PostgreSQL database (a standard, widely supported database). Both can leave. The harder part is everything Replit provides around the code: the login system, file storage, stored keys, the built-in AI access and the hosting. Those stay behind and have to be replaced with services covered by a business associate agreement (BAA), the contract HIPAA expects with any vendor that holds patient data for you.

This guide covers the mechanics: what moves as-is, what does not, and the order to do it in so patient data is never somewhere without an agreement. If you are still deciding whether Replit can be used at all, start with Is Replit HIPAA compliant? If you already have patient data in Replit and are worried about it, read what to do first before you move anything.

What Replit says about leaving, in its own words (checked November 15, 2026)

We read Replit's docs, help center, Trust Center and legal pages for one question: what can a physician take with them? First, the HIPAA position. Replit's own medical-website page says plainly:

“However, you must deploy the final site on a hosting service that offers a BAA.”

The same page says Replit is not HIPAA-compliant (AI Medical Website Builder | Replit, verified November 15, 2026), and Replit's shared responsibility table puts HIPAA and PHI (protected health information) compliance on you, not Replit (Replit shared responsibility model, verified November 15, 2026). Replit's therapy-website page is just as direct:

“Replit does not sign BAAs for its standard hosting services, so it is not a HIPAA-compliant builder out of the box.”

We could not confirm from Replit's own public pages, as of November 15, 2026, that Replit signs a BAA on any plan, including Enterprise (Replit: public pages we checked (15 pages), verified November 15, 2026). So the target is a stack outside Replit's hosting.

Now the exit doors, from Replit's docs:

What this means for your app: what transfers and what doesn't

Think of a Replit app in two layers. The code (screens, forms, server routes, database schema files) is portable. The platform services the code leans on are not. Patient data sits in both: rows in the database, files in storage, names and emails in the login system, and request details in logs. Use this table as your inventory.

Part of your Replit appDoes it transfer?What to do in the new stack
Screens, forms, server codeYes, as code, by zip (Replit, Projects and files (help), verified November 15, 2026) or Git (Replit, Using the Git pane, verified November 15, 2026)Keep. Then find every line that calls a Replit-only service (sign-in, file storage, AI) and point it at the replacement.
Production database (tables and rows)Yes, with pg_dump (Replit, Manually copy a project to another workspace, verified November 15, 2026)Restore into PostgreSQL under a BAA. Amazon RDS for PostgreSQL is on AWS's HIPAA eligible list (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026); Supabase needs both a signed BAA and its HIPAA add-on (HIPAA Projects | Supabase Docs, verified November 15, 2026).
Development databaseLeave itIf created since December 4, 2025, it runs on Replit's own infrastructure (Replit, Database, verified November 15, 2026) and should hold only invented patients. If real patients ever went in, list it as a place PHI has been.
Logins (Replit Auth)No. The users are Replit accounts (Replit Auth, verified November 15, 2026)Your own users table moves with the database; the logins do not. Pick a sign-in provider under a BAA and plan how each patient and staff member is re-linked (see the failure scenario below).
Uploaded files (App Storage)No. Buckets do not move (Replit, Manually copy a project to another workspace, verified November 15, 2026)App Storage runs on Google Cloud Storage (Replit, App Storage, verified November 15, 2026), but that is Replit's account, not yours. Copy files into storage in your own covered account, such as Amazon S3 (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026) or Cloud Storage under your own Google Cloud BAA (HIPAA compliance on Google Cloud and Google Workspace | Security | Google Cloud Documentation, verified November 15, 2026).
Secrets (API keys, passwords)No (Replit, Manually copy a project to another workspace, verified November 15, 2026)Create new keys for each service and store them in the new host's secret settings. Retire the old ones.
AI features (Replit AI Integrations)The calling code transfers. The credentials are Replit's (Replit AI Integrations, verified November 15, 2026)Open your own account with a BAA. OpenAI requires a signed BAA before its API is used with PHI (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026); Anthropic offers a BAA for its first-party API (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026); Amazon Bedrock is on AWS's eligible list (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026).
Connectors (email, texts, other tools)No. Each is reconnected (Replit, Manually copy a project to another workspace, verified November 15, 2026)Replace any connector that carries patient details. Resend says it cannot sign a BAA (Security · Resend, verified November 15, 2026); Amazon SES is on AWS's eligible list (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026). For texting, Twilio's BAA requires its Security or Enterprise Edition (Twilio and HIPAA, verified November 15, 2026).
Hosting (the published Replit app)No. Replace itReplit's own advice is a host that offers a BAA (AI Medical Website Builder | Replit, verified November 15, 2026). Vercel offers one to Enterprise customers and, as an add-on, to Pro customers (Vercel, Security & Compliance Measures, verified November 15, 2026); AWS requires a BAA before PHI goes into its eligible services (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026).
Custom domainNo. Replit's copy guide says the web address does not copy automatically (Replit, Manually copy a project to another workspace, verified November 15, 2026)Disconnect it from Replit and point it at the new host on cutover day.
Agent chat, checkpoints, deployment logsNo, and they should notAgent history stays in Replit (Replit, Manually copy a project to another workspace, verified November 15, 2026). Deployment logs are kept for 30 days (Replit, Monitoring a deployment, verified November 15, 2026), and Replit Agent can read production deployment logs (Replit changelog, February 20, 2026, verified November 15, 2026). List logs and Agent chats among the places PHI may have gone, and do not paste either anywhere new.

One Replit-specific trap: Replit offers an Agent-run move from Replit Auth to its Clerk Auth option (Migrate from Replit Auth to Clerk, verified November 15, 2026), but in that setup the Clerk tenant (the login account behind your app) is created and managed by Replit (Replit, Clerk Auth, verified November 15, 2026). That keeps sign-in inside Replit's arrangement. If you choose Clerk for the new stack, use a Clerk account your practice owns; Clerk offers its BAA on its Enterprise plan (Clerk, Security & Compliance at a Glance, verified November 15, 2026). Amazon Cognito is another option on AWS's eligible list (HIPAA Eligible Services Reference - Amazon Web Services (AWS), verified November 26, 2026). See Is Clerk HIPAA compliant? and the BAA Matrix for the rest.

The cutover plan, step by step

Do these in order. The usual mistake is moving data first and arranging agreements afterward. Plan a short window when the app is offline.

  1. Freeze. Pick a cutover date. Keep building only with invented patients. Using the table above, write down every place PHI has gone: production database, files, users list, logs, connectors, AI calls, and anything pasted into the Agent chat.
  2. Export the code. Connect a private GitHub repository through the Git pane (Replit, Using the Git pane, verified November 15, 2026), and download a zip as a second copy (Replit, Projects and files (help), verified November 15, 2026). If you build the zip by hand, leave out the .cache folder: Replit says it holds cached secret values (Replit, Manually copy a project to another workspace, verified November 15, 2026). If a team admin has blocked zip downloads, sort that out first (Replit, Manually copy a project to another workspace, verified November 15, 2026).
  3. Inventory the data. Count tables, rows, files in each storage bucket, and user accounts. You will check every number again after the move.
  4. Stand up the target in an account the practice owns. For example, AWS with a PostgreSQL database, private file storage, a covered sign-in service and a covered host. Start with fake patients only. The AWS hosting guide walks through one version.
  5. Sign the BAAs before any patient data moves. HIPAA lets a practice hand PHI to a vendor only after it has satisfactory assurance, in practice a BAA, that the vendor will protect it (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). Sign one for every service that will touch PHI: database, storage, host, sign-in, email, texting and AI. The BAA request email templates help. Read the return-or-destroy clause: a BAA must require the vendor to return or destroy PHI at the end, if feasible (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026).
  6. Move the data. First do a practice run into the new database. Then unpublish the Replit app, so nobody can add data during the final copy (Replit, Manually copy a project to another workspace, verified November 15, 2026); data written after pg_dump runs is not in the copy (Replit, Manually copy a project to another workspace, verified November 15, 2026). Because the production database accepts connections from any PostgreSQL tool (Replit, Connection details, verified November 15, 2026), the dump can be run from inside your new covered account rather than downloaded to a laptop. Never commit the dump file to Git (Replit, Manually copy a project to another workspace, verified November 15, 2026). Copy storage files across, then check every count from step 3.
  7. Re-wire sign-in. Build a map from each old user record to the new login before cutover, and test it with sample accounts. Replit's own guidance warns not to assume a new provider's user ID or an email address will match existing records (Replit, Plan a custom auth migration, verified November 15, 2026), and not to assume sign-in identities or sessions carry over (Replit, Plan a custom auth migration, verified November 15, 2026). If people re-claim their accounts by email, send a one-time link to that address first, so knowing someone's email is not enough. Turn on multi-factor sign-in for staff.
  8. Replace runtime calls. Swap Replit AI Integrations for your own covered AI account, swap each connector for a covered service, and create fresh keys in the new host. For the OpenAI API, HIPAA eligibility also needs Modified Retention on the organization (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026).
  9. Test on a temporary address with fake patients. Sign in as a patient, a front-desk user and a physician. Confirm each sees only their own records or the records their role allows, and that access is logged. Keep development, test and live copies separate so PHI never reaches a test deployment (How to build and maintain HIPAA-compliant applications on Vercel, verified November 15, 2026).
  10. Cut over. Move the custom domain to the new host, or send patients the new address. Check that the first real sign-ins land on the right records.
  11. Decommission the old copy. Unpublishing only takes the app offline; Replit says the files, code and database are not deleted (Replit, Deployment and publishing, verified November 15, 2026). After a short check period, delete the dump files from every place they were made (Replit, Manually copy a project to another workspace, verified November 15, 2026), empty the old storage buckets, and delete the project. Deleted projects can be restored for a while and are permanently removed after a retention window (Replit, Projects and files (help), verified November 15, 2026). Ask Replit in writing to confirm deletion of the production database, files and logs, and keep the reply. Record the move in your risk analysis, which HIPAA requires (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026), and keep that documentation for six years (HHS (eCFR), 45 CFR 164.316 -- Policies and procedures and documentation requirements., verified November 15, 2026).

How this goes wrong: a claim-your-account screen that never checked the email

Imagine (a hypothetical) a rheumatology practice that built an infusion and lab-monitoring app in Replit with Replit Auth. Patients sign in to see their next infusion date, their recent lab results and their medication list. The app's own patients table stores each person's Replit user ID next to that information.

  1. The data move is clean. The code goes to GitHub, the database is restored into a PostgreSQL service under a BAA, and sign-in switches to a covered provider. Every row arrives and the counts match.
  2. On cutover morning, every patient looks new. The new provider issues its own user IDs, and the patients table still points at the old Replit ones. Replit's guidance warned of this: a new provider's user ID, an email address or an account created at first sign-in may not match existing records (Replit, Plan a custom auth migration, verified November 15, 2026).
  3. The quick fix skips a check. To stop the phone calls, a contractor adds a claim-your-account screen: type the email address on file, set a password, and the new login is linked to the matching record. Nothing confirms that the person typing actually controls that inbox, for example by sending a one-time link to it first.
  4. Someone else claims a record. A patient's former partner, who still knows her email address, signs up with it and opens her medication list, lab results and infusion schedule. It comes to light a week later, when she tries to claim her own account and is told it is already set up.

No break-in was needed. The cause was treating sign-in as a code change instead of a data and identity migration (Replit, Plan a custom auth migration, verified November 15, 2026), and then letting an unverified email address decide who owns which chart. Under HIPAA, an impermissible disclosure of PHI is presumed to be a breach unless a risk assessment shows a low probability that the information was compromised (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026). Whether that applies is for the practice and its counsel to decide. The prevention is step 7 above: build and test the identity map before cutover, link only on a value you have verified, confirm that a person controls an email address before linking anything to it, and send anyone who cannot be matched through a staff-verified re-enrollment. For other rheumatology workflows, see vibe-coded apps in rheumatology.

Keep, refactor, or rebuild?

Verdict: Refactor

Replit's code downloads as a zip or goes to GitHub, and its production database copies out with standard PostgreSQL tools, so the screens and workflow can stay. Replit Auth logins, App Storage files, secrets, Replit AI Integrations and Replit hosting cannot stay for patient data, because Replit says it is not HIPAA-compliant. Replacing those is a refactor, and the sign-in move needs the most care.

Refactor is the honest label for most Replit moves. The screens, workflow and most of the server code stay, because the code downloads and is ordinary code (Replit, Projects and files (help), verified November 15, 2026). What gets replaced is the layer that touches patient data: hosting, sign-in, file storage, secrets and AI access.

Keep is close if your app never used Replit Auth, App Storage or Replit AI Integrations, and talks to its database only through a standard connection string (the database address the code reads from a setting). Then the move is mostly a database copy, new keys and a new host.

Rebuild is rarely needed, since the code leaves with you. It can make sense if the app was generated in a hurry, nobody can explain how it decides who sees which records, and the access rules would have to be rewritten anyway. See Keep, refactor or rebuild for the general rules.

Where Fabrica fits

A practice can do all of this with a capable developer. It is also the work PAHL Fabrica does. Fabrica is a HIPAA-ready environment where physicians and practice staff keep building with AI coding tools on synthetic patient data, while PHI stays in infrastructure covered by BAAs, in a cloud account the practice owns, encrypted in transit and at rest. PAHL signs a BAA with the practice and confirms one is in place with each vendor that handles PHI. Before each release, Fabrica checks that each user reaches only the records their role permits, the exact problem in the failure scenario above.

For existing apps, Fabrica's answer is that in most cases they can be kept: PAHL moves the live app and its patient data in, and the practice keeps improving it. The process on the Fabrica page starts with a Week 0 assessment (what you built, where patient data goes today), sets up the environment with agreements in place in Weeks 1-2, migrates in Weeks 2-3 and releases in Week 4, with the first app live in about 30 days. Whether your Replit app fits is what the assessment is for. If you have not put real patients in yet, how to make your Replit app HIPAA compliant is the place to start.

Frequently asked questions

Can I just download my Replit app and host it somewhere else?

The code, yes: it downloads as a zip (Replit, Projects and files (help), verified November 15, 2026). But the zip does not carry your production data, secret keys, uploaded files or logins. The database is copied separately with pg_dump (Replit, Manually copy a project to another workspace, verified November 15, 2026), secrets are re-entered by hand (Replit, Manually copy a project to another workspace, verified November 15, 2026), and files are downloaded and uploaded again (Replit, Manually copy a project to another workspace, verified November 15, 2026). Each new home needs a BAA before patient data arrives.

Will my patients have to create new accounts?

If the app uses Replit Auth, their logins are Replit accounts (Replit Auth, verified November 15, 2026), so they will sign in through a new system. Their records in your database come across. The work is linking each new login to the right existing record, tested with sample accounts before cutover, confirming that each person controls the email address they claim, with a staff-verified path for anyone who cannot be matched.

Replit runs on Google Cloud, and Google signs BAAs. Isn't that enough?

Not by itself. Replit's Trust Center says its production infrastructure runs on Google Cloud; what it says about HIPAA there describes Google's infrastructure, not a Replit commitment (Replit's Trust Center, verified November 15, 2026). Google says it enters into BAAs as necessary under HIPAA (HIPAA compliance on Google Cloud and Google Workspace | Security | Google Cloud Documentation, verified November 15, 2026), but that is an agreement between Google and its own customer, and here Google's customer is Replit. Your vendor is Replit. Replit's therapy-website page says it does not sign BAAs for its standard hosting services (AI Therapy Website Builder | Replit, verified November 15, 2026), and we could not confirm a Replit BAA on any plan as of November 15, 2026 (Replit: public pages we checked (15 pages), verified November 15, 2026).

Can I keep using Replit to build after the move?

Yes, as a prototyping tool with invented patients. Replit itself says it can be used to develop the front-end code of a medical website (AI Medical Website Builder | Replit, verified November 15, 2026). Under Replit's Pro Agreement, Replit may use your content to train its models unless you opt out in settings (Replit, Pro Agreement, verified November 15, 2026), so keep real patient data out of prompts, screenshots and test data.

Does unpublishing my Replit app delete the patient data?

No. Replit says unpublishing takes the app offline but does not delete project files, code or the database (Replit, Deployment and publishing, verified November 15, 2026). Delete the dump files, empty the storage buckets, delete the project, and ask Replit in writing to confirm deletion. Keep that reply with your HIPAA records.

Patients have used my Replit app for months. Is moving it enough?

Moving stops the ongoing exposure, but it does not answer whether past use needs a breach risk assessment. That decision belongs to your practice and its counsel or privacy officer. I already put patient data in Replit covers the first steps, including why not to delete anything before it is documented.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

Have a Replit app with real patients and a sign-in move to plan? Getting the order and the identity mapping right is what this call is about.

Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.

See how Fabrica works and book a 30-minute call

Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.

Sources

Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.

  1. Replit, Projects and files (help). Checked November 15, 2026.
  2. Replit, Manually copy a project to another workspace. Checked November 15, 2026.
  3. AI Medical Website Builder | Replit. Checked November 15, 2026.
  4. Replit shared responsibility model. Checked November 15, 2026.
  5. AI Therapy Website Builder | Replit. Checked November 15, 2026.
  6. Replit: public pages we checked (15 pages). Checked November 15, 2026.
  7. Replit, Using the Git pane. Checked November 15, 2026.
  8. Replit, Add a database. Checked November 15, 2026.
  9. Replit, Connection details. Checked November 15, 2026.
  10. Replit Auth. Checked November 15, 2026.
  11. Replit, Plan a custom auth migration. Checked November 15, 2026.
  12. Replit AI Integrations. Checked November 15, 2026.
  13. HIPAA Eligible Services Reference - Amazon Web Services (AWS). Checked November 26, 2026. Page dated Last Updated: November 16, 2026.
  14. HIPAA Projects | Supabase Docs. Checked November 15, 2026. Page dated Updated Oct 30, 2026.
  15. Replit, Database. Checked November 15, 2026.
  16. Replit, App Storage. Checked November 15, 2026.
  17. HIPAA compliance on Google Cloud and Google Workspace | Security | Google Cloud Documentation. Checked November 15, 2026. Page dated Last updated: 2026-11-11.
  18. Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 13 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-02).
  19. Anthropic, Business Associate Agreements (BAA) for Commercial Customers. Checked November 27, 2026.
  20. Security · Resend. Checked November 15, 2026.
  21. Twilio and HIPAA. Checked November 15, 2026.
  22. Vercel, Security & Compliance Measures. Checked November 15, 2026. Page dated Last updated September 8, 2026.
  23. Replit, Monitoring a deployment. Checked November 15, 2026.
  24. Replit changelog, February 20, 2026. Checked November 15, 2026. Page dated 2026-02-20.
  25. Migrate from Replit Auth to Clerk. Checked November 15, 2026.
  26. Replit, Clerk Auth. Checked November 15, 2026.
  27. Clerk, Security & Compliance at a Glance. Checked November 15, 2026.
  28. HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  29. HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  30. HIPAA eligible products and functionality | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 5 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-10).
  31. How to build and maintain HIPAA-compliant applications on Vercel. Checked November 15, 2026. Page dated Published 2025-11-03; last_updated 2026-10-02 (per page metadata).
  32. Replit, Deployment and publishing. Checked November 15, 2026.
  33. HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  34. HHS (eCFR), 45 CFR 164.316 -- Policies and procedures and documentation requirements.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  35. HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  36. Replit's Trust Center. Checked November 15, 2026.
  37. Replit, Pro Agreement. Checked November 15, 2026.