# A Heroku alternative moved over in one sentence.

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

Agent Lab vs Heroku · Compare and migrate

Heroku moved to sustaining engineering in February 2026; move a Python project to Agent Lab and its Procfile still works. Facts about Heroku 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/heroku-alternative#compare)

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

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

### Pick Agent Lab

You need more than US or EU regions.

### Pick Agent Lab

Deploy from Claude Code or Codex over a remote MCP, with no local MCP server to run.

### Stay on Heroku

Apps that lean heavily on the Heroku Add-ons marketplace.

### Stay on Heroku

Users in the US or EU, with Pipelines and Review Apps already part of your flow.

Side by side

## Agent Lab Deploy vs Heroku

Heroku'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 Heroku, checked 2026-10-18

|  | Agent Lab Deploy | Heroku |
| --- | --- | --- |
| 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 plan; Eco is US$5 a month and sleeps after 30 idle minutes [Source](https://devcenter.heroku.com/articles/eco-dyno-hours) |
| 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) | Basic US$7 a month (512 MB) [Source](https://www.heroku.com/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) | Essential-0 US$5 a month [Source](https://www.heroku.com/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) | Official MCP runs locally only and is marked early development [Source](https://devcenter.heroku.com/articles/heroku-mcp-server) |

Migrate

## Move from Heroku in four steps

Heroku keeps serving until you change DNS.

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

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

Commands

### Export from Heroku

```
# Save Heroku config vars to a file
heroku config -s -a your-app > .env.production

# Heroku Postgres: capture a backup and download it
heroku pg:backups:capture -a your-app
curl -o backup.dump "$(heroku pg:backups:url -a your-app)"

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

- `Procfile` A Python project's web: line is its start command; other languages are detected, or set the start command in build settings.
- `Buildpacks` Not needed. JavaScript, Python and Go build from source; other languages use a Dockerfile.
- `Heroku Scheduler` Becomes an Agent Lab scheduled job. A job calls a URL of your app on a clock, so the script becomes an HTTP endpoint.
- `Heroku Postgres / Redis` Use Agent Lab's managed PostgreSQL and Redis caches (Redis once enabled for the workspace); the connection is written into the app.

Prompt

### Or ask your AI tool

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

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

Heroku moved to sustaining engineering in February 2026; move a Python project to Agent Lab and its Procfile still works.

**How much does Heroku cost?**

No free plan; Eco is US$5 a month and sleeps after 30 idle minutes. Always-on service: Basic US$7 a month (512 MB). PostgreSQL: Essential-0 US$5 a month. From Heroku's own pages, checked on 2026-10-18.

**Heroku still works. Why move?**

If your users are in the US or EU and it works, you may not need to. People move when their users are outside the US and EU and need a closer region, or when Heroku's move to sustaining engineering worries them.

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

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

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