# A Fly.io alternative moved over in one sentence.

> Agent Lab vs Fly.io: 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/fly-alternative  
繁體中文 (Markdown): https://agentlab.cresclab.com/deploy/fly-alternative.md

Agent Lab vs Fly.io · Compare and migrate

Fly.io gives you machines in many regions and full control, but new organizations get no free tier; Agent Lab has a free plan and a preview URL for every version. Facts about Fly.io come from its own pages, checked on 2026-10-18, with a source on every row.

[Start free](https://app.agentlab.cresclab.com/?lang=en&intent=import) [See the comparison](https://agentlab.cresclab.com/en/deploy/fly-alternative#compare)

An AI coding tool moves a project from Fly.io 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 Fly.io: it depends on the job

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

### Pick Agent Lab

A free plan to start on instead of a 7-day trial.

### Pick Agent Lab

No machines to manage: versions, preview URLs and pre-launch checks are the platform's job.

### Stay on Fly.io

You need machines in many regions worldwide, or persistent volumes.

### Stay on Fly.io

You want full control of machines and networking, or the smallest US machines for the lowest cost.

Side by side

## Agent Lab Deploy vs Fly.io

Fly.io's side is from its official pricing and docs pages on 2026-10-18; prices change, so follow the source link before you decide.

Agent Lab Deploy compared with Fly.io, checked 2026-10-18

|  | Agent Lab Deploy | Fly.io |
| --- | --- | --- |
| 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) | No free tier for new organizations; a trial of 2 machine-hours or 7 days [Source](https://docs.fly.io/about/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) | shared-cpu-1x 256 MB about US$2.19 per 30 days (US East; Asia costs more) [Source](https://docs.fly.io/about/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) | Managed Postgres Basic from US$38 a month [Source](https://docs.fly.io/about/pricing) |
| 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) | fly mcp server, run locally and marked experimental [Source](https://docs.fly.io/flyctl/mcp-server) |

Migrate

## Move from Fly.io in four steps

Fly.io keeps serving until you change DNS.

1. ### Export settings
   Save the environment variables and secrets from Fly.io, 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 Fly.io

## What to take out of Fly.io, and where it goes

Commands

### Export from Fly.io

```
# Fly secrets list names only; take the values from where you keep them
fly secrets list -a your-app

# A Fly Postgres app: forward the database to your machine, then export
fly proxy 15432:5432 -a your-db-app
pg_dump "postgres://USER:PASSWORD@localhost:15432/DB" --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
```

- `fly.toml` Not read. Instead of internal_port, have the app listen on $PORT (8080 by default).
- `Dockerfile` Keep it; the image must run on linux/amd64, as non-root, with a read-only filesystem apart from /tmp.
- `Volumes` No persistent volumes. Keep data in PostgreSQL and files in object storage.
- `Multiple regions` Agent Lab runs in one region; services that need many regions should stay on Fly.

Prompt

### Or ask your AI tool

```
Read https://app.agentlab.cresclab.com/agent/deploy.md. This project runs on Fly.io today; move it to Agent Lab. First list what it uses on Fly.io (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 Fly.io: questions

**What is the difference between Agent Lab and Fly.io?**

Fly.io gives you machines in many regions and full control, but new organizations get no free tier; Agent Lab has a free plan and a preview URL for every version.

**How much does Fly.io cost?**

No free tier for new organizations; a trial of 2 machine-hours or 7 days. Always-on service: shared-cpu-1x 256 MB about US$2.19 per 30 days (US East; Asia costs more). PostgreSQL: Managed Postgres Basic from US$38 a month. From Fly.io's own pages, checked on 2026-10-18.

**Fly won't show secret values. How do I move them?**

fly secrets list shows names only. Take the values from where you keep them (a password manager, a .env file, each provider's dashboard) and add them to the project's Secrets on Agent Lab, or rotate them while you're at it.

**Will my app go down while I move from Fly.io?**

No. The app runs on a preview URL first while Fly.io keeps serving; you change DNS only after testing, and if something is off you point DNS back to Fly.io. [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?**

Fly.io's pricing and features are read from Fly.io's own pricing and docs pages on 2026-10-18, and every table row links the page it came from. Where Fly.io'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)
