> ## Documentation Index
> Fetch the complete documentation index at: https://aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Remote execution

> Aspect Workflows remote execution, implementing the Bazel REv2 protocol to parallelize actions across remote workers.

A local Bazel build is limited by the CPU cores on the machine running it. Remote execution (RBE) removes that limit: Bazel sends individual actions to a pool of remote workers with `--remote_executor`, so hundreds of compile and test actions run in parallel whatever the local hardware.

Every action with no unmet dependencies runs as soon as a worker is free, instead of queuing behind other actions on one machine. The fleet implements the [Bazel Remote Execution API v2](https://github.com/bazelbuild/remote-apis), so any REv2 client works with it.

## What the fleet offers

* **Several platforms side by side.** Each executor runs its own container image, with worker pools of its own instance type, `amd64` or `arm64`, and GPU pools. One build can mix images, OS versions and toolchains without splitting into separate jobs.
* **Native cross-platform builds.** Multi-arch container publishing and other cross-platform work run on the right architecture rather than through emulation.
* **Auto-scaling to zero.** Pools scale on queue depth and scale down to zero when the queue is empty. They can also pre-scale on a schedule ahead of expected load.
* **Docker-based tests** on the workers.
* **Workers on your own hardware.** Machines you run yourself can join the fleet as remote execution workers, for any worker type.

## Where it's available

Remote execution is available on Aspect Enterprise today and is coming soon to Aspect Cloud. On [Aspect Enterprise](https://aspect.build/docs/aspect-workflows/enterprise/overview.md) it runs [hosted by Aspect](https://aspect.build/docs/aspect-workflows/enterprise/deployment-options/hosted.md) or [self-hosted](https://aspect.build/docs/aspect-workflows/enterprise/deployment-options/self-hosted.md), with Linux workers, [macOS workers](https://aspect.build/docs/aspect-workflows/platform/guides/macos-remote-execution.md), and GPU workers; [remote execution on Aspect Enterprise](https://aspect.build/docs/aspect-workflows/enterprise/remote-execution.md) covers its worker pools and scaling. Until it reaches [Aspect Cloud](https://aspect.build/docs/aspect-workflows/cloud/overview.md), an Aspect Cloud build runs its actions on your own machines, with the shared [remote cache](https://aspect.build/docs/aspect-workflows/platform/features/remote-cache.md) in front of them.

> [!TIP]
>
> Interested in early access to Aspect Cloud CI runners and remote execution, coming in early 2027? [Join the early access list](https://aspect.build/contact?topic=early-access).

You can start with [CI runners](https://aspect.build/docs/aspect-workflows/platform/features/ci-runners.md) and [remote cache](https://aspect.build/docs/aspect-workflows/platform/features/remote-cache.md), and turn remote execution on later as a configuration change on the same deployment.

## Configuring your repository

Remote execution is never on by default: it changes where every action runs.

| Where the build runs | How it asks for remote execution |
| - | - |
| An Aspect CLI task on a Workflows runner | `--workflows:remote-exec`, or `ctx.features[Workflows].args.remote_exec = True` in `config.axl` |
| Vanilla `bazel` on a Workflows runner | `--config=aspect-exec`, from the rc the [setup step](https://aspect.build/docs/aspect-workflows/enterprise/customers/connect/ci-setup/workflows-runners/setup.md#the-setup-step) writes |
| An Aspect CLI task anywhere else | `--remote=exec`; see [local setup](https://aspect.build/docs/aspect-workflows/enterprise/customers/connect/local-setup.md) |

Each action also needs an exec platform whose `exec_properties` match a worker pool exactly, and a toolchain that runs on that pool's image. [RBE platforms](https://aspect.build/docs/aspect-workflows/platform/guides/remote-execution-worker-pools.md) covers the matching rule, and [Parallelize remote execution](https://aspect.build/docs/aspect-workflows/platform/guides/parallelization.md) covers getting more actions in flight.

## Benchmark

The [AOSP build benchmark](https://aspect.build/docs/aspect-workflows/platform/benchmarks/aosp-remote-execution.md) measures a full Android Open Source Project build on remote execution, with the infrastructure configuration and the public CI runs. AOSP builds with Soong and ninja rather than Bazel; its actions reach the fleet over the same Remote Execution API Bazel uses.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.