---
title: "Fly.io: deploy apps and agents on hardware-isolated VMs"
description: "Deploy apps, agents, and databases on hardware-isolated VMs. Pay only for the seconds they run. Sign up free."
---

# Fly.io: deploy apps and agents on hardware-isolated VMs

Computers for agents, from sandboxes to production. Give your agent its
own hardware-isolated Linux computer. Deploy what it builds without
changing platforms.

Fly.io is a public cloud that runs code on hardware-isolated Linux virtual
machines in 18+ regions. It has two compute products and a database:

- **Fly Machines** — hardware-virtualized containers for running your
  finished apps, APIs and background jobs. https://fly.io/machines.md
- **Sprites** — self-contained sandboxes for agents, untrusted code and
  AI-generated code, with checkpoints and per-second billing.
  https://fly.io/sprites.md
- **Managed Postgres** — production PostgreSQL with backups, failover and
  connection pooling. https://fly.io/mpg.md

Prices for all three: https://fly.io/pricing.md. Sign up: https://fly.io/app/sign-up

## Work with the agents and tools you already use

Your agent gets a Fly computer and all the plugins, SDKs and templates it
loves. Claude Code, OpenAI Codex, Cursor, OpenAI Agents SDK, Google ADK,
OpenCode, Hermes Agent, OpenClaw and Pi.
https://fly.io/sprites/ecosystem

## Built for what you're shipping

- **Web Apps**: host the web apps you and your agents build, with Postgres
  and storage.
- **APIs**: run the APIs behind your product on VMs in 18 regions, close to
  your users.
- **Coding Agent Workspaces**: give your engineering team access to Claude
  Code and Codex in the cloud.
- **Agent Fleets**: run untrusted code, evals, and RL rollouts in parallel.
  Checkpoint what works, throw away the rest.
- **Agent Products**: get a computer for every customer's agent.
  It sleeps (at zero compute cost) until you wake it on request.

## Use the tech you love

Deploy apps and agents built with your favorite framework. Ship from GitHub or our
CLI with `fly launch`. No Dockerfile? No problem: we'll generate one for
most popular frameworks, including Rails, Phoenix, Django, Node, Laravel,
Go, Rust, .NET and more.

## Keep your data close

Pick a managed database, or run your own datastore on VMs we call Fly
Machines.

- **Postgres**: backups, failover, and connection pooling. https://fly.io/mpg.md
- **Redis**: caching and queues, powered by Upstash.
  https://docs.fly.io/upstash/redis/
- **Tigris**: globally distributed, S3-compatible object storage.
  https://docs.fly.io/tigris/
- **Volumes**: your own database or persistent storage for Machines.
  https://docs.fly.io/volumes/overview/

## Trusted by teams building with agents

Teams building on Fly.io include Builder.io, Mercor, Cogram, Mocha, Context, Reflex, Beam, Imbue, Supabase, Webhound and Hercules.

> “Fly.io just worked so well for our dev and build processes. We needed something robust for stateful, persistent sessions, and Fly.io was perfect.”
> — Ben Reinhart, Mocha, https://fly.io/customer-stories/mocha/

> “Without Fly.io, we’d probably still be stuck tweaking node groups and worrying about start-up times.”
> — Nasr Mohamed, Co-founder, Steel.dev, https://fly.io/customer-stories/steel-dev/

| | |
| --- | --- |
| organizations on Fly.io | 1.6M+ |
| regions worldwide | 18 |
| of app deployments done by agents | 53% |

## Secure by design

The answers your security review will ask for (but way more than they want to know. We can't help it, we nerd out about this stuff.)
https://fly.io/security/

- **Hardware isolation, always**: every computer is its own Firecracker
  microVM. No shared kernel, and no faster mode that skips it.
- **Credentials stay out**: Connectors broker logins and API keys at the
  gateway. The agent uses them without ever holding them.
- **Egress you control**: lock any computer to an allowlist of hosts.
  Private networking between everything else by default.
- **Compliance, built in**: SOC 2 Type II. HIPAA with a pre-signed BAA. SSO
  and support SLAs for enterprise teams.

## Start from a template

- **OpenClaw**: a personal agent on its own computer.
  https://fly.io/sprites/openclaw
- **Hermes Agent**: Nous Research's agent, on a computer that keeps its disk.
  https://docs.fly.io/blueprints/hermes-agent-on-fly-io/

## Comparing your options?

There are four things an agent's computer needs to do. Here's how every
platform measures up. https://fly.io/computers-compared/

## Get started

Give an agent a computer:

```
curl https://sprites.dev/install.sh | bash
sprite login
sprite create my-sprite
sprite exec -s my-sprite -- ls -la
```

Deploy an app:

```
curl -L https://fly.io/install.sh | sh
fly launch
```

Every new user gets a $1 free trial, no credit card required, and invoices
under $5 are waived. Sign up at
https://fly.io/app/sign-up; the launch guide is at
https://docs.fly.io/getting-started/launch

## More

- Sprites: https://fly.io/sprites.md · docs https://docs.sprites.dev/ · API https://sprites.dev/api
- Machines: https://fly.io/machines.md · docs https://docs.fly.io/machines · API https://docs.fly.io/machines/api
- Managed Postgres: https://fly.io/mpg.md · docs https://docs.fly.io/postgres
- Pricing, every region and plan: https://fly.io/pricing.md
- Setting an agent up on Fly.io, Machines or Sprites: https://fly.io/agent-ready.md
- Setting up an agent-ready environment on a Sprite: https://fly.io/sprites/agent-ready.md
- Authenticating — flyctl, access tokens, the MCP servers: https://fly.io/auth.md
- Reporting a bug, a docs mismatch or a missing feature: POST https://api.fly.io/api/v1/feedback, guide at https://fly.io/agent-ready.md#send-feedback
- Documentation index: https://fly.io/llms.txt
- Status https://status.flyio.net/ · Community https://community.fly.io/ · Support https://docs.fly.io/about/support
