Skip to main content

What this is for

Linux ships as native packages: guardway-agent_<version>-1_amd64.deb and _arm64.deb for Debian and Ubuntu, guardway-agent-<version>-1.x86_64.rpm and .aarch64.rpm for RHEL, Rocky, Alma and Fedora. Installing the package is the whole install: the agent starts right away and at every sign-in, with no command to run. Download from https://api.guardway.ai/v1/downloads/gw-cli/v<version>/, for example v0.2.218. Each version folder has a SHA256SUMS file to check the packages against.

Supported distributions

Any distribution with glibc 2.34 or newer and OpenSSL 3: Ubuntu 22.04 and later, Debian 12 and later, RHEL, Rocky and Alma 9, and current Fedora. The tray icon needs a desktop (WebKitGTK 4.1, GTK 3, AppIndicator); those libraries are recommended, not required, so a server or a --no-install-recommends install gets the agent without a tray. RHEL 9 base repositories may lack WebKitGTK 4.1, so the agent installs there without the tray.

What the package installs

How to install

This installs the managed mode. To install observe instead, write the mode file first:
The file accepts managed, observe or off (files only, nothing started). Upgrades keep the machine’s mode unless the file says otherwise.
A failed activation never fails the package, for example in a container without systemd. The reason is in /var/log/guardway/package.log, and the next upgrade tries again.

After the install

Then enroll the machine.

Updating

Updates keep the machine’s mode, enrollment and data. There is no Guardway apt or dnf repository yet, so apt upgrade and dnf upgrade do not offer new versions.

Automatic updates

Set Update mode to Auto-install in the policy’s Agent updates. Enrolled machines then install the release the policy selects within 15 minutes, inside the maintenance window. A machine that is not enrolled does not update itself. To check a machine, run gw-cli update --check --refresh (with sudo on a managed install).

Update by hand

Set V to the version you want. The newest is the version field in https://api.guardway.ai/v1/downloads/gw-cli/latest/manifest.json. If sha256sum prints FAILED, do not install the file.

Update a fleet

  • Ansible: download the new package, check it against the release’s SHA256SUMS, set gw_version to it and run the install playbook again.
  • Puppet: use ensure => latest on the package resource.
  • Any tool that runs a script as root: use the script below. It installs the newest release, or the version you pass, checks it against SHA256SUMS, and skips machines that already have it.

Earlier archive installs

An earlier .tar.gz archive install updates with gw-cli upgrade, or sudo gw-cli upgrade for a copy in /usr/local/bin. To move the machine to the package, remove the archive install as described under Removing, then install the package and enroll the machine again.

Go back to an earlier version

If the policy is on Auto-install, also set Version strategy to Pin to a version, or the machine updates again.

Troubleshooting

Removing

Removal runs the same ordered teardown as gw-cli uninstall before the package manager deletes the files: it un-wires Claude Code, checks that from disk, stops the agent in every user’s session and returns any held skill. The package never deletes a user’s own ~/.guardway. If Claude Code cannot be verified as un-wired, the removal is refused. The package stays installed and running, and the machine keeps reporting. /var/log/guardway/package.log names the file to fix. Fix it, then remove the package again. The console credential is handed back, from agent 0.2.219, although apt remove and dnf remove keep the data. Every agent on the machine that holds one hands it back: the machine agent and each person’s own agent. Fleet then shows them as Uninstalled. An upgrade never does this. The removal waits at most 20 seconds for Guardway: with no network it goes ahead and the credential is not handed back. It is not handed back either when the agent has not run in the last hour, because the removal does not renew an expired access token. /var/log/guardway/package.log has one line per agent saying which happened. Agents up to 0.2.218 never hand it back on a package removal. After a reinstall, enroll again, also after apt remove. Removing and installing again is not an update: the handed-back credential is taken out of the kept configuration, so each of those agents runs but reports nothing until gw-cli enroll runs for it. Enroll the machine as you did the first time, and have each person who enrolled their own agent enroll it again, as that user. Each one comes back on its old Fleet record, with no console action, except in the cases listed under Reinstalling. An earlier archive install has no package. For a copy placed machine-wide in /usr/local/bin, run sudo gw-cli uninstall, which runs the same teardown and, from agent 0.2.217, also hands the credential back. Then delete the binaries:
If this machine has an earlier archive install in ~/.local/bin, run gw-cli uninstall as that user, without sudo. It removes its own gw-cli, skillspector and gw-tray from ~/.local/bin, last. See Uninstall & Recovery for what Fleet shows after each kind of removal.

Limits

  • Install the package. The .tar.gz archives are not a customer install path.
  • Packages older than 0.2.160 cannot update themselves; install a current package over them once.