Compare
Gregale vs Google Cloud Run
Gregale vs Google Cloud Run: request-based pricing, cold starts, automatic canary rollbacks, managed PostgreSQL and preview environments compared.
| Topic | Gregale | Google Cloud Run |
|---|---|---|
| Free plan | Gregale Free: $0, 1 app with 256 MB and 20 GB-RAM-hours a month. It stops at the allowance rather than billing you. | 180,000 vCPU-seconds, 360,000 GiB-seconds and 2 million requests a month in Tier 1 regions (with a Google Cloud billing account attached). |
| Cheapest paid option | Gregale Hobby: $10 a month for 5 apps with 512 MB each and 200 GB-RAM-hours included. | Pay per use: $0.00002400 per vCPU-second, $0.00000250 per GiB-second and $0.40 per million requests in Tier 1 regions. |
| How compute is billed | By memory and time (GB-RAM-hours), CPU included, and only while an instance is running: paused and parked time is not billed. Beyond a Gregale plan's allowance, $0.05 per GB-RAM-hour, up to a spend cap you set. | Request-based billing charges while starting, shutting down or handling a request (rounded to 100 ms); instance-based billing charges for the whole lifetime. |
| Idle apps | About a second after its last request, an idle app pauses and stops being billed; the next request resumes it in milliseconds. After 10 minutes it parks to a snapshot. An app doing background work keeps running, and billed, while it works. On every plan. | Scales to zero after traffic stops and shuts down the container; minimum warm instances stay billed continuously. |
| Releases | Every production release of a live app climbs a ladder: 1%, then 10%, 50% and 100% of real traffic, advancing only while the new version shows no errors, OOM kills or restarts, and rolling back on its own if it starts returning 5xx. On by default, on every plan; a typical release reaches 100% in 3 to 5 minutes. | Revisions shift 100% by default; manual traffic splitting is built in, while automated canary phases and rollbacks require Google Cloud Deploy. |
| Isolation | A Firecracker microVM per instance. | gVisor container sandbox. |
| Postgres | Managed PostgreSQL on Hobby and above, bound to the app as DATABASE_URL. | Not bundled. Connect Cloud SQL (starting separately at per-hour instance rates) and manage IAM or VPC connectors yourself. |
| Preview environments | A preview environment per open pull request, on every plan including Free. | Revision tags give tagged URLs; per-PR databases and teardown must be wired in CI. |
| Local disk | No durable local disk. Keep state in managed PostgreSQL or object storage. | Ephemeral in-memory disk (counts toward instance RAM) or Cloud Storage FUSE. |
| Regions | One region today. | Dozens of Google Cloud regions worldwide with global Cloud Load Balancing. |
Which one fits
Choose Google Cloud Run when
- Your backend already uses BigQuery, Pub/Sub, Cloud SQL or Google Cloud IAM inside a GCP VPC.
- You need multi-region Google Cloud placement or hundreds of auto-scaled containers.
- Your request volume stays inside Cloud Run’s monthly free allowance.
Choose Gregale when
- You want managed PostgreSQL, PR previews, crons and custom domains in one CLI without assembling GCP IAM, Cloud SQL and load balancers.
- You want automatic percentage canary rollouts that roll back on 5xx errors without setting up Cloud Deploy.
- You want predictable monthly allowances, a hard spend cap and scoped keys for AI coding agents.
Questions
- Is Gregale cheaper than Google Cloud Run?
- It depends on how much of the day your app is actually serving. Gregale stops billing about a second after each request, so an API is billed for the time it spends answering, not the time it is up. A 512 MB app that serves for about eight hours a day uses around 122 GB-RAM-hours a month, which fits inside Hobby's $10 plan. The same app serving around the clock costs about $18.25 on Gregale, and Cloud Run can be free under its monthly Tier 1 allowance or cheap for sparse bursts, though keeping a minimum warm instance or adding Cloud SQL adds continuous GCP charges.
- Can I move a Google Cloud Run service to Gregale?
- Yes. Any Dockerfile or standard HTTP server listening on PORT deploys directly with `gregale deploy`. Replace Secret Manager mounts with environment variables and bind bundled managed PostgreSQL via DATABASE_URL.
- Does Google Cloud Run include managed Postgres or PR previews?
- No. Cloud SQL is a separate paid Google Cloud service that you connect over a Cloud SQL proxy or VPC connector, and full PR preview environments require your own CI workflow.
- What happens if a release breaks?
- On Gregale, a production release first gets 1% of traffic, then 10%, 50% and 100%, and only moves up while the new version is answering cleanly. If it starts returning 5xx errors, it rolls back to the previous version on its own. On Cloud Run, you split traffic manually across revisions or wire Cloud Deploy for automated rollbacks.
How Gregale works
- Canary deploys with automatic rollback
Every production release on Gregale goes to 1% of traffic first, moves up in stages on clean evidence, and rolls back on its own on 5xx errors, crash loops or a latency regression.
- A microVM for every app
Gregale runs every app instance in its own Firecracker microVM, with its own kernel, network namespace, memory limit and jailed process. Your existing Dockerfile works unchanged.
- Preview environments for every pull request
Gregale gives every pull request its own live copy of the app, rebuilt on every push and torn down after the pull request closes, with no CI workflow to write. On every plan, including Free.
- Where to host an MCP server
Gregale hosts remote MCP servers over Streamable HTTP, checks every new version as an MCP client before it takes traffic, supports OAuth with per-tool scopes, and parks idle servers. In beta on Hobby, Pro and Scale.
- Hosting a startup backend without a DevOps engineer
What an ops person usually does (builds, safe releases, backups, TLS, scaling, alerts, cost limits) and how Gregale does it for a small team, with what your team still owns and when another option fits better.
- Where to host a FastAPI app with background jobs and Postgres
Which background work belongs in BackgroundTasks, crons, jobs or a worker, a Compose setup that runs the API, the worker and managed Postgres on Gregale, and how Render, Railway, Fly.io and Heroku compare.
- Running a Node.js API and a worker together
What makes an API and worker setup reliable, a Compose setup for Gregale that keeps both on one version, and what two small always-on processes cost on Fly.io, Railway, Gregale, DigitalOcean, Render and Heroku.
- Let Claude Code deploy to production safely
Give Claude Code a Gregale agent key instead of your login or cloud credentials. It can deploy, read logs and roll back; risky production changes wait for your approval, new releases go to a small share of traffic first, and you can undo what it changed.
- Human approval before an AI agent changes production
On Gregale, an AI coding agent has to ask a person before it deletes something, deploys or rolls back a production app, creates or rotates credentials, or changes billing. You approve or deny from a review link; the agent repeats the exact request once.
- Undo what an AI agent changed in production
Gregale keeps a 7-day log of every change an AI agent makes and can reverse them with one command: deploys and rollbacks, traffic splits, settings, scaling, variables, and the apps, crons, domains and databases it created or deleted.
- Cap what an AI agent adds to your hosting bill
Each AI agent on Gregale has a monthly budget for the always-on capacity it adds. Gregale prices every change before it is made; a change past the budget waits for your approval, with its added monthly cost on the review page.
- Hosting platforms with an MCP server that deploys, reads logs and rolls back
Gregale, Vercel and Dokploy ship official MCP servers whose tools let an AI agent deploy, read logs and roll back. Render, Railway, DigitalOcean, Heroku, Cloud Run and Netlify deploy over MCP but have no rollback tool, and Fly.io's hosted server has no deploy tool. Checked on November 26, 2026.
- Roll back a bad migration: code and database together
Rolling back code after a migration runs old code on the new schema. On Gregale, `gregale rollback --restore-databases` restores the managed PostgreSQL database to the moment before the migration as a new database and switches the app to it with the earlier code, keeping the original and its writes.
- Scale to zero without slow cold starts
Gregale scales idle apps to zero without booting them again: an app pauses in memory about a second after its last request and resumes in about a millisecond, and after 10 minutes it parks as a memory snapshot that wakes with its process already running.
- Best cloud platform for AI coding agents in 2026
What makes a cloud safe for Claude Code, Codex, Cursor and Gemini CLI: non-interactive JSON output, scoped agent keys, human approval on production mutations, cost previews, undo and automatic 5xx rollbacks, compared across Gregale, Vercel, Railway, Render, Fly.io and Cloud Run.
- Let Cursor deploy to production safely
Give Cursor a scoped Gregale `--agent` token via `GREGALE_TOKEN` and project rules in `AGENTS.md`, or connect it via `gregale mcp connect --client cursor`, with server-side approval gates, budgets, undo and canary rollbacks.
- Let OpenAI Codex deploy to production safely
Configure Codex with a scoped `gregale key create --agent` token in `GREGALE_TOKEN`, sandbox network access in `~/.codex/config.toml`, and `AGENTS.md` deploy rules enforced by Gregale API guardrails.
- Let Gemini CLI deploy to production safely
Authenticate Gemini CLI with a scoped Gregale `--agent` key, load `AGENTS.md` via `.gemini/settings.json`, and let Gregale enforce human approvals, budget previews, undo and 5xx canary rollbacks in production.
- Hold WebSocket and SSE connections while your backend scales to zero
Gregale managed realtime holds client WebSocket and SSE sockets plus heartbeats at the edge while your backend microVM parks at zero billed compute, waking only on client messages or publishes. Core endpoints are in beta on every paid plan; resumable v2, history and channel rules are in per-account preview.
- Receive Stripe and signed webhooks while scaled to zero
Gregale verifies Stripe and HMAC-SHA256 webhooks at the edge while your app is parked, persists them to a durable invocation queue, immediately responds `202 Accepted`, and delivers them with async retries and dead-letter replay on Hobby, Pro and Scale.
- Cache public API responses at the edge without waking your app
Declare gateway caching with `gregale edge cache` using `stale-while-revalidate`, `stale-if-error`, query-order isolation and `Cache-Tag` purging, serving cache hits without waking your microVM while bypassing any request carrying cookies or `Authorization`.
- Call Stripe, OpenAI and third-party APIs without API keys in your app
Gregale outbound integrations (in preview per account on Hobby, Pro and Scale) inject sealed `Authorization` credentials outside your microVM at `$GREGALE_OUTBOUND_URL`, enforcing method/path allowlists, circuit breakers and daily request budgets.
- Block breaking OpenAPI changes and probe routes before traffic shifts
Validate OpenAPI changes with `gregale api spec preview`, `diff` and hash-pinned `apply`—exiting `2` on breaks and `3` on `UNKNOWN` schema changes while blocking promotion—and probe up to ten `x-gregale-hosting-check: true` GET routes on the exact candidate.
- Write durable workflows that sleep for months without a running VM
Write durable retries, multi-day sleeps (30 days on Hobby, 90 on Pro, 365 on Scale), and event waits as plain async functions in Node, Python or Go that hold zero running VM while parked (in preview on Hobby and up).
- Rotate and revoke secrets without restarting containers or leaking snapshots
Every secret mutation on Gregale invalidates memory snapshots so restored VMs never serve stale keys, `--restart` performs a draining rolling replacement, and images with `com.gregale.secret-reload-signal` hot-reload in-process with verifiable acknowledgements.
- Private service-to-service networking with caller allowlists and no VPC
Apps in the same account reach one another privately by name (`GREGALE_SERVICE_*_URL` and `.internal`) with zero VPC setup, while target caller allowlists, path scopes, deadlines and default-deny PR preview rules run at the proxy before waking targets.
- Run OpenTelemetry, Datadog and proxy sidecars on a PaaS without Kubernetes
Declare built-in `opentelemetry`, `sentry` or `datadog-dogstatsd` presets or custom `@sha256` sidecars in `gregale.yaml` with loopback discovery, startup probes, Unix socket directories and per-companion `env_secrets` allowlists.
- Run SQS-style pull queue workers with zero-secret workload identity
Long-running workers consume Gregale queues without an HTTP listener using `leases`, `ack`, `nack` and `extend`, preview SDK auto-heartbeating (`consumeQueue`), `queue_depth` autoscaling and `gregale:queues` workload tokens that block staging/preview code.
- Hard cloud spend caps that actually stop runaway bills
Every paid Gregale plan enforces a hard monthly overage cap from day one (Hobby $10 default, Pro $50, Scale $150), stopping compute at the ceiling with HTTP 402 instead of alerting after a runaway loop or DDoS spike racks up charges.
- One-line OpenTelemetry tracing with deploy-to-deploy SQL regression detection
Add `tracing: { enabled: true }` in `gregale.yaml` for zero-code Node and Python OpenTelemetry spans, in-instance OTLP receivers for Go/containers, normalized SQL queries, PII log redaction and automatic deploy-to-deploy `failure_regression` alerts.
- Autoscale containers from zero on Kafka lag, custom metrics and schedules
Scale Gregale apps up from zero on upstream Kafka/NATS/SQS `queue_lag`, API-pushed `custom` backlog metrics, or timezone-aware cron warm windows (`scaling.schedules`) with bounded saturation queues—without Kubernetes or KEDA.
- Promote tested staging artifacts to production without rebuilding
Promote exact staging build artifacts and pinned non-secret config to production with `gregale environment promote --sync-config` while keeping production secrets separate, with dark health rounds, service-graph rewiring and migrations rolling out per account.
- Synthetic uptime checks on scale-to-zero apps without accidental bills
Run external 5-, 15-, or 60-minute `GET`/`HEAD` uptime and p95-latency probes (`Gregale-Synthetics/1`) on Hobby+ apps with consecutive-failure alerts and exact per-plan GB-RAM-hour wake-cost tables.
- Static egress IP on scale-to-zero without a NAT Gateway
Bind a dedicated outbound static IP per app and region with `gregale app static-egress-ip set` so banks, payment processors and allowlisted databases see one stable IP even while compute scales to zero.
- Stop microservice version drift with atomic project releases and release graphs
Preflight multi-service projects with `gregale deploy check --project`, pin compatible frontend, API, worker and queue versions with `X-Gregale-Release` and `__Host-gregale_release`, and opt into progressive whole-graph canaries.
- Pre-traffic service binding verification for Postgres, S3 and queues
Probe `.internal` service routes, managed PostgreSQL (`SELECT 1`), object storage (`ListObjectsV2`) and push-queue consumers on your exact candidate release with `gregale app binding verify` and enforce gates inside promotion transactions.
- Stop Friday-night outages with deploy freezes, approvals and scheduled rollouts
Require signed-in human MFA approvals (`--approvals 2`), enforce recurring weekend or post-rollback deploy freezes (`--after-rollback 1h`), and build releases early to roll out automatically during quiet windows.
- Programmable edge rules and replayable trace testing without Nginx or Cloudflare
Block scrapers, rate-limit routes, verify JWTs and validate JSON Schema requests at the gateway without waking idle VMs, then test rule sets deterministically with versioned `gregale edge rule trace` JSON scenarios.
- Scale-to-zero cron jobs, delayed tasks and event queues without an always-on server
Run DST-safe HTTP crons (Hobby 5, Pro 20, Scale 100 per app), 365-day delayed tasks and CloudEvents app inboxes with zero idle compute and at least 30 days of dead-letter queue retention on every plan.
- Private app object storage and direct browser uploads without S3 IAM boilerplate
Create private S3-compatible buckets (`https://s3.gregale.dev`) with `gregale add bucket`, sealed env vars outside secret quotas, `$0.03/GiB-month` overage, direct upload routes and upload triggers without waking your app.
- Default SSRF protection with platform egress denylists across every plan
Block `169.254.169.254` cloud metadata, RFC1918 private networks, IPv6 NAT64 bypasses, SMTP spam ports, SSH/RDP and mining pools automatically on every Gregale app without extra configuration.
- Diagnose and recover failed stored workflows and missed schedules safely
Inspect failed DAG blockers with `gregale workflow diagnose`, resume mid-run preserving completed steps (`expected_resume_count`, up to 16 resumptions), opt into `catch_up: latest` schedules and run rate-limited recovery batches.
- Deploy any Docker container at scale-to-zero without rewriting for serverless
Any stateless Linux/amd64 OCI image listening on `0.0.0.0:$PORT` runs inside a Gregale microVM with automatic kernel/Node/Python/Java snapshot reseeding, ECR/Artifact Registry/ACR pulls, Compose support and `HEALTHCHECK` conversion.
- Connect Antigravity IDE to an MCP server and deploy backends safely
Wire Google Antigravity IDE or agy to Gregale’s hosted MCP server in one command, teach repos with AGENTS.md, or host your own Streamable HTTP MCP server at $0 idle.
- How to stop bot traffic cloud bill shock without taking your site down
Hard spend caps alone convert DDoS and scraper bursts into outages; block hostile requests at the edge with OWASP WAF and proof-of-work challenges before waking compute.
- How to deploy a vibe-coded app (Claude Code, Cursor, Antigravity) to production safely
Ship AI-generated backends from localhost to production with hard default spend caps, scoped agent tokens, deploy secret/CVE scans, 1% canary rollbacks and DB-synced recovery.
- Where to host a Python FastMCP remote MCP server with auth and scale-to-zero
Run Streamable HTTP Python MCP servers in full CPython 3.13 Firecracker microVMs without 128 MB Pyodide isolate limits, paying $0 while idle and enforcing per-tool allowlists.
- Remote cloud dev environments without Docker Desktop or local KVM
Run `gregale dev` for an isolated, auto-expiring Firecracker dev environment with hot reload, managed PostgreSQL and production-identical routing — no local KVM or Docker needed.
Weighing more than two options? Google Cloud Run alternatives in 2026 compares the main platforms people move to from Google Cloud Run.
Google Cloud Run figures are from Google Cloud Run pricing and Cloud Run traffic migration, checked November 26, 2026. Gregale figures are from current pricing. Prices are in US dollars before tax. Google Cloud Run is a trademark of its owner; Gregale is not affiliated with it.