agentgolf is the command-line interface of Agent Golf. The CLI connects your agent harness to Cloud Uplink or to a Self-Hosted Uplink instance with your personal publishing key. Agent Golf then links the sessions of the harness to you. You can also use the CLI to link a session to a GitHub pull request by hand. The CLI acts as you, in one workspace.
This repository holds the CLI releases. For the full documentation, see CLI Overview.
- Linux on
amd64orarm64with glibc 2.34 or later, or macOS 26 or 27 on Apple silicon. - The credential store of the operating system: the Keychain on macOS, or a Secret Service provider on Linux, for example GNOME Keyring. The CLI keeps your login there.
- cosign, to check the release signature.
- An Agent Golf account in a workspace. See Create an Account.
- The Connect Your Harness permission in the workspace, to connect a harness. See Users & Roles.
sudoaccess, to install the binary in/usr/local/bin.
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. For more detail, see Install the CLI.
-
Download the archive of your system,
SHA256SUMS, andSHA256SUMS.sigstore.json. Find the version on the latest release, and replace<version>with it, without thev. On Linuxarm64, replacelinux-amd64withlinux-arm64. On macOS, replace it withdarwin-arm64. Then run these commands: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"
-
Check the signature of
SHA256SUMS. In the same folder, run thecosign verify-blobcommand in the notes of the release that you download. Do not continue when it fails. -
Check the archive and install the binary. On macOS, use
shasum -a 256in place ofsha256sum. Do not install the binary when the checksum check fails.sha256sum --check --ignore-missing SHA256SUMS && tar -xzf "$archive" && sudo mkdir -p /usr/local/bin && sudo install -m 0755 agentgolf /usr/local/bin/agentgolf
-
Check the install. The command prints
agentgolf <version>.agentgolf --version
- Run
agentgolf login. - The CLI shows a URL and a code, and tries to open the URL in your browser. When no browser opens, open the URL yourself.
- On the Approve a Device page, make sure that Device Code shows the same code as the terminal. Approve only a sign-in that you started.
- In Workspace, select the workspace that the CLI acts in.
- Select Approve. The terminal shows
Logged in.
To log out, run agentgolf logout. For code expiry, the saved login, and common problems, see Log In.
Warning: Setup turns on every content setting of the harness, for example prompt text. Some harnesses also send content by default. Before you start or restart a harness, check what it sends. Remove the settings that your policy does not allow. Do not connect a harness that sends content that your policy does not allow and that you cannot turn off. See Session content.
The commands below use Cloud Uplink, which must be on for your workspace. For a Self-Hosted Uplink instance, add --endpoint <url>, where <url> is the base URL of the OTLP HTTP listener of the uplink instance. Use an https URL unless the URL host is a loopback address, such as localhost. See Agent Harnesses.
Set up each Claude Code, Codex, and GitHub Copilot CLI harness that the command finds on this machine. The command names each harness that it skips.
agentgolf harness setup --all--all does not include omp. For omp, run:
agentgolf harness setup ompThe command connects each harness that it sets up with a personal publishing key, and writes or prints its settings. agentgolf harness setup omp prints export lines for omp. --all prints export lines for the GitHub Copilot CLI when it sets up that harness. Apply each set of lines only in the shell that starts its own harness, as the omp or GitHub Copilot page tells you. Then restart each harness.
The local agent of GitHub Copilot Chat in VS Code needs manual setup. See VS Code local agent.
This table is a summary. For every flag, see CLI Commands.
| Command | Result |
|---|---|
agentgolf login |
Sign in and save the login. |
agentgolf logout |
Remove the saved login. |
agentgolf harness setup (<claude-code|codex|omp|copilot> | --all) |
Connect a harness with a personal publishing key, and write or print its settings. |
agentgolf harness managed-settings <claude-code|codex|copilot> |
Print the managed settings of a harness for a team rollout. |
agentgolf otel-headers |
Give Claude Code its publishing key from the credential store. |
agentgolf attribute <session-id> <pull-request-url> |
Link one of your sessions to one GitHub pull request. |
agentgolf attribution evidence --session <uuid> |
Show the attribution records of one session. |
agentgolf attribution evidence --pull-request <url> |
Show the attribution records of one pull request. |
agentgolf attribution repositories |
List the repositories that attribution covers. |
agentgolf attribution audit --since <time> --before <time> |
Compare automatic links with manual links and pull-request authors. Times are UTC YYYYMMDDHHmmss. |
agentgolf mcp |
Run a read-only MCP server for an AI tool on this machine. |
Run agentgolf <command> --help for the help of each command.