# Windows hosted agents

Windows hosted agents are:

- [Buildkite agents](/docs/agent) hosted by Buildkite that run on Windows Server 2022 in ephemeral virtual machines.

- Configured as part of a _Buildkite hosted queue_, where the machine type is Windows, with a particular [size](#sizes) to efficiently manage jobs with varying requirements.

> 📘 Public preview feature
> Windows hosted agents are currently in public preview and available on [Trial, Pro, and Enterprise](https://buildkite.com/pricing/) plans. To provide feedback, contact the Buildkite Support team at [support@buildkite.com](mailto:support@buildkite.com).

Learn more about:

- Best practices for configuring queues in [How should I structure my queues](/docs/pipelines/security/clusters#clusters-and-queues-best-practices-how-should-i-structure-my-queues) of the [Clusters overview](/docs/pipelines/security/clusters), as well as [Manage queues](/docs/agent/queues/managing).

- How to configure Windows hosted agents in [Create a Buildkite hosted queue](/docs/agent/queues/managing#create-a-buildkite-hosted-queue).

- The [concurrency](#concurrency), [security](#security), and [current limitations](#current-limitations) of Windows hosted agents.

- Running GitHub Actions workflows on Windows hosted agents using [GitHub Actions Compatibility](/docs/pipelines/migration/run-github-actions-workflows#requirements-run-windows-jobs).

## Sizes

Windows hosted agents support the AMD64 architecture in four instance shapes:



| `WINDOWS_AMD64_2X8` | Small | AMD64 | 2 | 8 GB |
| --- | --- | --- | --- | --- |
| `WINDOWS_AMD64_4X16` | Medium | AMD64 | 4 | 16 GB |
| `WINDOWS_AMD64_8X32` | Large | AMD64 | 8 | 32 GB |
| `WINDOWS_AMD64_16X64` | Extra Large | AMD64 | 16 | 64 GB |



The Extra Large (XL) instance shape is only available on Enterprise plans. Contact [Buildkite Support](mailto:support@buildkite.com) to request access.

## Base image

Windows hosted agents use a fixed, Buildkite-managed Windows Server 2022 base image. Windows hosted queues don't support the base image configuration available for [Linux](/docs/agent/buildkite-hosted/linux#agent-images) and [macOS](/docs/agent/buildkite-hosted/macos#macos-instance-software-support) hosted queues. A Windows hosted queue's settings page doesn't display a **Base Image** tab.

Each job runs in a new virtual machine. After the job finishes, Buildkite destroys the virtual machine and its data.

## Concurrency

Windows hosted agents can operate concurrently when running your Buildkite pipeline jobs.

This concurrency is measured by the number of hosted agent machines that are allocated for your jobs at any given time. A machine is counted from the moment it starts booting to acquire a job, since that's when the machine starts consuming capacity. As a result, concurrency may not always match the exact number of running jobs, particularly with short-lived workloads.

To calculate the maximum number of concurrent Windows hosted agents, divide your plan's Windows vCPU concurrency limit by the [instance shape's](#sizes) vCPU count. See [platform limits](/docs/platform/limits#pipelines-limits-hosted-agents-limits) for the default limits for each plan.

For example, the `WINDOWS_AMD64_4X16` (Medium) instance shape has a vCPU count of four. A Windows concurrency limit of 64 vCPU supports 16 concurrent agents of this shape.

Jobs that would exceed the limit remain queued until capacity becomes available.

## Security

Each Windows job runs in an isolated virtual machine that Buildkite destroys, together with its data, after the job completes.

## Current limitations

Windows hosted agents don't currently support:

- Custom base images
- [Cache volumes](/docs/agent/buildkite-hosted/cache-volumes)
- [Terminal access](/docs/agent/buildkite-hosted/terminal-access) using SSH
- [Desktop access](/docs/agent/buildkite-hosted/desktop-access) using VNC or Remote Desktop
- ARM64 architecture
- Nested virtualization
- Windows Server 2025
- Selecting a Windows shell in the queue settings
- Selecting or managing the Buildkite agent version

Without nested virtualization, Windows hosted agents can't run WSL2, Docker Desktop, or Windows containers with Hyper-V isolation. Docker Engine is installed on the base image and runs Windows containers with [process isolation](https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container).
