Pick Agent Lab
Ordinary Node, Python or Go backends that stay on: write Express or FastAPI as usual, with no Workers runtime to adapt to.
Agent Lab vs Cloudflare · Compare and migrate
Cloudflare Workers run short requests across a global network, and anything that stays on needs Containers; Agent Lab runs ordinary always-on backends, with managed PostgreSQL and scheduled jobs. Facts about Cloudflare come from its own pages, checked on 2026-11-19, with a source on every row.
> move this app from Cloudflare to Agent Lab
sites_build_planstart command found · listens on $PORT
sites_createshop-api → shop--acme.hosting.agentlab.run
databases_connect_appDATABASE_URL written, password hidden
Preview is up. Import the data with pg_restore, test it, then point your domain here; Cloudflare keeps running until you do.
Which one fits
Two reasons to pick Agent Lab, and two to stay on Cloudflare.
Ordinary Node, Python or Go backends that stay on: write Express or FastAPI as usual, with no Workers runtime to adapt to.
Managed PostgreSQL or MySQL in the same workspace as the app, with no Hyperdrive or third-party database to wire up.
Users all over the world who need code answering from a nearby city, or domains, DNS and WAF already on Cloudflare.
High-volume APIs where each request is short, or projects already built on KV, D1, Durable Objects and R2.
Side by side
Cloudflare's side is from its official pricing and docs pages on 2026-11-19; prices change, so follow the source link before you decide.
Scroll the table sideways.
| Agent Lab Deploy | Cloudflare | |
|---|---|---|
| Free tier | Free US$0: 1 size-S app (sleeps after 15 idle minutes), 1 S database, 3 static sites; pauses at a limit, never charges Details | Workers Free: 100,000 requests a day and 10 ms of CPU per request; requests to static assets are free and unlimited Source |
| Cheapest always-on service | Pro US$29 a month before tax; its usage credit runs one size-S app all month Details | Workers run per request with no always-on server; long-running code uses Containers, which need Workers Paid (from US$5 a month) and bill per 10 ms of running time Source |
| PostgreSQL | Managed PostgreSQL 16–18, MySQL 8.4 and 9.7, one dedicated instance per database; Free includes one S Details | No first-party PostgreSQL: Hyperdrive connects to an external database, or create PlanetScale Postgres from Cloudflare at PlanetScale's prices Source |
| Deploy from an AI tool (MCP) | Remote MCP with browser OAuth sign-in, no API key, the same permissions as the console Details | Official remote MCP (mcp.cloudflare.com) with OAuth sign-in, covering the whole Cloudflare API Source |
| Deploy without an account | No account needed: agentlab-cli deploy --temporary puts a static site online publicly for an hour; sign in to keep it Details | No account needed: wrangler deploy --temporary or Cloudflare Drop; claim within 60 minutes by signing in, or it's deleted Source |
Migrate
Cloudflare keeps serving until you change DNS.
Save the environment variables and secrets from Cloudflare, and note the start command, scheduled jobs and domains.
Upload, push from GitHub, or ask your AI tool through Agent Lab MCP. You get a preview URL.
Create PostgreSQL and connect it to the app, then pg_dump from the old database and pg_restore into the new one.
Test the preview, lower the DNS TTL, then point the domain at Agent Lab. The old host keeps running until you cut over, so if something is off, point DNS back to it.
From Cloudflare
# Worker secrets list names only; values are hidden once set, so take them from where you keep them
npx wrangler secret list --name your-worker
# Download a dashboard-created Worker as a local project (with its Wrangler config)
npx wrangler init --from-dash your-worker
# Pages: list projects, and each project's secret names
npx wrangler pages project list
npx wrangler pages secret list --project-name your-site
# D1 (SQLite): export to .sql, convert to PostgreSQL syntax, then import
npx wrangler d1 export your-db --remote --output=d1-backup.sql
# The PostgreSQL behind Hyperdrive: export with its own connection string
pg_dump "$ORIGIN_DATABASE_URL" --no-owner --format=custom -f backup.dump
# Import into Agent Lab PostgreSQL (connection string in the console;
# add your IP to the database's allowlist first)
pg_restore --no-owner --no-acl -d "$AGENTLAB_DATABASE_URL" backup.dumpPages Upload the built folder (index.html at the top), or the source and let the platform build it; Pages Functions become one server (Express or Hono).Workers They don't run as they are. A Hono Worker can start with @hono/node-server and listen on $PORT (8080 by default); code using KV, D1 or Durable Objects needs rewriting, with data in PostgreSQL.Cron Triggers Becomes an Agent Lab scheduled job. A job calls a URL of your app on a clock, so the script becomes an HTTP endpoint.D1 / Hyperdrive D1 is SQLite; convert its exported SQL to PostgreSQL or MySQL before importing. Hyperdrive isn't needed: the app uses the Agent Lab database's connection string directly.wrangler.toml Not read. [vars] go in the project's variables, and secrets in the same list marked as secrets.Read https://app.agentlab.cresclab.com/agent/deploy.md. This project runs on Cloudflare today; move it to Agent Lab. First list what it uses on Cloudflare (services, database, scheduled jobs, environment variables, domains) and what each becomes on Agent Lab, deploy it to a preview URL, tell me where to enter secrets, and wait for my OK before anything goes live or DNS changes.FAQ