Move your app · Google AI Studio
Deploy your Google AI Studio app to your own domain
AI Studio's Build mode makes React apps that call Gemini, and publishes them to Cloud Run in your Google Cloud project. Exported, the app is a Vite project, and its build config can copy your Gemini API key into the JavaScript every visitor downloads. Moving it is the moment to fix that.
Check your Google AI Studio app, freeStart free
What carries over
The app itself: a Vite and React project, which any host builds. Firestore and Firebase sign-in, if it uses them, keep working: they're in your Firebase project.
What to watch for
A vite.config that defines GEMINI_API_KEY or API_KEY puts the key in the bundle, where anyone can copy it and spend on your Google account. Call Gemini from a server route before you deploy anywhere public.
Launchpad recognises a Google AI Studio app by The README's link back to the app in AI Studio, or AI Studio's metadata.json beside @google/genai, and adjusts what it sets up before anything is created.
The steps
- Download the app from AI Studio, or save it to GitHub from there.
- Run the free launch check on it: it finds a Gemini key copied into the bundle.
- Paste the fix request into AI Studio or your coding tool, so Gemini is called from a server route.
- Import the repository in Launchpad, set
GEMINI_API_KEYas a secret, and deploy it on your domain.
Problems Google AI Studio apps hit, and their fixes
Questions
Why not just publish from AI Studio?
You can: AI Studio publishes to Cloud Run in your Google Cloud project. Launchpad is for putting it on your own domain and the host you choose, with sign-in, a database and email wired in, and uptime checks once it's live.
Is my Gemini API key exposed?
It is if vite.config.ts defines process.env.GEMINI_API_KEY or process.env.API_KEY: Vite writes the value into the JavaScript bundle. The launch check finds it. Move the Gemini calls to a server route, then create a new key and delete the old one.
Is Launchpad part of Google AI Studio?
No. Launchpad is an independent product by Axonscape. It isn't affiliated with or endorsed by Google AI Studio; it recognises apps made with it so moving them is easier.
The full guide covers every tool in detail.