Do You Own the Code an AI Builder Writes?
Owning your code is a promise every builder makes. What matters is whether you could actually walk away with a working app. Here is how to check.

Key takeaways
- On Startbase, the code the agent generates belongs to you: download it as a zip or sync it to GitHub and deploy it anywhere.
- Real ownership is portability: code, data, user accounts, secrets, domain and hosting. Check each one, not just the code.
- Startbase projects use standard open-source frameworks (React, Vite, Tailwind, Expo, PixiJS, Three.js, Postgres), so they run outside the platform without a rewrite.
Yes, with the right builder, you own the code it writes. On Startbase, all code generated for your project belongs to you: you can download it, push it to your own GitHub repository, change it in any editor and deploy it anywhere. But ownership on paper is only half the question. The practical test is whether you could leave tomorrow with a working app, and that depends on more than the source files.
Ownership versus portability
Some platforms say you own your app, but store it as configuration that only their engine can run. You own something you cannot use anywhere else. Real ownership has two parts:
- Rights. The terms say the output is yours, and the platform does not claim it or train on it. Startbase never trains AI models on your prompts, code or data.
- Portability. The output is in standard formats that run elsewhere without the platform. Startbase web apps are React, Vite and TypeScript with Tailwind CSS; mobile apps are Expo and React Native; games run on PixiJS or Three.js; the backend is Postgres through Supabase.
If a builder fails either test, treat what you build there as a prototype you will rebuild later.
How to get your code out of Startbase
Two ways, and you can use both:
- Download as a zip. In the Code tab, open the file options menu and choose Download code (.zip). Environment files and key files are left out on purpose, as are single files over 5 MB.
- Sync to GitHub. Connect GitHub from the project menu and Startbase creates a repository under your account (private by default) and keeps its main branch in sync: every completed agent turn that changes files commits and pushes. Disconnecting never deletes the repository.
GitHub sync is the stronger option because it is continuous. Even if you never plan to leave, a repository that updates after every turn means you always have an independent, complete copy. See exporting your app's code to GitHub for setup.
The portability checklist: six things to own
Code is the visible part. A working app also depends on these, and each needs its own exit path:
- 01Code. Zip download or GitHub sync, as above.
- 02Data. Your database. In Startbase Cloud, the Data section exports tables as CSV (up to 10,000 rows per export, honoring the active filter), and the SQL editor can copy query results as CSV or JSON. For a full move, a database dump through standard Postgres tools is the usual route.
- 03User accounts. Your users' sign-ins live in the auth system of your backend. Moving them is part of any backend migration and worth planning early if you might leave.
- 04Secrets. API keys live in Backend, Secrets, and are never shown again after saving. Keep your own record of which services you use, and you can always issue new keys from each provider.
- 05Domain. Register your custom domain with a registrar you control. Then pointing it elsewhere is a DNS change.
- 06Hosting. The published site runs on Startbase hosting. A standard Vite app can be hosted on any static host.
What deploying elsewhere actually takes
For a Startbase web app, moving the frontend to another host is routine. Push to GitHub, connect the repository to a Git-based host such as Netlify, Cloudflare Pages, Vercel or AWS Amplify, and use these settings:
- Build command: npm run build. Output directory: dist. Node version: 22.
- Environment variables prefixed with VITE_ are embedded at build time, so set them in the new host.
- Configure a fallback rewrite so every route serves index.html, because the app uses client-side routing.
The backend can stay where it is (a hybrid setup: frontend elsewhere, Startbase Cloud or your own Supabase behind it) or move to self-hosted Supabase or an equivalent if you need full infrastructure control. The docs page on hosting and deployment compares the setups.
A useful habit for anything that earns money: once or twice a year, run an exit drill. Clone the repository on a spare machine (or ask a developer friend), build it, and point it at a copy of your data. If it runs, your ownership is real. If it does not, you have found the gap while there is no pressure to fix it.
The legal questions people ask
Two questions come up often, and both deserve a careful answer rather than a confident one.
Can AI-generated code be copyrighted? Copyright law around AI-assisted work is still developing and varies by country. In practice, most apps are a mix of generated code, your instructions, your edits, your content and your design choices. If exclusive rights over the code itself are central to your business (for example, you plan to license it), get advice from a lawyer in your jurisdiction. For most products, the value is in the product, the brand, the data and the users, not in any single file.
What about open-source packages? Every modern app uses open-source libraries, each with its own license. The common ones (MIT, Apache, BSD) allow commercial use with simple conditions such as keeping the license notice. If you add an unusual package, check its license, and run Deep scan in Backend, Security to audit packages for known vulnerabilities.
The same goes for generated media. Images, icons and audio the agent creates are saved as files in your project, so they travel with the code in the zip or the repository.
Sharing your code publicly is a choice
Projects on Startbase are private to your organization until you choose otherwise. Publishing a project to the Community makes a snapshot of your workspace code visible and forkable by anyone (secrets, your database and your backend are never included), and forks are independent copies. That is a great way to share a template or a game, but it is a decision about your code, so make it deliberately. The Community page shows what others have shared.
Prepare this project so a developer could run it outside Startbase: add a README explaining how to install, run and build it, list every environment variable it needs with a short description (no values), and note which backend tables, functions and scheduled jobs it depends on.
A request like that, run once before a handover, turns ownership from a promise into something a developer can actually use. If you work with others in the same workspace, building apps with a team covers roles and access.
Frequently asked questions
Who owns the code Startbase generates?
You do. All code generated by Startbase belongs to you. Export it, deploy it anywhere, and change it however you like.
Can I take my app to another host?
Yes. Sync the code to GitHub or download it, then deploy the web app to any Git-based host with npm run build and the dist output folder. The backend can stay on Startbase Cloud or move to your own Supabase or equivalent.
Does Startbase train AI on my code?
No. Startbase never trains AI models on your prompts, code or data. To answer you, your prompt, attachments and the relevant project context go to the model provider, to generate the reply.
What is left out of the zip download?
Environment files and key files are left out, so secrets never travel in the archive, and so are single files over 5 MB.

