Skip to content

Build Agents Overview

Build agents are the workhorses of FlightStack. They’re self-hosted machines that execute your build pipelines, running on your own hardware.

No Build Limits

Run unlimited builds without paying per-minute charges. Your hardware, your rules.

Faster Builds

Use your powerful Mac Pro or custom build servers for blazing-fast builds.

Full Control

Your source code never leaves your network. Complete privacy and security.

Custom Setup

Install any tools, SDKs, or dependencies you need. No container limitations.

┌─────────────────┐ ┌─────────────────┐
│ FlightStack │◀───────▶│ Build Agent │
│ Server │ HTTPS │ (Your Mac) │
└─────────────────┘ └─────────────────┘
│ │
│ │
▼ ▼
┌─────────────┐ ┌─────────────┐
│ Pipeline │ │ Clones │
│ Scheduler │ │ Your Code │
└─────────────┘ └─────────────┘
  1. Agent polls for work - The agent periodically checks for queued builds
  2. Job assigned - When a matching build is found, it’s assigned to the agent
  3. Code cloned - Agent clones your repository locally
  4. Build executed - Steps are run (tests, builds, deploys)
  5. Results reported - Logs and artifacts are uploaded back to FlightStack

Each agent reports what it can build based on the installed software:

CapabilityRequirementDetects
iOSmacOS + Xcodexcodebuild -version
AndroidAndroid SDKANDROID_HOME or flutter doctor
WebFlutterAlways available

Agents report their status to FlightStack:

StateIconDescription
Online🟢Ready to accept builds
Busy🟡Currently running a build
Offline🔴Not running (no recent heartbeat)
DisabledManually disabled by admin

An agent is considered online if it has sent a heartbeat within the last 2 minutes.

Agents can be scoped to control which organizations can use them:

  • Available to all organizations you belong to
  • Good for personal use or shared infrastructure
  • Default when no organization is specified
  • Restricted to a specific organization
  • Ideal for enterprise/team environments
  • Configured during registration with --org flag
Terminal window
# Public agent (available to all your orgs)
flightstack agent register
# Private agent (only for specific org)
flightstack agent register --org <organization-id>
ResourceiOS BuildsAndroid BuildsWeb Builds
RAM8 GB4 GB2 GB
Storage50 GB free30 GB free10 GB free
CPU4 cores2 cores2 cores

For optimal performance, especially with large Flutter projects:

ResourceRecommended
RAM16 GB+
StorageSSD with 100 GB+ free
CPU8+ cores
OSLatest stable (macOS 14+, Ubuntu 22.04+)

Agents send regular heartbeats containing:

  • Status - Online, busy, etc.
  • Disk space - Available storage
  • Memory - Available RAM
  • CPU - Current utilization

If disk space falls below 10 GB, the agent will stop accepting new builds until space is freed.

Agent security features:

  • Unique tokens - Each agent has a unique authentication token
  • Encrypted communication - All traffic uses HTTPS/TLS
  • Local builds - Code is cloned locally, never uploaded
  • Token rotation - Tokens can be regenerated if compromised

You can run multiple agents for:

  • Platform coverage - Mac for iOS, Linux for Android
  • Parallel builds - Multiple simultaneous builds
  • Redundancy - Backup agents for high availability

Builds are automatically load-balanced across available agents based on:

  1. Platform capability match
  2. Organization scope
  3. Agent availability
  4. Current load

Ready to set up your first agent?