# Buildkite Agent Documentation > Buildkite documentation for the Buildkite agent, covering self-hosted and Buildkite hosted agents, installation, configuration, CLI reference, queues, hooks, and lifecycle. ## Pipelines ### Agent - [Overview](https://buildkite.com/docs/agent.md): Overview of the Buildkite agent, comparing self-hosted and Buildkite hosted agents, architecture, lifecycle, and CLI usage. - [Version support policy](https://buildkite.com/docs/agent/version-support-policy.md): Buildkite agent version support policy, effective January 1, 2027: each minor release line is supported for one year from its first stable release, deprecated for the final three months, then unsupported. Covers which release lines are affected when the policy takes effect, the end of agent v3 support, checking agent versions, upgrade paths by installation method, what support includes, and lifecycle warnings. - [v3 to v4 upgrade guide](https://buildkite.com/docs/agent/v3-v4-upgrade-guide.md) - [Reference architectures](https://buildkite.com/docs/agent/reference-architectures.md): Compares Starter, Growth, Scale, and Enterprise reference architecture patterns for Buildkite agent infrastructure, including where Buildkite hosted agents fit, choosing ephemeral or persistent agents, compute, queues, caching, Git mirrors, isolation, scaling signals, cost, and operational trade-offs. #### Self-hosted agents - [Overview](https://buildkite.com/docs/agent/self-hosted.md): Running agents on your own infrastructure, covering installation, configuration, starting agents, and experimental features. - [Agent tokens](https://buildkite.com/docs/agent/self-hosted/tokens.md): Creating, managing, scoping, and revoking agent tokens used by self-hosted agents and stack controllers, plus internal session and job tokens. - [Scoped agent tokens](https://buildkite.com/docs/agent/self-hosted/scoped-agent-tokens.md): Restricting agent-token permissions and queue access, separating trusted pipeline uploaders from other jobs, and understanding Kubernetes inheritance, propagation, and security limits. - [Job acquisition tokens](https://buildkite.com/docs/agent/self-hosted/job-acquisition-tokens.md): Using short-lived job acquisition tokens to register stack-managed ephemeral agents for one reserved job without exposing long-lived agent tokens to job workloads. - [Code access](https://buildkite.com/docs/agent/self-hosted/code-access.md): Configuring SSH keys on self-hosted agents to clone private Git repositories, including GitHub-specific setup. ##### Run on Kubernetes - [Overview](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s.md): Architecture and prerequisites for the Agent Stack for Kubernetes controller that runs Buildkite jobs as Kubernetes pods. - [Installation](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/installation.md): Installing the Agent Stack for Kubernetes controller using Helm, including chart configuration and namespace setup. - [Git credentials](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/git-credentials.md): Configuring SSH keys and HTTPS git-credentials for cloning private repositories in Kubernetes agent pods. - [Default parameters](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/default-parameters.md): Adding environment variables using envFrom to default checkout, command, and sidecar containers in agent-stack-k8s. - [Controller configuration](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/controller-configuration.md): Reference for agent-stack-k8s controller CLI flags, commands, and configuration options. - [Agent configuration](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/agent-configuration.md): Setting Buildkite agent configuration options (shell, hooks, experiments, security flags) within agent-stack-k8s values.yaml. - [Running builds](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/running-builds.md): Defining pipeline steps that target Kubernetes queues, using the kubernetes plugin for container and checkout configuration. - [Long-running jobs](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/long-running-jobs.md): Configuring job timeout duration (activeDeadlineSeconds) globally or per-step in agent-stack-k8s. - [Git settings](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/git-settings.md): Overriding git clone, fetch, and clean flags on a per-step basis in agent-stack-k8s pipelines. - [Pipeline signing](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/pipeline-signing.md): Setting up JWKS key pairs as Kubernetes secrets to enable signed pipeline verification in agent-stack-k8s. - [Agent hooks and plugins](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/agent-hooks-and-plugins.md): Configuring agent hooks using ConfigMaps and using Buildkite plugins within agent-stack-k8s controller. - [Pipeline validation](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/pipeline-validation.md): Validating agent-stack-k8s pipeline and plugin configurations using JSON Schema linting. - [Job metadata](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/job-metadata.md): Adding default Kubernetes labels and annotations to jobs created by the agent-stack-k8s controller. - [Sidecars](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/sidecars.md): Running sidecar containers alongside job command containers in agent-stack-k8s pipelines. - [Kubernetes PodSpec](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/podspec.md): How agent-stack-k8s generates Kubernetes PodSpecs from controller config, pipeline definitions, and podSpecPatch. - [Custom images](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/custom-images.md): Specifying custom container images for command and checkout containers in agent-stack-k8s, including image requirements. - [Pod templates](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/pod-template.md): Using Kubernetes PodTemplate resources as reusable pod specs for agent-stack-k8s pipeline steps. - [Container resource limits](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/container-resource-limits.md): Setting CPU and memory requests/limits for containers using resource classes or PodSpec patches in agent-stack-k8s. - [Volume mounts](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/volume-mounts.md): Attaching extra volume mounts to agent-stack-k8s pod containers for sharing data between containers. - [Command override](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/overriding-commands.md): Rules and limitations for overriding container commands using PodSpecPatch in agent-stack-k8s. - [Securing the stack](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/securing-the-stack.md): Using prohibit-kubernetes-plugin to prevent pipeline-level PodSpec overrides in agent-stack-k8s. - [Prometheus metrics](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/prometheus-metrics.md): Exposing and scraping Prometheus metrics from the agent-stack-k8s controller, with available metric descriptions. ###### Build container images - [Buildah](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/buildah-container-builds.md): Building OCI container images with Buildah in agent-stack-k8s, covering privileged and rootless configurations. - [BuildKit](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/buildkit-container-builds.md): Building container images with BuildKit in agent-stack-k8s, covering privileged, rootless, and strict modes. - [Docker Compose](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/docker-compose-container-builds.md): Running Docker Compose plugin builds in agent-stack-k8s with Docker socket mounting or Docker-in-Docker. - [Docker-in-Docker (DinD)](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/dind-container-builds.md): Running Docker-in-Docker as a sidecar container for standard Docker builds in agent-stack-k8s. - [Kaniko](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/kaniko-container-builds.md): Building container images with Kaniko in agent-stack-k8s without a Docker daemon, pushing to various registries. - [Namespace remote builders](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/namespace-container-builds.md): Using Namespace remote Docker builders to offload container builds from agent-stack-k8s pods. - [Depot remote builders](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/depot-agent-kubernetes-container-builds.md): Using Depot remote builders for container builds on agent-stack-k8s, with authentication and caching setup. - [Troubleshooting](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/troubleshooting.md): Debugging agent-stack-k8s issues using debug mode and Kubernetes log collection, plus fixes for an unhealthy controller pod (Pending, ContainerCreating, taints, insufficient capacity), missing Kubernetes Jobs for Buildkite jobs, queue or cluster mismatch, max-in-flight limits, duplicate stack IDs across controllers, container start timeouts, and exit code propagation for retries. ###### Migrate from Elastic CI Stack for AWS - [Amazon ECR authentication](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/migrate-from-elastic-ci-stack-for-aws/ecr.md): Migrating Amazon ECR authentication from Elastic CI Stack for AWS to agent-stack-k8s using the ecr plugin. - [Docker registry authentication](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/migrate-from-elastic-ci-stack-for-aws/docker-login.md): Migrating Docker registry authentication from Elastic CI Stack for AWS to agent-stack-k8s using docker-login plugin. - [Pre-installed packages](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/migrate-from-elastic-ci-stack-for-aws/packages.md): Handling missing pre-installed packages when migrating from Elastic CI Stack for AWS AMIs to agent-stack-k8s containers. - [Hook execution differences](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/migrate-from-elastic-ci-stack-for-aws/hook-execution-differences.md): How agent hooks execute differently in agent-stack-k8s (separate containers) versus Elastic CI Stack for AWS (single process). - [Secrets](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/migrate-from-elastic-ci-stack-for-aws/secrets.md): Migrating secrets from S3 buckets to Kubernetes Secrets or Buildkite secrets when moving to agent-stack-k8s. - [Docker daemon access](https://buildkite.com/docs/agent/self-hosted/agent-stack-k8s/migrate-from-elastic-ci-stack-for-aws/docker-daemon.md): Configuring Docker daemon access in agent-stack-k8s using sidecar containers or DaemonSets when migrating from AWS. ##### Run on AWS - [Overview](https://buildkite.com/docs/agent/self-hosted/aws.md): Options for running Buildkite agents on AWS: Elastic CI Stack, Agent Stack for Kubernetes, or self-managed EC2 instances. ###### Architectural considerations - [VPC design](https://buildkite.com/docs/agent/self-hosted/aws/architecture/vpc.md): VPC network design options (public, private, split subnets) for Elastic CI Stack for AWS deployments. - [Securing your setup](https://buildkite.com/docs/agent/self-hosted/aws/architecture/securing-your-setup.md): Preventing builds from accessing EC2 metadata and restricting IAM permissions in AWS agent deployments. - [Recommendations](https://buildkite.com/docs/agent/self-hosted/aws/architecture/recommendations.md): Guidance on sizing agent pools and balancing performance, cost, and availability for AWS CI/CD infrastructure. ###### Elastic CI Stack - [Overview](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack.md): Overview of the Elastic CI Stack for AWS: an autoscaling agent cluster with Docker, S3, and CloudWatch integration. - [Architecture](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/architecture.md): Internal architecture of the Elastic CI Stack for AWS: ASG, launch templates, AMI software stack, and autoscaling. ###### EC2 Linux and Windows - [Setup with AWS CloudFormation](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/setup.md): Step-by-step CloudFormation setup for the Elastic CI Stack for AWS on Linux and Windows EC2 instances. - [Setup with Terraform](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/terraform.md): Deploying the Elastic CI Stack for AWS using the Terraform module instead of CloudFormation. - [Security](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/security.md): Security configuration for Elastic CI Stack for AWS: S3 secrets, VPC settings, IAM permissions, and CloudFormation. - [Managing the Stack](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/managing-elastic-ci-stack.md): Managing Elastic CI Stack for AWS: Docker registries, ECR, custom hooks, bootstrap scripts, and autoscaling. Upgrading and rolling back stacks using the AWS Console, update-stack, and deploy, including exporting current parameters, change set previews, and the template size limit. Handling renamed and removed parameters when upgrading from v5 to v6, the ScalerEventScheduleRate to ScalerEventSchedulePeriod rename, and BuildkiteAgentScalerVersion, plus troubleshooting stack update errors. - [Upgrading from v6 to v7](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/v6-v7-upgrade-guide.md): Upgrading Elastic CI Stack for AWS from v6 to v7 with Buildkite agent v4, including parameter migration, cancellation timing, Datadog tracing, and agent environment configuration. - [Configuration parameters](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/configuration-parameters.md): Complete reference of all CloudFormation and Terraform configuration parameters for Elastic CI Stack for AWS. - [Creating custom AMIs](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/creating-custom-amis.md): Building custom AMIs for Elastic CI Stack for AWS using Packer templates and the ImageId parameter. - [Git mirror seeding](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/git-mirror-seeding.md) ###### Build container images - [BuildKit](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/buildkit-container-builds.md): Building container images with BuildKit/Buildx on Elastic CI Stack for AWS, including caching and multi-platform builds. - [Remote BuildKit on EC2](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/remote-buildkit-ec2.md): Setting up a dedicated EC2 instance as a remote BuildKit builder for Elastic CI Stack for AWS agents. - [Docker Compose](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/docker-compose-container-builds.md): Running Docker Compose plugin builds on Elastic CI Stack for AWS with caching, multi-arch, and registry push. - [Kaniko](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/kaniko-container-builds.md): Building container images with Kaniko on Elastic CI Stack for AWS without a Docker daemon, pushing to registries. - [Buildah](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/buildah-container-builds.md): Building OCI container images with Buildah on Elastic CI Stack for AWS using the Docker Buildkite plugin. - [Depot](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/depot-elastic-ci-container-builds.md): Using Depot remote builders for container builds on Elastic CI Stack for AWS EC2 agents. - [Namespace remote builders](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/namespace-remote-builders.md): Using Namespace remote Docker builders to offload container builds from Elastic CI Stack for AWS instances. - [Troubleshooting](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-linux-and-windows/troubleshooting.md): Debugging Elastic CI Stack for AWS using CloudWatch Logs, log-collector scripts, and common issue solutions. ###### EC2 Mac - [Setup](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-mac/setup.md): Setting up Buildkite agents on AWS EC2 Mac instances using CloudFormation with Auto Scaling groups and custom AMIs. - [Troubleshooting](https://buildkite.com/docs/agent/self-hosted/aws/elastic-ci-stack/ec2-mac/troubleshooting.md): Troubleshooting EC2 Mac agent issues: Auto Scaling failures, agent startup, Xcode access, and SSH connectivity. ###### Self-serve install - [On AWS EC2 Mac instances](https://buildkite.com/docs/agent/self-hosted/aws/self-serve-install/ec2-mac.md): Manually installing the Buildkite agent on your own AWS EC2 Mac instances with AMI creation steps. ##### Run on Google Cloud - [Overview](https://buildkite.com/docs/agent/self-hosted/gcp.md): Options for running Buildkite agents on GCP: Elastic CI Stack Terraform module, Kubernetes, or self-managed instances. ###### Architectural considerations - [VPC design](https://buildkite.com/docs/agent/self-hosted/gcp/architecture/vpc.md): VPC network architecture, firewall rules, and security options for the Elastic CI Stack for GCP. ###### Elastic CI Stack - [Overview](https://buildkite.com/docs/agent/self-hosted/gcp/elastic-ci-stack.md): Overview of the Elastic CI Stack for GCP: autoscaling Terraform module with Docker, Cloud Logging, and preemptible VMs. - [Terraform](https://buildkite.com/docs/agent/self-hosted/gcp/elastic-ci-stack/terraform.md): Deploying the Elastic CI Stack for GCP using Terraform, including prerequisites, configuration, and custom images. - [Configuration](https://buildkite.com/docs/agent/self-hosted/gcp/elastic-ci-stack/configuration-parameters.md): Complete reference of all Terraform variables for configuring the Elastic CI Stack for GCP. - [Troubleshooting](https://buildkite.com/docs/agent/self-hosted/gcp/elastic-ci-stack/troubleshooting.md): Debugging Elastic CI Stack for GCP using Cloud Logging, serial console, SSH access, and common issue solutions. ##### Run on Azure - [Overview](https://buildkite.com/docs/agent/self-hosted/azure.md): Options for running Buildkite agents on Microsoft Azure: running jobs in a Kubernetes cluster with the Buildkite Agent Stack for Kubernetes on Azure Kubernetes Service (AKS), installing the agent on your own Azure virtual machines, and auto-scaling agents on Azure. ##### Custom install - [Overview](https://buildkite.com/docs/agent/self-hosted/install.md): Overview of agent installation methods across platforms, with links to platform-specific guides and manual install steps. - [Ubuntu](https://buildkite.com/docs/agent/self-hosted/install/ubuntu.md): Installing the Buildkite agent on Ubuntu 18.04+ using the signed apt repository. - [Debian](https://buildkite.com/docs/agent/self-hosted/install/debian.md): Installing the Buildkite agent on Debian 8+ using the signed apt repository. - [Red Hat/CentOS](https://buildkite.com/docs/agent/self-hosted/install/redhat.md): Installing the Buildkite agent on RHEL, CentOS, and Amazon Linux using the yum repository. - [FreeBSD](https://buildkite.com/docs/agent/self-hosted/install/freebsd.md): Installing the Buildkite agent on FreeBSD using the pkg package manager. - [macOS](https://buildkite.com/docs/agent/self-hosted/install/macos.md): Installing the Buildkite agent on macOS using Homebrew, with launchd service configuration. - [Windows](https://buildkite.com/docs/agent/self-hosted/install/windows.md): Installing the Buildkite agent on Windows using PowerShell or manual installation. - [Linux](https://buildkite.com/docs/agent/self-hosted/install/linux.md): Installing the Buildkite agent on any Linux system using the universal install script. - [Docker](https://buildkite.com/docs/agent/self-hosted/install/docker.md): Running the Buildkite agent in a Docker container using the official image, with Docker-in-Docker support. ##### Configure - [Overview](https://buildkite.com/docs/agent/self-hosted/configure.md): Agent configuration file reference: all settings, environment variables, and command-line flags for self-hosted agents. - [Job dispatch](https://buildkite.com/docs/agent/self-hosted/configure/job-dispatch.md): How self-hosted agents receive jobs, comparing the default polling-based dispatch with streaming job dispatch (available from agent version 3.122.0). Covers opting in via the streaming endpoint, the --ping-mode option (auto, poll-only, stream-only), and fallback behavior. - [Git mirrors](https://buildkite.com/docs/agent/self-hosted/configure/git-mirrors.md): Setting up local Git mirrors on agents to speed up repository cloning and reduce network bandwidth. - [Experiments](https://buildkite.com/docs/agent/self-hosted/configure/experiments.md): List of experimental agent features you can opt into using the --experiment flag, with status and descriptions. - [Pausing and resuming](https://buildkite.com/docs/agent/self-hosted/pausing-and-resuming.md): Pausing and resuming individual agents to prevent job dispatch during maintenance or debugging. - [Prioritization](https://buildkite.com/docs/agent/self-hosted/prioritization.md): How Buildkite assigns jobs to agents based on priority values, success history, and queue targeting. - [Resource controls](https://buildkite.com/docs/agent/self-hosted/resource-controls.md): Which resource controls Buildkite Pipelines and the agent provide for self-hosted agents and which belong to your infrastructure. Covers limiting concurrent jobs with spawn, systemd CPU, memory, and OOM settings for the agent service and per-agent template instances, bounded build filesystems, free-space checks and cleanup hooks, and resource limits for Docker, Kubernetes, and the Elastic CI Stack. ##### Monitoring and observability - [Overview](https://buildkite.com/docs/agent/self-hosted/monitoring-and-observability.md): Agent health checks, HTTP status endpoints, and Prometheus metrics for monitoring self-hosted agents. - [Tracing](https://buildkite.com/docs/agent/self-hosted/monitoring-and-observability/tracing.md): Setting up distributed tracing for the Buildkite agent using Datadog APM or OpenTelemetry. ##### Security - [Overview](https://buildkite.com/docs/agent/self-hosted/security.md): Security hardening for self-hosted agents: secrets storage, SSH keyscan, command evaluation, plugin controls. - [Network requirements](https://buildkite.com/docs/agent/self-hosted/security/network-requirements.md): Network requirements for self-hosted agents, which only make outbound HTTPS connections with no inbound ports. Lists required hosts (such as agent-edge.buildkite.com and buildkiteartifacts.com), optional hosts including customer-managed artifact storage, hosts your build jobs may need, and Buildkite platform egress IPs. - [Signed pipelines](https://buildkite.com/docs/agent/self-hosted/security/signed-pipelines.md): Cryptographically signing pipeline uploads and verifying signatures before job execution using JWKS keys, AWS KMS, or GCP KMS. ##### Agent versions directory - [Overview](https://buildkite.com/docs/agent/self-hosted/versions-directory.md): Complete directory of stable Buildkite agent releases grouped by minor version from 2.x through the 3.120-3.129 range, listing each release with its date and any known issues, to help you identify the right version to install or upgrade to. - [Upgrading from 3.0-beta and 2.x versions](https://buildkite.com/docs/agent/self-hosted/versions-directory/upgrading-from-3-dot-0-beta-and-v2.md): Upgrading agents from 3.0-beta or 2.x to stable 3.x versions, with migration steps and changelog. #### Buildkite hosted agents - [Overview](https://buildkite.com/docs/agent/buildkite-hosted.md): Overview of Buildkite hosted agents: fully-managed, ephemeral build runners with autoscaling, caching, and per-second pricing. ##### Linux hosted agents - [Overview](https://buildkite.com/docs/agent/buildkite-hosted/linux.md): Linux hosted agent instance sizes, architectures (AMD64/ARM64), agent images, concurrency, and security details. - [Custom agent images](https://buildkite.com/docs/agent/buildkite-hosted/linux/custom-agent-images.md): Creating custom Docker-based agent images for Linux hosted agents: image requirements, building from the Buildkite hosted agent base image, creating images via the Buildkite interface, agent hooks, or the internal container registry, using and deleting images, and troubleshooting job startup issues. - [Remote Docker builders](https://buildkite.com/docs/agent/buildkite-hosted/linux/remote-docker-builders.md): Where Docker image builds run on hosted agents: remote Docker builders with layer caching (Enterprise), local builds with automatic volume layer caching on other plans, and keeping a layer cache with the default builder. ##### macOS hosted agents - [Overview](https://buildkite.com/docs/agent/buildkite-hosted/macos.md): macOS hosted agent sizes, Apple silicon support, pre-installed software (Xcode, Homebrew), Docker daemon limitations, configuration, and RSS feeds for tracking image changes. - [Getting started with iOS](https://buildkite.com/docs/agent/buildkite-hosted/macos/getting-started-with-ios.md): Tutorial for building iOS apps using Buildkite macOS hosted agents with the FlappyKite sample project. - [Troubleshooting fastlane](https://buildkite.com/docs/agent/buildkite-hosted/macos/troubleshooting-fastlane.md): Troubleshooting fastlane issues on Buildkite hosted macOS agents: code signing, provisioning profiles, and keychains. - [Windows hosted agents](https://buildkite.com/docs/agent/buildkite-hosted/windows.md): Windows hosted agents running Windows Server 2022 on AMD64, including public preview availability, instance sizes, and current limitations. - [Code access](https://buildkite.com/docs/agent/buildkite-hosted/code-access.md): Configuring hosted agents to access private GitHub repositories and other providers using SSH or HTTPS. - [Pipeline migration](https://buildkite.com/docs/agent/buildkite-hosted/pipeline-migration.md): Steps to migrate existing pipelines to Buildkite hosted agent queues, including repository checkout changes. - [Terminal access](https://buildkite.com/docs/agent/buildkite-hosted/terminal-access.md): Accessing a live terminal on running hosted agent jobs for debugging and environment inspection. - [Desktop access](https://buildkite.com/docs/agent/buildkite-hosted/desktop-access.md): Opening a browser-based remote desktop (VNC) for running jobs on macOS hosted agents. - [Cache volumes](https://buildkite.com/docs/agent/buildkite-hosted/cache-volumes.md): Configuring NVMe cache volumes on hosted agents for build dependencies, Docker images, and Git mirrors. - [Internal container registry](https://buildkite.com/docs/agent/buildkite-hosted/internal-container-registry.md): Using the cluster-scoped internal container registry to store and share Docker images built by hosted agents. - [Network security](https://buildkite.com/docs/agent/buildkite-hosted/network-security.md): IP allowlisting, OIDC-based authentication, and network security configuration for Buildkite hosted agents. #### Queues - [Overview](https://buildkite.com/docs/agent/queues.md): How queues route jobs to specific agents, targeting queues from pipeline YAML, and self-hosted vs hosted queue types. - [Managing](https://buildkite.com/docs/agent/queues/managing.md): Creating, configuring, pausing, and deleting self-hosted and Buildkite hosted queues within clusters. - [Agent lifecycle](https://buildkite.com/docs/agent/lifecycle.md): Agent lifecycle stages, signal handling (SIGTERM/SIGQUIT), exit codes, and troubleshooting common issues. - [Hooks](https://buildkite.com/docs/agent/hooks.md): Complete guide to Buildkite agent hooks: what hooks are, hook scopes, and hook locations (agent, repository, and plugin hooks). Covers polyglot hooks with their extra environment variables and caveats, agent lifecycle hooks, job lifecycle hooks including hook failure behavior and exceptions, how to create each type of hook, running job hooks on Windows, and using hooks with the Buildkite Agent Stack for Kubernetes. #### Command-line reference - [Overview](https://buildkite.com/docs/agent/cli/reference.md): Overview of all buildkite-agent CLI commands for managing agents, artifacts, pipelines, and build operations. - [start](https://buildkite.com/docs/agent/cli/reference/start.md): CLI reference for buildkite-agent start: flags for tags, token, configuration, spawn, and disconnect behavior. - [annotate](https://buildkite.com/docs/agent/cli/reference/annotate.md): CLI reference for buildkite-agent annotate: adding Markdown annotations to build pages with styles and contexts. - [annotation](https://buildkite.com/docs/agent/cli/reference/annotation.md): CLI reference for buildkite-agent annotation: removing existing build annotations by context. - [artifact](https://buildkite.com/docs/agent/cli/reference/artifact.md): CLI reference for buildkite-agent artifact: uploading, downloading, and searching build artifacts across steps. - [bootstrap](https://buildkite.com/docs/agent/cli/reference/bootstrap.md): CLI reference for buildkite-agent bootstrap: the internal command the agent runs to execute a job. - [build](https://buildkite.com/docs/agent/cli/reference/build.md): CLI reference for buildkite-agent build: canceling builds from within a running job. - [cache](https://buildkite.com/docs/agent/cli/reference/cache.md) - [env](https://buildkite.com/docs/agent/cli/reference/env.md): CLI reference for buildkite-agent env: inspecting, setting, and unsetting environment variables in jobs. - [job](https://buildkite.com/docs/agent/cli/reference/job.md): CLI reference for buildkite-agent job update: modifying job attributes like timeout_in_minutes during execution. - [lock](https://buildkite.com/docs/agent/cli/reference/lock.md): CLI reference for buildkite-agent lock: coordinating concurrent builds on shared resources using named locks. - [meta-data](https://buildkite.com/docs/agent/cli/reference/meta-data.md): CLI reference for buildkite-agent meta-data: key/value store for sharing data across build steps and agents. - [oidc](https://buildkite.com/docs/agent/cli/reference/oidc.md): CLI reference for buildkite-agent oidc: requesting OIDC tokens for federated authentication with AWS, GCP, Azure. - [pause](https://buildkite.com/docs/agent/cli/reference/pause.md): CLI reference for buildkite-agent pause: manually pausing a running agent to stop job dispatch. - [pipeline](https://buildkite.com/docs/agent/cli/reference/pipeline.md): CLI reference for buildkite-agent pipeline upload: dynamically adding or replacing build steps from YAML/JSON. - [redactor](https://buildkite.com/docs/agent/cli/reference/redactor.md): CLI reference for buildkite-agent redactor: adding sensitive values to the log redactor during builds. - [resume](https://buildkite.com/docs/agent/cli/reference/resume.md): CLI reference for buildkite-agent resume: resuming a previously paused agent. - [secret](https://buildkite.com/docs/agent/cli/reference/secret.md): CLI reference for buildkite-agent secret get: retrieving secrets from Buildkite secrets with automatic redaction. - [step](https://buildkite.com/docs/agent/cli/reference/step.md): CLI reference for buildkite-agent step: getting and updating step attributes (label, priority) during a build. - [stop](https://buildkite.com/docs/agent/cli/reference/stop.md): CLI reference for buildkite-agent stop: manually stopping a running agent. - [workdir](https://buildkite.com/docs/agent/cli/reference/workdir.md): CLI reference for buildkite-agent workdir: subcommands for interacting with the working directory of the currently running job, including workdir set. - [tool](https://buildkite.com/docs/agent/cli/reference/tool.md): CLI reference for buildkite-agent tool: utilities for JWKS key generation and pipeline signing (experimental). ## See also - [Buildkite Self-Hosted Agent Documentation](https://buildkite.com/docs/llms-self-hosted-agents.txt): Buildkite documentation for self-hosted agents, covering installation on Linux, macOS, Windows, and Docker, running on AWS, GCP, and Kubernetes, agent configuration, security, monitoring, and the CLI reference. - [Buildkite Hosted Agent Documentation](https://buildkite.com/docs/llms-hosted-agents.txt): Buildkite documentation for Buildkite hosted agents, covering Linux, macOS, and Windows instances, cache volumes, internal container registry, remote Docker builders, network security, code access, pipeline migration, terminal access, and desktop access. - [Buildkite CLI Tools Documentation](https://buildkite.com/docs/llms-cli-tools.txt): Buildkite documentation for CLI tools and editor integrations, covering the Buildkite CLI (bk) for managing pipelines, builds, and agents, the buildkite-agent CLI reference for agent operations, artifacts, meta-data, and pipeline uploads, and the Buildkite Visual Studio Code extension.