---
title: "af enroll-agent-runner"
description: "Request enrollment of an agent runner"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af enroll-agent-runner

<!-- Generated by tools/gen-reference.mjs from `af enroll-agent-runner --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

An agent runner is a machine that hosts agents: it runs an agent's harness for the forge, and reads no code, approves nothing and writes no cache. Give the machine's public key (`af-runner key` prints it; the private key never leaves the machine), a name, the machine as `af-runner machine` prints it, the data classes it may host (each declared first) and the labels an order may ask of it. Requires an administrator; it takes effect at once unless the forge requires a second administrator. Nothing of an enrollment changes: another set of classes is another enrollment, after the old one is stopped.

## Usage

```text
af enroll-agent-runner [OPTIONS] --name <NAME> --machine <MACHINE> <KEY>
```

## Arguments

- `<KEY>`

  The agent runner's Ed25519 public key, in hex

## Options

- `--name <NAME>`

  Name of the machine, recorded for reference: lower-case words joined by `-`

- `--machine <MACHINE>`

  The machine, as `af-runner machine` prints it

- `--class <CLASSES>`

  A data class it may host, declared by the organization already; repeat for each

- `--label <LABELS>`

  A label an order may ask of it, such as `gpu`; repeat for each

- `--reference <REFERENCE>`

  The name of what its attestation is measured against, if it is attested

- `--reason <REASON>`

  Reason for the request, recorded with it

  Default: `""`

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af enroll-agent-runner "$(cat runner.pub)" --name rack-3 --machine "$(af-runner machine)" --class internal --label gpu
```

Source: https://docs.forge.workreef.dev/reference/af/enroll-agent-runner/index.mdx
