Skip to content

Installation

Latest release

Download and install the latest release in one step:

VER=$(curl -fsSL "https://gitlab.com/api/v4/projects/saferatday0%2Fagentfile/releases/permalink/latest" | grep -o '"tag_name":"[^"]*"' | cut -d'"' -f4)
ARCH=$(uname -m); [ "$ARCH" = "x86_64" ] && ARCH=amd64
BASE="https://gitlab.com/saferatday0/agentfile/-/releases/${VER}/downloads"
ARCHIVE="agentfile-${VER}-linux-${ARCH}.tar.gz"
curl -fsSL "$BASE/SHA256SUMS" -o SHA256SUMS && curl -fsSLO "$BASE/${ARCHIVE}"
sha256sum --check --ignore-missing SHA256SUMS
tar xzf "${ARCHIVE}" && sudo install agentfile /usr/local/bin/ && rm agentfile "${ARCHIVE}" SHA256SUMS

Specific release

To pin to a particular version, set VER explicitly and download from the Releases page:

VER=0.6.0
ARCH=$(uname -m); [ "$ARCH" = "x86_64" ] && ARCH=amd64
BASE="https://gitlab.com/saferatday0/agentfile/-/releases/${VER}/downloads"
ARCHIVE="agentfile-${VER}-linux-${ARCH}.tar.gz"
curl -fsSL "$BASE/SHA256SUMS" -o SHA256SUMS && curl -fsSLO "$BASE/${ARCHIVE}"
sha256sum --check --ignore-missing SHA256SUMS
tar xzf "${ARCHIVE}" && sudo install agentfile /usr/local/bin/ && rm agentfile "${ARCHIVE}" SHA256SUMS

From source

Requires Go 1.23+:

git clone https://gitlab.com/saferatday0/agentfile.git
cd agentfile/
make install

This installs to ~/.local/bin/agentfile by default. Override with make install PREFIX=/usr/local.