Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
Building with AINovember 22, 20265 min read

Exporting Your App's Code to GitHub

Connecting GitHub turns your project into a repository that updates after every build. Here is how to set it up, and what to do with it once it exists.

Startbase Team
Editorial ink illustration of a canal lock with wooden gates and a paper boat passing through, the paper boat in ember orange

Key takeaways

  • In Startbase, connecting GitHub creates a repository (private by default) and pushes to its main branch after every completed agent turn that changes files.
  • Each commit is named after the change it made, so the repository doubles as a readable history of how the app was built.
  • Once the code is on GitHub, developers can review it, CI can test it, and any Git-based host can deploy it. Agree on who writes to main.

To export your app's code to GitHub from Startbase, open GitHub from the project menu, connect your GitHub account, pick a repository name and press Create repo. Startbase creates the repository under your account and keeps its main branch in sync from then on: every completed agent turn that changes files commits and pushes, named after the change. You never have to remember to export again.

Why put an AI-built app on GitHub at all

If the app already runs and publishes from the builder, a repository can seem redundant. It is not. GitHub gives you things a builder alone does not:

  • An independent copy. Your code exists outside the platform, under your own account, at all times.
  • A readable history. Every turn becomes a commit you can browse, compare and link to.
  • Developer access. A developer can read, review and run the code in their own tools without joining your workspace.
  • Automation. Continuous integration, dependency alerts and code scanning all plug into a repository.
  • Hosting freedom. Any Git-based host can deploy from it.

Setting it up, step by step

  1. 01Open GitHub from the project menu.
  2. 02Connect your GitHub account with OAuth, or paste a personal access token that has permission to create repositories and write contents.
  3. 03Pick a repository name. It defaults to your project slug.
  4. 04Choose whether the repository is private. Private is on by default, and is the right choice for most apps.
  5. 05Press Create repo and keep the window open until the first sync finishes. From then on, auto-sync is on.

The GitHub connection is account-wide and shared with Settings, Integrations, so you connect once and every project can use it. Tokens are stored encrypted and never shown again. The GitHub sync docs have the reference version.

What each sync contains

Every time an agent turn completes and has changed files, Startbase commits and pushes to main. A few details worth knowing:

  • Commits are named after the change the turn made, so the log reads like a changelog.
  • Turns that change nothing skip the commit, so the history stays clean.
  • The GitHub dialog shows when the project last synced, with a link to the commit.
  • If a sync fails, the reason is shown in plain words and Retry runs it again.
  • Disconnect unlinks the project from the repository. The repository itself is never deleted.

Tip

Secrets do not belong in a repository, and Startbase keeps them out of your code by design: API keys live in Backend, Secrets, where only your server functions read them. If you ever paste a key into code by hand, remove it and issue a new key from the provider, because Git history keeps old versions.

Using the commit history

Because each commit matches one agent turn, the repository becomes a useful record even if you never read code. Three practical uses:

  • Finding when something changed. Search the commit messages for the feature name to see when it was added or last touched.
  • Showing progress. A link to the commit list is an honest progress report for a cofounder, client or investor.
  • Comparing two points. GitHub can show the difference between any two commits, which is handy when a developer asks what changed since their last review.

Inside Startbase, Versions and View diff on each turn's receipt cover the same ground faster. GitHub matters when someone outside your workspace needs to see it.

Working with a developer through GitHub

The most common reason to connect GitHub is to bring in a developer: for a code review before launch, for a feature beyond what you want to build by chat, or to take over the project entirely. A few ground rules avoid confusion.

Decide who writes to main. Startbase sync pushes to the main branch. If a developer also commits to main while you keep building in Startbase, the two will collide. Simple options: the developer works on a separate branch and you bring finished changes back into Startbase deliberately (for example, by uploading the changed files in the Code tab, which the agent then sees on its next turn); or you hand over fully and stop building in Startbase, after disconnecting sync.

Give them a map. Generated projects are standard, but a short README saves a new developer an hour. Ask the agent for one before you invite them.

Write a README.md for this project aimed at a developer who has never seen it: what the app does in two sentences, the tech stack, how to install and run it locally, how to build it, every environment variable it needs (names and purpose only, no values), the main folders and what lives in each, and the backend tables and server functions it uses. Keep it under one page.

Review in pull requests, even for yourself. If the developer works on a branch, their changes arrive as a pull request you can read before anything lands. Even non-developers can follow a pull request's description and screenshots.

CI, checks and other hosts

Once the code is on GitHub, the usual tooling applies. Continuous integration can run the project's type checks, lint and tests on every push. GitHub's dependency alerts can flag vulnerable packages. And if you want to host the web app somewhere other than Startbase, connect the repository to any Git-based host: build command npm run build, output directory dist, Node 22, environment variables prefixed with VITE_ set in the host, and a fallback rewrite so every route serves index.html.

For mobile apps, GitHub is the path to the stores. App Store and Play Store builds are not available from Startbase right now; sync the Expo project to GitHub (or download it) and build it with your own Expo and EAS workflow and developer accounts. Our native mobile app guide and the launch checklist cover what comes after.

A sensible minimum for any app that earns money: connect GitHub on day one, even if no developer will ever look at it. It costs nothing to keep in sync, and the day you need an outside copy, it is already there and up to date.

Prefer a one-off download?

If you only need a snapshot, for an archive or to send to someone, the Code tab's file options menu has Download code (.zip). Environment files and key files are left out, and so are single files over 5 MB. It is a moment in time, though; GitHub sync keeps updating.

Going the other way: starting from a repository

You can also start a Startbase project by importing a public GitHub repository, then keep building it by chat. This is handy for continuing an open-source template or a project that began elsewhere. For the bigger picture on what you own and how to move it, see do you own the code an AI builder writes.

Frequently asked questions

Is the GitHub repository private?

By default, yes. You choose public or private when you create the repository from Startbase, and private is on by default.

How often does Startbase push to GitHub?

After every completed agent turn that changes files. Each commit is named after the change, and turns that change nothing skip the commit.

What happens if I disconnect GitHub?

The project stops syncing. The repository and its history stay on GitHub; Startbase never deletes it.

Can I publish to the App Store from GitHub?

Not from Startbase. Store builds are not available from Startbase right now. With the Expo project on GitHub, you can build it with your own Expo and EAS workflow and submit it with your own developer accounts.

On this page

  • Why put an AI-built app on GitHub at all
  • Setting it up, step by step
  • What each sync contains
  • Using the commit history
  • Working with a developer through GitHub
  • CI, checks and other hosts
  • Prefer a one-off download?
  • Going the other way: starting from a repository

Keep reading

More in Building with AI
Editorial ink illustration of an open radio cabinet with a glowing vacuum tube being slotted in, the vacuum tube in ember orange
Building with AINovember 22, 2026

How to Add AI Features to Your App

The best AI features are small and specific: a summary, a suggested tag, a drafted reply. Here is how to pick them, design them and keep their costs in check.

5 min read
Editorial ink illustration of a row of dominoes with a hand catching the first as it tips, the tipping domino in ember orange
Building with AINovember 22, 2026

15 Mistakes People Make Building Apps with AI

Most failed AI builds fail in the same handful of ways. Here are fifteen of them, grouped by stage, each with the habit that prevents it.

5 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.