Installing Buildkite Agent on Linux
This page references the out-of-date Buildkite Agent v2.
For docs referencing the Buildkite Agent v3, see the latest version of this document.
You can install Buildkite Agent on most Linux based systems (including macOS).
Run the following script (view the source), which will download and install the correct binary for your system and architecture:
TOKEN="INSERT-YOUR-AGENT-TOKEN-HERE" bash -c "`curl -sL https://raw.githubusercontent.com/buildkite/agent/main/install.sh`"
Then, start the agent:
Alternatively you can follow the manual installation instructions.
SSH key configuration
SSH keys should be copied to (or generated into)
~/.ssh/ for the user the agent is running as. For example, to generate a new private key which you can add to your source code host:
$ mkdir -p ~/.ssh && cd ~/.ssh $ ssh-keygen -t rsa -b 4096 -C "firstname.lastname@example.org"
See the Agent SSH Keys documentation for more details.
- Agent Hooks:
- SSH keys:
The configuration file is located at
~/.buildkite-agent/buildkite-agent.cfg. See the configuration documentation for an explanation of each configuration setting.
Rerun the install script.