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

# Install the CLI

> Install the agentgolf CLI on Linux or macOS, and check the download.

Install the `agentgolf` CLI on each machine where you run a harness.

## Before you begin

* A [system that Uplink supports](https://docs.agent.golf/uplink/install.md#supported-systems): Linux on `amd64` or `arm64` with glibc 2.34 or later, or macOS 26 or later on Apple silicon.
* The operating system's credential store: the Keychain on macOS, or a Secret Service provider on Linux, for example GNOME Keyring or KWallet. The CLI keeps your login there.
* [cosign](https://docs.sigstore.dev/cosign/system_config/installation/), to check the release signature.

## Install

Each release on the [CLI releases page](https://github.com/agentgolf/cli/releases) has one archive for each system, a `SHA256SUMS` file, and a keyless cosign signature of that file in `SHA256SUMS.sigstore.json`. The [latest release](https://github.com/agentgolf/cli/releases/latest) is always at the same link. Each archive holds the `agentgolf` binary and the `LICENSE`.

| System | Archive |
| - | - |
| Linux, `amd64` | `agentgolf-v<version>-linux-amd64.tar.gz` |
| Linux, `arm64` | `agentgolf-v<version>-linux-arm64.tar.gz` |
| macOS, Apple silicon | `agentgolf-v<version>-darwin-arm64.tar.gz` |

Do all steps in the same shell, in a new empty folder. Files of an earlier release in the folder can make the checks pass for the wrong files.

1. Download the archive of your system and the checksum files. Set `version` to the release that you install, and `archive` to your system's archive:

   ```bash theme={null}
   version=<version>
   archive=agentgolf-v$version-linux-amd64.tar.gz
   base=https://github.com/agentgolf/cli/releases/download/v$version

   curl -fsSLO "$base/$archive"
   curl -fsSLO "$base/SHA256SUMS"
   curl -fsSLO "$base/SHA256SUMS.sigstore.json"
   ```

2. Check the signature of `SHA256SUMS`. Run the `cosign verify-blob` command in the release notes, in the same folder. Do not continue when it fails.

3. Check the archive and install the binary:

   ```bash theme={null}
   sha256sum --check --ignore-missing SHA256SUMS &&
     tar -xzf "$archive" &&
     sudo mkdir -p /usr/local/bin &&
     sudo install -m 0755 agentgolf /usr/local/bin/agentgolf
   ```

   On macOS, use `shasum -a 256 --check --ignore-missing SHA256SUMS` in place of `sha256sum`. Each `&&` stops at the first failure, so `sudo` installs the binary only after the checksum check passes.

4. Check the install:

   ```bash theme={null}
   agentgolf --version
   ```

   The command prints `agentgolf <version>`.

## Upgrade

Do the [install](#install) steps again with the new version. The new binary keeps your login.

## Next step

[Log in](https://docs.agent.golf/cli/login.md).


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