Deploying Agents
Building Agent Binaries
From the Web UI
Settings → Agent offers two routes, and which you want depends on where the binary should come from.

Whichever route you use, the version a binary is registered as must equal the version compiled into it; a mismatch or an unstamped binary is rejected (HTTP 422). Agent versions are shared by the whole install, so when the install uses organizations only an administrator who is not signed in to an organization can add or delete them. Agent Self-Updates has the details and the rollout advice.
Upload a pre-built binary (recommended for releases)
Upload a binary from a tagged GitHub release and choose the certificate to sign it with — the active certificate by default.
This is the safer route for a release, because it separates two things that are easy to conflate:
- Provenance comes from the release artifact, which was built from a tagged
commit and can be checked against the release's
SHA256SUMS - Trust comes from your certificate, which is what your endpoints are actually configured to accept
Nothing depends on which agent source happens to be deployed on the server.
Signing is required by default: if no certificate is available or signing fails, the upload is rejected rather than quietly registering an unsigned binary. Tick Register unsigned if signing fails only when you know the target endpoints do not enforce application control.
| Platform | Signing |
|---|---|
| Windows | Authenticode, with the certificate you select |
| macOS | Ad-hoc — no certificate required |
| Linux | None; no ecosystem equivalent |
Re-signing is also how you roll a binary onto a new certificate without rebuilding it: upload the same file again and pick the new cert.
Build from source
Cross-compiles on the server and signs Windows output with the active certificate. Available where the Go toolchain and the agent source are present (Docker Compose, self-hosted and on-prem servers, Fly.io, Render).
The version you type is compiled into the binary, but it does not choose the code. Which code is built depends on the install:
- Docker Compose and server installs build the server's own checkout (the
repository folder the containers were started from). Run
git pullthere first, or the old code ships under the new version number. - Installs with
AGENT_REPO_URL(Render, for example) fetch the latest commit of that repository before every build, and fail the build when they cannot reach it.
Registered Versions shows what was built in its Source column: the
commit, for example 1bbe749, and an amber source says 0.7.3 when the
version in the source differs from the one you typed. Check it before agents
pick the version up. An amber line means old code was built under the new
number: update the server's code and build again under a new version number.
Signing failure on this path is non-fatal by design (the build still produced a working binary), so check that Registered Versions shows the version as signed. An unsigned Windows binary is flagged there in amber.
From Source
cd agent
make build-all # Cross-compile for all platforms
| Target | Binary Name |
|---|---|
| Windows amd64 | achilles-agent-windows-amd64.exe |
| Linux amd64 | achilles-agent-linux-amd64 |
| macOS amd64 | achilles-agent-darwin-amd64 |
| macOS arm64 | achilles-agent-darwin-arm64 |
Installing the Agent
The easiest way is the install command shown in Agents → Enrollment after you
create a token (Enrollment). It downloads the agent into its
install folder and runs --install from there.
The agent always installs into one fixed folder, which also holds its config and work directory:
| Platform | Agent binary |
|---|---|
| Windows | C:\F0\achilles-agent.exe |
| Linux, macOS | /opt/f0/achilles-agent |
--install copies the running binary there (unless it already runs from there)
and registers that copy as the service. The file you ran is left where it was and
can be deleted. The Defender ASR per-rule exclusion, the C:\F0 folder lock and
the EDR guides all name these paths
(Endpoint Prerequisites).
Windows
Use the Windows command from Agents → Enrollment in an elevated PowerShell.
Before it downloads the agent to C:\F0\achilles-agent.exe, it refuses a
C:\F0 that a non-administrator created and locks the folder to SYSTEM and
Administrators (why).
Don't replace it with a plain New-Item -Force and Invoke-WebRequest: that
would accept a folder another user owns. Then it runs:
& 'C:\F0\achilles-agent.exe' --enroll <token> --server https://backend.example.com --install
The agent installs as a Windows Service (SCM) running as SYSTEM.
Linux
sudo mkdir -p /opt/f0
sudo curl -fSL "https://backend.example.com/api/agent/download?os=linux&arch=amd64" -o /opt/f0/achilles-agent
sudo chmod 700 /opt/f0/achilles-agent
sudo /opt/f0/achilles-agent --enroll <token> --server https://backend.example.com --install
The agent installs as a systemd service.
macOS
Same as Linux, with os=darwin and arch=arm64 (Apple Silicon) or arch=amd64
(Intel). The agent installs as a launchd plist at /Library/LaunchDaemons/.
Agent installed in another folder
Agents installed with an older enrollment command can run from the folder the
command was pasted in (on Windows often C:\Windows\System32). The agent logs a
WARNING: the agent is running from … line at startup when that happens; it
never moves itself. Run the binary the service uses with --install as
Administrator or root (agents later than 0.7.1; keeps the enrollment), or
re-run the current enrollment command (any version; enrolls the endpoint again).
See Agent outside C:\F0.
Agent Diagnostics
./achilles-agent --status
Shows service state, connection health, configuration validation, and last heartbeat timestamp.
To remove an agent, see Remote Uninstall.