Own Your Emergent App: Export to GitHub and Plan Your Exit

For builders already shipping on Emergent: how to save your code to GitHub, what does and does not come with it, and your real options when the app outgrows the builder.

Own Your Emergent App: Export to GitHub and Plan Your Exit
Listen to this post 7 min

This post is for people already shipping on Emergent. Your app is live, maybe with paying users, and you want to know two things: do you actually own the code, and what are your options if you outgrow the builder? Short answers: yes, you can get the code out, and you have more options than "stay or rebuild."

Why bother before you need it

Most builders I work with only think about export when something goes wrong: a bill they did not expect, a feature the agent cannot get right, or a client who asks where the code lives. That is the worst time to learn the process. Set it up while things are calm.

A GitHub copy gives you three things:

  • A backup that lives outside the platform.
  • A history of every change, which helps when you need to find when something broke.
  • Options. Another developer, or a coding agent like Claude Code, can work on the repo directly.

Connecting GitHub and saving your code

The GitHub integration is included on Emergent's paid plans (Standard and above at the time of writing; check the current pricing page). The flow, per Emergent's GitHub integration page:

  1. Open your profile and connect your GitHub account. Authorize Emergent to access your repositories.
  2. In your project, use Save to GitHub.
  3. Choose a new repository or an existing one, and pick a branch.
  4. Emergent commits your changes automatically.

Run Save to GitHub again whenever you finish a meaningful chunk of work. I make it part of the same habit as Re-publish: ship it, then save it.

Emergent's page also describes pulling an existing repository into an Emergent workspace to keep developing it, which is how team members pick up each other's work. If you plan to edit code outside Emergent and bring it back in, test that round trip on a copy first.

What you get, and what you do not

For a web app, the code is a React front end, a FastAPI (Python) back end and a MongoDB database layer. Mobile apps are React Native with Expo. This is a normal, well-known stack, which is good news. Any developer who knows React and Python can read it.

What does not come with the code:

  • Your secret values. API keys live in your project's .env and in the Secrets panel, and you should keep it that way. Before relying on the repo, check it for any key that slipped into a file, and make the repo private.
  • Your database records. The code describes the database. The data lives in Emergent's managed MongoDB. If you move hosting, moving data is its own job.
  • Platform services. Some features are Emergent services your code talks to. If your app uses Emergent Auth for login, the managed Stripe sandbox, the Universal LLM Key or a playbook integration, plan on replacing each with your own account if you ever host elsewhere.

Before you assume anything, have the agent tell you. This prompt works well:

Write a file called HANDOFF.md in the project root that explains:
1. The folder structure and what each main folder does
2. How to run the front end and back end locally
3. Every environment variable the app needs (names only, no values)
4. Every Emergent-specific service the app depends on
   (login, payments, LLM key, integrations) and what it would take
   to replace each one
5. How the database is structured
Do not change any other code.

Then Save to GitHub. Now the repo explains itself to whoever opens it next, including you in six months.

Signs you are outgrowing the builder

Not every frustration means it is time to leave. These are the signals I take seriously:

  • Changes keep breaking unrelated features, and rollbacks have become routine.
  • Your monthly credit spend is mostly on fix loops, not new features.
  • You need something specific the agent keeps getting wrong, like a complex permission model or a custom integration.
  • You need hosting, compliance or infrastructure choices the platform does not offer.
  • The project hits context limits often, even after forking.

If it is one of these, occasionally, you probably just need tighter prompts and smaller changes. If it is several, every week, look at your options.

Option 1: stay on Emergent, with GitHub as insurance

This is the right choice for most apps. Keep building and hosting on Emergent, save to GitHub regularly, and keep your HANDOFF.md current. You lose nothing and keep the door open.

Add two habits: fork before big changes, so experiments never touch your working app, and check Credit Usage monthly so cost creep does not sneak up on you.

Option 2: hybrid, with a developer or coding agent on the repo

Clone the repo to your machine and bring in a developer or a coding agent such as Claude Code for the parts Emergent struggles with. This works well for one hard feature, a security review or a cleanup pass.

The risk is two sources of truth. If you edit outside Emergent, decide where the "real" version lives and how changes get back. Pick one direction and stick to it. If you go this way, a first prompt for the coding agent might be:

Read HANDOFF.md and the codebase. Do not change anything yet.
Give me a short report:
1. Anything that looks insecure, especially around login and data access
2. Code that is duplicated or unused
3. The three changes that would make this app easiest to maintain
Rank by risk, highest first.

Option 3: move off fully

This is the most work, so do it for a clear reason. A rough order of operations:

  1. Pick hosting for each part: somewhere for the React front end, somewhere that runs Python for the FastAPI back end, and a MongoDB host for the database.
  2. Replace each Emergent service on your HANDOFF list with your own account: an auth provider, your own Stripe account and webhooks, your own AI provider keys.
  3. Get it running on a staging URL with test data.
  4. Plan the data move, then test it on a copy first.
  5. Switch your domain only after the new version passes the same checks you ran before launch.
  6. Keep the Emergent app running until you are confident, then shut it down. Shutting down stops the hosting charge but keeps your code and databases.

Some builders decide the stack itself is the problem and rebuild in a different tool. That can be the right call, but treat it as a new build with your current app as the spec, not a migration.

A note for client work

If you build Emergent apps for clients, settle code ownership in writing before you start. Agree whose GitHub account holds the repo, whose Emergent account hosts it, and who pays the monthly credits. It is much easier to agree on this up front than to untangle it at handoff.

Where to go next

If you are weighing whether to stay or move, bring it to office hours or join a cohort and we can talk through it with your app in front of us. The recipes are written as tool-neutral specs, so they work as a starting point whether you rebuild in Emergent, Lovable or with Claude Code.

Was this post helpful?
R
Robert Dixon
Founder of NoCode Outlaws. Ships SaaS with Lovable, Supabase and Stripe, and teaches founders to do the same in live cohorts.
Build with us. Free account gets the starter course and the weekly build notes.
Start free
See the next cohort

Send Feedback

What would you like to share?