# A Cloudflare alternative moved over in one sentence.

> Agent Lab vs Cloudflare: free tier, always-on price, PostgreSQL and MCP compared, with official sources and the commands to migrate.

Web page: https://agentlab.cresclab.com/en/deploy/cloudflare-alternative  
繁體中文 (Markdown): https://agentlab.cresclab.com/deploy/cloudflare-alternative.md  
日本語 (Markdown): https://agentlab.cresclab.com/ja/deploy/cloudflare-alternative.md  
ไทย (Markdown): https://agentlab.cresclab.com/th/deploy/cloudflare-alternative.md

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.

[Start free](https://app.agentlab.cresclab.com/?lang=en&intent=import&from=%2Fen%2Fdeploy%2Fcloudflare-alternative) [See the comparison](https://agentlab.cresclab.com/en/deploy/cloudflare-alternative#compare)

An AI coding tool moves a project from Cloudflare to Agent Lab: it reads the build, creates the project and database, and reports a preview URL before DNS changes.

Which one fits

## Agent Lab or Cloudflare: it depends on the job

Two reasons to pick Agent Lab, and two to stay on Cloudflare.

### 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.

### Pick Agent Lab

Managed PostgreSQL or MySQL in the same workspace as the app, with no Hyperdrive or third-party database to wire up.

### Stay on Cloudflare

Users all over the world who need code answering from a nearby city, or domains, DNS and WAF already on Cloudflare.

### Stay on Cloudflare

High-volume APIs where each request is short, or projects already built on KV, D1, Durable Objects and R2.

Side by side

## Agent Lab Deploy vs Cloudflare

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.

Agent Lab Deploy compared with Cloudflare, checked 2026-11-19

|  | 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](https://agentlab.cresclab.com/en/deploy#pricing) | Workers Free: 100,000 requests a day and 10 ms of CPU per request; requests to static assets are free and unlimited [Source](https://developers.cloudflare.com/workers/platform/pricing/) |
| Cheapest always-on service | Pro US$29 a month before tax; its usage credit runs one size-S app all month [Details](https://agentlab.cresclab.com/en/deploy#pricing) | 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](https://developers.cloudflare.com/workers/platform/pricing/) |
| PostgreSQL | Managed PostgreSQL 16–18, MySQL 8.4 and 9.7, one dedicated instance per database; Free includes one S [Details](https://agentlab.cresclab.com/docs/en/deploy/mcp-tools#databases) | No first-party PostgreSQL: Hyperdrive connects to an external database, or create PlanetScale Postgres from Cloudflare at PlanetScale's prices [Source](https://developers.cloudflare.com/changelog/post/2026-06-18-planetscale-databases-cloudflare-billing/) |
| Deploy from an AI tool (MCP) | Remote MCP with browser OAuth sign-in, no API key, the same permissions as the console [Details](https://agentlab.cresclab.com/docs/en/deploy/ai-agent) | Official remote MCP (mcp.cloudflare.com) with OAuth sign-in, covering the whole Cloudflare API [Source](https://developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/) |
| 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](https://agentlab.cresclab.com/en/deploy/cli) | No account needed: wrangler deploy --temporary or Cloudflare Drop; claim within 60 minutes by signing in, or it's deleted [Source](https://developers.cloudflare.com/workers/platform/claim-deployments/) |

Migrate

## Move from Cloudflare in four steps

Cloudflare keeps serving until you change DNS.

1. ### Export settings
   Save the environment variables and secrets from Cloudflare, and note the start command, scheduled jobs and domains.
2. ### Deploy the code
   Upload, push from GitHub, or ask your AI tool through Agent Lab MCP. You get a preview URL.
3. ### Move the data
   Create PostgreSQL and connect it to the app, then pg_dump from the old database and pg_restore into the new one.
4. ### Switch the domain
   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

## What to take out of Cloudflare, and where it goes

Commands

### Export 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.dump
```

- `Pages` 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.

Prompt

### Or ask your AI tool

```
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

## Agent Lab vs Cloudflare: questions

**What is the difference between Agent Lab and Cloudflare?**

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.

**How much does Cloudflare cost?**

Workers Free: 100,000 requests a day and 10 ms of CPU per request; requests to static assets are free and unlimited. Always-on service: 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. PostgreSQL: No first-party PostgreSQL: Hyperdrive connects to an external database, or create PlanetScale Postgres from Cloudflare at PlanetScale's prices. From Cloudflare's own pages, checked on 2026-11-19.

**Can I move a Cloudflare Worker to Agent Lab as it is?**

Not as it is. A Worker uses Cloudflare's own runtime and bindings, while Agent Lab runs ordinary always-on services. Hono code usually runs once it starts with @hono/node-server; KV, D1 and Durable Objects parts need rewriting, and a static site just uploads. Agent Lab runs in one region, so code that must run at the global edge should stay on Cloudflare.

**Will my app go down while I move from Cloudflare?**

No. The app runs on a preview URL first while Cloudflare keeps serving; you change DNS only after testing, and if something is off you point DNS back to Cloudflare. [Migration guide →](https://agentlab.cresclab.com/en/deploy/migrate)

**Is there a free plan?**

Yes: 1 size-S app that sleeps after 15 idle minutes, 1 S database, 3 static sites, 100 build minutes and 5 GB of traffic a month, pausing at a limit instead of charging. Always-on apps and custom domains start on Pro at US$29 a month before tax. [Pricing →](https://agentlab.cresclab.com/en/deploy#pricing)

**Where do the numbers on this page come from?**

Cloudflare's pricing and features are read from Cloudflare's own pricing and docs pages on 2026-11-19, and every table row links the page it came from. Where Cloudflare's pages disagree or say nothing, the table says so. Agent Lab's side follows its pricing and docs. [Deploy docs →](https://agentlab.cresclab.com/docs/en/deploy/ai-agent)
