---
title: "Cloud Run vs while: the French alternative for your AI agent"
url: https://while.sh/en/comparisons/while-vs-cloud-run/
author: "Grégoire Mougeolle, co-founder of Nextmap"
updated: 2026-11-02
---

# Google Cloud Run vs while: which one to choose when your AI agent deploys?

Cloud Run runs your containers on Google's infrastructure, to be assembled with Cloud SQL, IAM and the rest. With while, your AI agent deploys the app, its database and its access in a single request, over MCP, and sensitive actions, like deleting a production database, wait for your approval.

## What changes between Google Cloud Run and while

| What matters | Google Cloud Run | while |
|---|---|---|
| Who it's for | Teams that assemble their app in Google Cloud: containers, Cloud SQL, IAM (source 1) | People who build their apps with an AI agent, solo or as a team |
| Your AI agent | An MCP server that deploys, with no delete tool (source 2) | Connected over MCP, with OAuth: it deploys, creates the database, reads the logs and fixes things |
| What protects production | The Google Cloud permissions of the signed-in person (source 2) | Sensitive actions, like deleting a production database, wait for a person |
| The database | Cloud SQL, set up separately, with point-in-time recovery turned off by default when the database is created from the command line or the API, as an agent would do it (source 3) | PostgreSQL in while, backed up every day, with point-in-time recovery |
| Who opens your app | A Google account or the company's SSO, through Identity-Aware Proxy (source 4) | Everyone, a password, or the company account with the Pro plan |
| In France | Yes, a region in France (source 5) | Yes, with Nextmap, a French company |
| To get started | A free tier every month, then billing by the second, with the Cloud SQL database on top (source 6) | A trial without an account. Then €0 to get started, and €13.75 per month for an app and its database |

## Cloud Run, Google's power with no server to manage

Cloud Run deploys your code with a single command, in more than 20 regions at once, and bills only for the time it runs (source 1). It can also serve AI models on GPUs, which start in 5 seconds and stop when no one is using them (source 1).

## With while, your AI agent does the rest

- **No server to maintain.** There's no system to update, no disk to watch and no certificate to renew: your agent deploys, and the rest is taken care of.
- **Your databases are backed up for you.** Every day, with point-in-time recovery, and a production backup is tested every day.
- **Nothing serious happens without you.** Deleting a production database waits for your approval, before it runs, and every action is recorded in a signed activity log.
- **Your keys stay secret.** Your app uses them, your agent never sees them.
- **Your colleagues sign in with the company account.** Google Workspace or Microsoft 365, on the Pro plan, with no sign-in page to code.

## Moving from Google Cloud Run to while

### Take over your app

> You, to your agent: Move our Cloud Run service to while.

Your agent takes over your code or your image, writes while.yaml and deploys the app.

### Copy your Cloud SQL database

> You, to your agent: Copy our Cloud SQL database to while.

Your agent exports the database with `pg_dump`, then loads it into while.

### Carry over your variables

> You, to your agent: Carry over our environment variables.

Your agent carries your settings over to while. You enter your secret keys yourself: it never sees them.

## Which one to choose

- **Choose Google Cloud Run** if your team already lives in Google Cloud, or if you need GPUs to serve a model.
- **Choose while** if your AI agent is the one deploying, and you want the app, the database and access in one go, in France, without breaking anything.

## Next steps

- [Deploy a Docker container](/en/guides/deploy-docker-container/)
- [Share your app with a link and a password](/en/guides/share-app-with-password/)

## Sources

1. [Google Cloud Run, overview](https://cloud.google.com/run), 2026-11-02
2. [Cloud Run, the remote MCP server](https://docs.cloud.google.com/run/docs/reference/mcp), 2026-11-02
3. [Cloud SQL for PostgreSQL, backups and point-in-time recovery](https://docs.cloud.google.com/sql/docs/postgres/backup-recovery/restore), 2026-11-02
4. [Cloud Run, Identity-Aware Proxy](https://docs.cloud.google.com/run/docs/securing/identity-aware-proxy-cloud-run), 2026-11-02
5. [Cloud Run, regions](https://docs.cloud.google.com/run/docs/locations), 2026-11-02
6. [Cloud Run, pricing](https://cloud.google.com/run/pricing), 2026-11-02

## Questions

### Does Cloud Run host in France?

Yes, one region is in France (source 5). So does while, with Nextmap, a French company.

### Can my agent deploy on Cloud Run?

Yes, through Cloud Run's MCP server, which deploys with no delete tool (source 2). The database, permissions and access are set up separately, in Google Cloud. On while, your agent does everything through the same MCP server.

### Can I show my app to a client with a password?

Not easily on Cloud Run: access goes through a Google account or your identity provider (source 4). On while, your app with private access opens to a client through a link with a password, with no account to create for them.

### Can my agent move from Cloud Run to while?

Yes. It takes over your code or your image, copies the database with pg_dump and carries over your settings.
