Loading…
Topic
Fly.io
53 posts about Fly.io. Every summary links to the original.
- 53 posts
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Holding the Door for Agents
Agent use is surging, with 55% of Fly.io deployments now performed by agents and Cursor’s agent users outnumbering autocomplete users 2:1. Fly.io is adapting by making its platform agent-friendly, starting with support for auth.md, an open spec that lets agents sign up without human UI interaction. Agents can also pay for resources via account top-up over the Machine Payments Protocol or through a Link connector that issues single-use virtual cards. A unified MCP server gives agents access to apps, Machines, volumes, secrets, and Managed Postgres, while the entire documentation is optimized for agent consumption. The company sees this as enabling both non-technical users and experienced engineers to build with greater autonomy.
Petsem: Sometimes Dead Is Better
Fly.io replaced HashiCorp Vault with a custom secrets manager called Petsem to address performance and reliability issues at scale. Vault’s Raft-based cluster required low-latency connections, causing a p99 of 10 seconds for app secrets reads during boot and a hard dependency on the IAD region. Petsem uses a write master in IAD with read replicas across regions, dropping p99 from 10 seconds to 300ms. It enforces scoped access via macaroons: a worker must present its credential and a third-party discharge token verifying it hosts that app. Petsem also supports Fly KMS for encrypt, decrypt, sign, and verify operations that never expose the secret to the app.
Throwing Out The Phonebook
Fly.io rebuilt 6PN, the private network between Fly Machines, by replacing a per-host eBPF phonebook of hundreds of thousands of migrated-Machine entries with a lazy-lookup design. The old system required every host to hold a real-time copy of every Machine’s location, leading to synchronization failures and undebuggable address translation. The new design uses VXLAN on top of WireGuard: when a host encounters an unknown 6PN address, VXLAN emits a netlink event, and s6pnforwarderd queries local Corrosion SQLite to write a single route. The routing table now holds 100–200 entries per host instead of hundreds of thousands. The first packet to a new destination incurs a lookup delay of under 100ms, but subsequent packets use the cached route. The rollout ran both systems in parallel, with asymmetric routing, until every host was upgraded.
Run Claude Code From Your Phone With Sprites
Sprites are on-demand, hardware-isolated Linux computers that start in under a second, persist code, packages, and state between sessions, and let you checkpoint the entire environment at any time. The sprite-mobile tool provides a chat UI for issuing commands to Claude Code in YOLO mode from a phone over Tailscale, enabling unrestricted and aggressive experimentation. Setup requires one command to create a Sprite and a one-line script that configures Claude CLI, GitHub CLI, Fly.io CLI, Sprites CLI, and Tailscale, sets up HTTPS via Tailscale Serve, and starts Tailnet Gate for waking suspended Sprites. After setup, obtain the public URL with sprite url update –auth public -s cheese_sandwich and open it in a Tailscale-connected phone’s browser. Sprites automatically sleep after 30 seconds of inactivity, wake in under a second, and incur no charges when idle.
Make Computers Make Computers
Sprites are isolated virtual computers that can create and manage other Sprites via an API, and Claude can use that API when authorized by a token from sprites.dev/account. This enables automated workflows like central OAuth token management, where an Auth Sprite handles token refresh and storage for other Sprites. For CI, an orchestrator Sprite spins up a worker for each test file, locks its network to only pypi and github, runs the test, collects results, and destroys the worker. Preview environments are created per pull request, with each PR getting its own Sprite that is redeployed on updates and destroyed on merge. Additional use cases include agent delegation with network-policy-locked workers, running untrusted code in a deny-all network Sprite, and team provisioning via a provisioner Sprite that creates and configures new Sprites with checkpoints enabling fast restoration.
I Build Everything In Sprites Now
The author recounts the chaos of local development across multiple projects, where version managers (asdf, nvm), separate databases (Postgres, MySQL), and conflicting environment variables cause constant friction. To solve this, they use Sprites, a Fly.io product that provides each project its own persistent, hardware-isolated Linux computer with 100 GB storage, incurring cost only when active. Each Sprite has dedicated versions, services, env vars, and ports, waking from sleep in seconds and avoiding all collisions. Sprites expose real public URLs with automatic TLS, eliminating the need for ngrok or tunneling for OAuth callbacks and webhooks. The author also values checkpoint snapshots for safe experimentation and the ability to maintain specialist coding agents per project, each with its own claude.md and skills, without context pollution.
Well, That Wasn't Fun: October 16 '26
Fly.io responded to CVE-2026-99999, a Linux kernel bug in IPv4 checksum-offload metadata validation, by patching and rebooting its entire fleet over 10 hours on October 16, 2026. The bug allowed a guest to rewrite two bytes of an IPv4 header after the host applied routing and firewall rules, enabling firewall bypass and an out-of-bounds read of up to 32 bytes of host memory. The team split each region into waves so no Managed Postgres cluster had both nodes rebooted simultaneously, with the largest region requiring 17 waves. Some hosts failed to return cleanly, including a chassis in gru that lost its power supply, delaying recovery for those machines until October 20. The post-mortem led to a new Incident Communications Plan that shifts communication decisions from incident responders to the exec team.
Feng Shui for Robots: The Fly MCP Server
In October 2023 AI agents created 0.1% of databases on Neon; by October 2025 they created 80%, and at Fly.io agents have overtaken humans as the most common customer species. Fly.io built mcp.fly.io, an MCP server that connects agents to Sprites for sandboxed development and to Fly Machines for production, providing a path from prototype to scalable deployment. Sprites are real Linux machines with persistent disk, service management, HTTPS URLs, and filesystem checkpoints that allow agents to install packages, run servers, and roll back after failures, and they sleep when idle. When a project needs always-on availability, the agent can migrate it from a Sprite to a Fly Machine using the same MCP server, creating the Machine, volume, and secrets in the same conversation. The MCP server is authorized per app and organization with no API token, and Fly.io is investigating adding MPG skills for database management.
Shared Nothing Architecture
Shared-nothing architecture is presented as a scaling model for Showcase, a Ruby on Rails ballroom-competition application that began on a Mac Mini and grew to cloud VMs serving events in multiple regions. Because each event has few geographically concentrated users, a roughly one-megabyte SQLite database, about one transaction per second, and typical response times of 100ms or less, the design keeps state separate rather than sharing databases and Redis across events. The implementation runs an event’s services on one Fly.io VM, repeats that unit across machines or regions, and can place multiple event instances on one server with Phusion Passenger, NGINX, volumes, and a shared Action Cable process. It specifies 1GB machines with 2G swap after observing about 220MB idle and 450MB active RAM, and recommends WireGuard; the conclusion is that local state and fewer network calls suit this workload and can improve throughput and reliability.
Launching MCP Servers on Fly.io
The post presents Fly.io’s approach to simplifying remote deployment of Model Context Protocol (MCP) servers, which otherwise require client-specific JSON configuration, local processes or HTTP hosting, and potentially cumbersome OAuth 2.1 setup. It uses the Slack MCP Server as a demonstration, converting its npx command into a fly mcp launch invocation with --claude, --server, and secret flags for the bot token and team ID. Running this requires flyctl v0.3.125 or later, and the command supports Fly.io options including auto-stop, file contents, flycast, regions, volumes, secrets, and VM sizes. Built-in configuration support covers Claude, Cursor, Neovim, VS Code, Windsurf, and Zed, with bearer-token authentication enabled by default on both server and client. The broader beta support includes multiple transports, Machines API deployment, separate Machines or containers, in-application deployment, and HTTP Authorization, WireGuard tunnels, flycast, or reverse proxies.
Provisioning Machines using MCPs
Fly.io’s flyctl MCP server lets LLMs such as Claude or Cursor use tools to inspect and modify application resources, demonstrated by creating a volume and adding support for all volume commands. The author describes asking Claude to identify unattached volumes and delete the oldest, while noting that flyctl’s mounted-volume safeguards provided an error if destruction was unsafe. Compared with writing against the Machines API, using flyctl directly, or navigating the dashboard, the conversational workflow surfaced an observation and turned it into an action with less manual effort. The post outlines a future in which an LLM proposes deployment plans, examines build errors and logs, and acts through MCP servers on Fly.io’s private network. Users can try the current open-source server with fly version upgrade to v0.3.117, configure an LLM, or run the MCP Inspector; apps, logs, machines, orgs, platform status, and volumes are roughed in.
30 Minutes With MCP and flyctl
Kurt Mackey describes building a minimal MCP server for flyctl in 30 minutes, motivated by testing how an LLM could inspect deployed applications. MCP connects an LLM client to server-exported tools through JSON exchanges; this implementation uses stdio mode, a Go MCP library, and exposes only fly logs and fly status, producing roughly 90 lines of code. Existing JSON modes in flyctl commands made the tools easier to drive from automation. When pointed at unpkg through Claude, the server surfaced a globally distributed deployment, identified two critical machines, and connected repeated restarts and oom_killed events to Bun using about 3.7 GB of a machine’s 4 GB allocation. The post calls the result surprisingly useful while warning that local MCP servers give cloud-hosted Claude access to native programs and would be safer in isolation.
We're Cutting L40S Prices In Half
Fly.io lowered the hourly price of NVIDIA L40S GPUs to $1.25, making them available at the same price as A10s after customer data showed that A10s—not the more powerful cards—were its most popular GPU. The post argues that most users adding GPUs to fast networks are running inference rather than training, making networking, memory, object storage, and request latency more important than access to an H100. The L40S is described as an AI-optimized L40 with AI compute performance comparable to an A100, while the L40 retains graphics hardware and is designed for rack use with more memory and lower energy consumption than gaming GPUs. The intended combination places model parameters, datasets, and compute near one another on Fly.io’s Anycast network and Tigris object storage. Examples include Llama 3.1 70B, Flux, Whisper, SegAlign, and DOOM Eternal.
Scaling Large Language Models to zero with Ollama
Running GPU nodes for language-model inference can be costly because they often sit idle between requests, so this guide configures Ollama on a Fly.io Machine that scales to zero when idle. Ollama is described as a wrapper around llama.cpp, enabling self-hosted models with GPU acceleration, while about 70 lines of Go add authentication to protect the endpoint from unauthorized use. Deployment uses an A100-40GB GPU, a private Flycast address, automatic start and stop settings, and a 100GB persistent volume mounted at /root/.ollama so downloaded models survive stopped Machines. A stopped Machine no longer incurs GPU charges, but scaling to zero suspends it on the same host and may fail to wake during capacity issues. The setup supports CLI and API requests, WireGuard access, custom Modelfiles, and JSON-mode function-calling workflows.
Rethinking Serverless with FLAME
Rethinking Serverless with FLAME presents a pattern for running selected application functions on short-lived copies of the full app instead of moving code into bespoke FaaS services. FLAME, short for Fleeting Lambda Application for Modular Execution, uses FLAME.call to send a function and closed-over values to a runner pool, while retaining access to the application’s database connections and other code. The Elixir flame library includes LocalBackend and FlyBackend adapters, and Fly.io can boot a same-image Machine in the parent’s region in about three seconds. Runners may stay warm, scale to zero, or grow elastically based on configuration. The post also describes process-based streaming with LiveView and supervision and monitoring mechanisms for transient runners.
How I Fly
This article describes how Xe Iaso uses Fly.io to host a blog, CDN, and experimental personal projects while deploying services near users. The blog backend runs in Toronto, while XeDN runs in 35 datacenters, fetches missing files from Backblaze B2, and uses caching and traffic shifting to tolerate individual node failures. Arsène runs every 12 hours, asking the ChatGPT API for posts, using Stable Diffusion for illustrations through an Automatic1111 API on a private network, then sending images to XeDN for global delivery. The setup emphasizes reusable, interoperable building blocks rather than isolated projects, with Fly.io handling deployment, networking, and scaling concerns. Xe reports that three 256 MB Machines ran XeDN for a year, while Arsène still runs on one, and says applications can scale to zero when idle.
Automated Sentry Error Tracking
Fly.io announces Sentry as the default error-monitoring tool for its applications, with new deployments receiving an automatically provisioned Sentry project and existing apps using flyctl ext sentry create. Each organization receives one year of monthly Team Plan credits covering 50,000 error events, 100,000 performance units, 500 session replays, and 1GB of attachment storage. For Rails apps, flyctl launch installs the required gems, creates initializers, and sets the SENTRY_DSN secret, allowing boot failures, memory exhaustion, exceptions, latency issues, and crashes to reach Sentry. The post demonstrates a deliberately raised Ruby exception, then uses flyctl apps errors to open the Sentry issue dashboard and identify the bug; planned extensions include release tracking and out-of-memory events.
Fly.io ❤️ Bun
Fly.io is preparing support for Bun as Bun 1.0 approaches, expanding beyond its ongoing Node.js work because Bun aims for complete Node.js API compatibility. With flyctl 0.1.54 and @flydotio/dockerfile 0.3.3, users can launch and deploy Bun applications through fly launch and fly deploy if Bun 0.5.3 or later is installed and package.json includes an eligible start, module/type, or main configuration. The post says applications following Bun’s Quickstart and Fly’s hands-on walkthrough can be deployed, and provides a sample. Support is beta, with noted compatibility issues including bun install lacking --prune, unsupported throwIfNoEntry in fs.statSync, and readline-based programs failing to exit; shared Dockerfile generation means fixes for either runtime generally benefit both.
Deploying LangChain to Fly.io
Deploying a minimal LangChain application to Fly.io, using Flask, requires a small Python project that accepts a place and asks an OpenAI-backed model for three places to eat there. The example uses LangChain’s OpenAI wrapper, PromptTemplate, temperature 0.9, and a default Berlin value, while Flask routes requests at / or / and renders the model’s split response in HTML. Local setup includes a virtual environment, pinned Flask, gunicorn, langchain, openai, and python-dotenv dependencies, with OPENAI_API_KEY stored in a local .env file; production uses gunicorn rather than Flask’s development server. Fly launch configures the app name, organization, and deployment region, and fly deploy builds and publishes an image before provisioning machines. The article concludes that more complex, user-dependent requests require LangChain agents and tools, such as Google Places API, because language models lack real-time data and internet browsing.
Fly.io ❤️ JS
Fly.io proposes a general-purpose way to deploy JavaScript and Node.js applications despite the ecosystem’s many frameworks, package managers, runtimes, and TypeScript conventions. Its dockerfile-node project uses package.json, lockfiles, and dependency metadata to generate a baseline Dockerfile, .dockerignore, and optionally a docker-entrypoint script; users can invoke it with npx @flydotio/dockerfile. Conditional EJS templates accommodate framework-specific requirements, with initial templates for Express, Fastify, Gatsby, Nest, Next, Nuxt, and Remix, though current support may extend only to a splash screen. Future plans include replacing Fly.io’s existing flyctl scanners, integrating deployment-time secrets, volumes, databases, and health checks, and adding customization such as build caching, swap, Docker Compose generation, browser setup, and non-root execution.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.