{
  "slug": "bk-agent-install-installs-an-agent-binary-and-configures-a-cluster-token-07a0850eadfe",
  "title": "bk agent install installs an agent binary and configures a cluster token",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-31T00:35:13.000Z",
  "announced_at": "2026-03-31T00:35:13.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When installing a Buildkite agent, run `bk agent install` to download the binary and create a token plus minimal config for the Default cluster. Use `--cluster-uuid` to select a cluster, `--no-token` to skip token and config creation, and `--dest` to choose the binary directory.",
    "examples": [
      "bk agent install",
      "bk agent install --cluster-uuid <cluster-uuid>",
      "bk agent install --dest <directory> --no-token"
    ],
    "gotchas": [
      "Version: v3.33.0",
      "--version <version>: Agent version to install; defaults to `latest`.",
      "--dest <directory>: Destination directory for the binary; the command chooses a default if omitted.",
      "--cluster-uuid <uuid>: Cluster UUID to create the agent token on; defaults to the `Default` cluster.",
      "--no-token: Skip creating an agent token and config file.",
      "--config-path <path>: Path to write the agent config file; defaults to the platform-specific config path.",
      "Prerequisite: Token/config creation initializes the API client and creates a token for the selected cluster; the install source does not document required auth scopes or setup.",
      "The command is phase 1 of a two-phase onboarding process.",
      "Installing to `/usr/local/bin` requires `sudo`; the default destination is under `$HOME`.",
      "`--no-token` may be needed for OAuth scopes or when only the binary is wanted."
    ]
  },
  "why_it_matters": "Install a Buildkite agent binary and configure it to join a cluster.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.33.0",
    "https://github.com/buildkite/cli/pull/695",
    "https://github.com/buildkite/cli/blob/v3.33.0/cmd/agent/install.go"
  ],
  "rank": 0.96031,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-d2bcc3989d6edd20-1:gate",
    "evidence_hash": "2bc3de04d031544d7e5d29bd65aa1e621095598dd90ce73ff34134feebd3f405"
  },
  "review": {
    "draft_hash": "373774f60c95132ec9156f60d15ee03ce20850f651e2213abfb59724a24bbe76",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
