Cost Estimation for Fly.io

Analyze your fly.toml files and estimate monthly costs for compute, storage, bandwidth, and IP addresses

🚀
Like Infracost
But for Fly.io
💯
Open Source

Why flycost?

Get accurate cost estimates before deploying to Fly.io

📊

Comprehensive Analysis

Analyzes compute, storage, bandwidth, and IP address costs from your fly.toml configuration

Fast & Lightweight

Single binary with no dependencies. Scan multiple projects in seconds

🔧

CI/CD Ready

Perfect for GitHub Actions, GitLab CI, and other automation pipelines

📋

Multiple Formats

Output as human-readable tables or machine-parseable JSON

🎯

Accurate Pricing

Based on official Fly.io pricing with regular updates

⚙️

Configurable

Customize assumptions for bandwidth usage, volumes, and IP addresses

Quick Start

Get flycost running in under a minute

🍎 macOS / 🐧 Linux

One-line installer (recommended)

# Review script first (optional but recommended): # curl -sSLf https://github.com/gordonmurray/flycost/releases/latest/download/install.sh curl -sSLf https://github.com/gordonmurray/flycost/releases/latest/download/install.sh | bash

📦 Manual Download

Download and install manually

OS=$(uname -s | tr '[:upper:]' '[:lower:]') ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/') wget "https://github.com/gordonmurray/flycost/releases/latest/download/flycost_${OS}_${ARCH}.tar.gz" tar -xzf flycost_*.tar.gz sudo mv flycost /usr/local/bin/

🛠️ Build from Source

For Go developers

git clone https://github.com/gordonmurray/flycost.git cd flycost go build -o flycost ./cmd/flycost

🚀 Basic Usage

Start analyzing costs

# Scan current directory flycost # Scan specific directory flycost -root ./my-apps # Output as JSON flycost -format json

Example Output

See what flycost shows for different application types

Kind        Monthly  App               Note                     File
----------- -------  ----------------- ------------------------ ---------------------
compute     $  1.94  user-service      shared-cpu-1x 1024MB     express-microservice.toml
volume      $  1.50  user-service      10 GB (assumed)          express-microservice.toml
bandwidth   $  2.00  user-service      lhr 100 GB               express-microservice.toml
ip          $  2.00  user-service      1 IPv4 (assumed)         express-microservice.toml
compute     $ 82.12  ml-inference-api  performance-1x 16384MB   ml-worker.toml
volume      $  1.50  ml-inference-api  10 GB (assumed)          ml-worker.toml
bandwidth   $  2.00  ml-inference-api  iad 100 GB               ml-worker.toml
ip          $  2.00  ml-inference-api  1 IPv4 (assumed)         ml-worker.toml
compute     $  3.88  my-rails-api      shared-cpu-2x 2048MB     rails-api.toml
compute     $  1.94  my-rails-api      shared-cpu-1x 1024MB     rails-api.toml
volume      $  1.50  my-rails-api      10 GB (assumed)          rails-api.toml
bandwidth   $  2.00  my-rails-api      cdg 100 GB               rails-api.toml
ip          $  2.00  my-rails-api      1 IPv4 (assumed)         rails-api.toml
compute     $  1.94  my-react-app      shared-cpu-1x 256MB      react-spa.toml
bandwidth   $  2.00  my-react-app      iad 100 GB               react-spa.toml
ip          $  2.00  my-react-app      1 IPv4 (assumed)         react-spa.toml

TOTAL: $112.32 / mo

Sample Applications

React SPA
Static app with CDN
$5.94/month
Express API
Node.js microservice
$7.44/month
Rails API
Multi-instance with volumes
$13.32/month
ML Worker
High-performance inference
$87.62/month