fly-io

Fly.io edge platform with global distribution. Use for edge deployment.

7 stars

Best use case

fly-io is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Fly.io edge platform with global distribution. Use for edge deployment.

Teams using fly-io should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/fly-io/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/devops/fly-io/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/fly-io/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How fly-io Compares

Feature / Agentfly-ioStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Fly.io edge platform with global distribution. Use for edge deployment.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Fly.io

Fly.io transforms containers into Firecracker MicroVMs running on bare metal across the globe. It is essentially a "CDN for your backend".

## When to Use

- **Global/Edge**: You want your Node.js server running in Tokyo, London, and New York simultaneously.
- **Postgres**: Run a Postgres read-replica cluster globally with ease.
- **Docker**: You have a Dockerfile and want it running in 5 seconds.

## Quick Start

```bash
fly launch
# Scans source code, creates Dockerfile, creates fly.toml

fly deploy
```

```toml
# fly.toml
app = "my-app"
primary_region = "iad"

[http_service]
  internal_port = 8080
  force_https = true
```

## Core Concepts

### Machines

Fly v2 runs on "Machines" (fast-booting VMs). They can wake-on-request (scale to zero).

### Regions

Choose from 30+ regions. `primary_region` for Writes, others for Reads.

### Fly Proxy

Magic routing layer. Routes `your-app.fly.dev` to the nearest healthy machine. Also handles internal DNS (`app-name.internal`).

## Best Practices (2025)

**Do**:

- **Use Machines API**: For programmatic control (e.g., spinning up on-demand workers).
- **Use Tigris**: S3-compatible object storage integrated with Fly (since Fly has no native S3).
- **Scale to Zero**: Save money on dev environments by allowing machines to sleep.

**Don't**:

- **Don't assume persistent IP**: Machines move. Use the strict internal DNS `[app].internal`.

## References

- [Fly.io Documentation](https://fly.io/docs/)