# Run jobs on hosted runners

Run Linux, macOS and Windows jobs on machines the platform provides to every organization, with nothing to set up, billed per minute; or switch hosted macOS or Windows off.

Every organization has three hosted runners, listed first under **Runners**: **Hosted: Linux**,
**Hosted: macOS** and **Hosted: Windows**. A job names one with its `runs-on` label; nothing in
the workflow file changes and nothing is registered.

## What each hosted runner is

| Runner          | Takes `runs-on`                                                                             | Machine                                                                                | Price (net)                        |
| --------------- | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------- |
| Hosted: Linux   | `ubuntu-latest`, `ubuntu-24.04`, `ubuntu-22.04`, and any Linux job no pool or machine takes | One fresh machine per run, deleted after the run                                       | **Job minutes** of your price list |
| Hosted: macOS   | `macos-latest`, `macos-15`, `macos-26`, any `macos-*` label                                 | One fresh macOS VM per job on an Apple silicon Mac mini (arm64), deleted after the job | €0.06 per minute                   |
| Hosted: Windows | `windows-latest`, `windows-2025`, `windows-2022`, any `windows-*` label                     | One fresh Windows VM per job, Windows licence included, deleted after the job          | €0.012 per minute                  |

On macOS and Windows the image decides the version, not the label: every `macos-*` label gets the
same macOS image, every `windows-*` label the same Windows image. Each job runs GitHub's own
runner, in a VM of its own; nothing of one job reaches the next.

These runners take jobs of GitHub Actions workflows. Native-format runs with `runs-on: macos` go to
a Mac you connect (see [Connect a Mac](connect-a-mac.md)).

## Price

macOS and Windows jobs are billed for every started minute from the job starting to its end, to
your organization. Hosted Linux bills every started minute of the run's machine as **Job
minutes**. You see the minutes on **Pricing** (**Hosted macOS job minutes**, **Hosted Windows job
minutes**), on the hosted runner's page under **This month**, and in the **Cost this month**
column of **Runners**.

## Your own machines go first

A runner pool or a machine of your organization always goes before a hosted runner for the same
labels:

- A runner pool that carries `ubuntu-latest` takes those jobs instead of **Hosted: Linux** (see
  [Create a runner pool](create-a-runner-pool.md)).
- While your organization has a registered Mac online, **Hosted: macOS** takes none of its
  `macos-*` jobs. While it has a Windows runner online, or a Windows pool of its own,
  **Hosted: Windows** takes none of its `windows-*` jobs.
- When your own machine is offline, the hosted runner takes those jobs again.

The hosted runner's page says which applies under **Now**: for example "Your own machine takes
these jobs; hosted takes them when it is offline".

## Limits

- **Hosted: macOS** runs at most one job of your organization at a time: the hosted Macs are
  shared by every organization. Your other macOS jobs wait their turn.
- **Hosted: Windows** runs at most four jobs of your organization at a time.
- Intel labels (`macos-13`, `macos-15-intel`, `macos-*-large`) need an x64 Mac. The hosted Macs
  are Apple silicon and do not take them: such a job waits for a Mac of your own that carries `x64`.
- macOS and Windows jobs cannot use `services:`, `container:` or `docker://` steps: there is no
  Docker on macOS and no Linux containers on Windows, as on GitHub.
- **Hosted: Windows** may say "Not available yet on this installation; jobs wait". Your
  `windows-*` jobs then wait for a Windows machine of your own, or go to GitHub (see
  [Run Windows jobs on GitHub](run-windows-jobs-on-github.md)).

## Prerequisites

- `ci:DescribeRunners` on all of CI (`rn:ews::<organization id>:ci:*`) to open **Runners** and
  see the hosted runners.
- `ci:ManageRunners` on all of CI to switch hosted macOS or Windows off or on. Without it the
  switch is greyed out and says "Needs ci:ManageRunners".

## See a hosted runner

**Console**
1. Open **Runners** under CI.
2. Choose **Hosted: Linux**, **Hosted: macOS** or **Hosted: Windows**.

The page shows **What it is** (machine, labels, isolation, price), **Now** (whether it takes your
jobs, the hosted Macs online and busy, your jobs running and waiting), **This month** (jobs,
minutes and cost) and **For your organization**.

**CLI**
```sh
dcloud ci hosted-runners list
```

**API**
```http
GET /ci/api/hosted-runners
```

The answer lists the three hosted runners. `availability` is `available`, `off` (switched off for
your organization), `own` (a machine of your own takes these jobs first) or `unavailable` (none on
this installation, or every one offline).

## Switch hosted macOS or Windows off

Switched off, the hosted runner takes none of your organization's jobs for that OS: they wait for
a machine of your own. **Hosted: Linux** cannot be switched off; give your organization a runner
pool that carries its labels instead.

**Console**
1. Open **Runners** under CI, then choose **Hosted: macOS** or **Hosted: Windows**.
2. Under **For your organization**, turn off the switch.

The runner's status in **Runners** turns **Off**. Turn the switch on again to undo it.

**CLI**
```sh
dcloud ci hosted-runners set macos --enabled=false
```

Use `windows` for hosted Windows, and `--enabled` to switch it on again.

**API**
```http
PUT /ci/api/hosted-runners/macos
{ "enabled": false }
```

Use `windows` for hosted Windows, and `"enabled": true` to switch it on again. The answer is `200`
with the hosted runner as the list shows it. Any OS other than `macos` or `windows` answers `404`.

## Related

- [Runners and runner groups](runners-and-groups.md)
- [Run GitHub Actions workflows](run-github-actions-workflows.md)
- [Create a runner pool](create-a-runner-pool.md)
- `ci.hosted-runners.list` · `ci.hosted-runners.set` · `dcloud ci hosted-runners set`
