Skip to content

Install

You need two things from your Aegis administrator:

  1. your organisation's Aegis address, such as https://acme.aegis.krathos.systems
  2. an API key, a line of text starting with aeg_

macOS and Linux

One command installs the aegis command and the Claude Code plugin:

curl -fsSL https://github.com/Krathos-systems/aegis-cli/releases/latest/download/install.sh | bash

It puts aegis in ~/.local/bin and the plugin in ~/.aegis/marketplace, and tells you if ~/.local/bin isn't on your PATH.

Running it again upgrades what's there. Once Aegis is installed, aegis update upgrades it and aegis uninstall removes it.

Windows

In PowerShell:

irm https://github.com/Krathos-systems/aegis-cli/releases/latest/download/install.ps1 | iex

It puts aegis.exe in %LOCALAPPDATA%\Programs\aegis and adds that folder to your PATH.

Install and log in together

Give the installer your Aegis address and API key, and it logs you in at the end:

curl -fsSL https://github.com/Krathos-systems/aegis-cli/releases/latest/download/install.sh \
  | AEGIS_SERVER=https://acme.aegis.krathos.systems AEGIS_KEY=aeg_... bash

You rarely need to type this yourself. Copy install command, next to a newly issued key in the admin UI or on the page that shows your key after you accept an invitation, gives you this line with everything filled in.

Logging in this way writes no rules yet. Afterwards, run aegis manage for your home-folder files and aegis init in each repository.

Options

Set these before bash in the install command:

Variable Effect
AEGIS_VERSION Install a particular release, such as v2.9.1, instead of the latest
AEGIS_REQUIRE_SIGNATURE Set to 1 to stop unless the release signature could be checked
AEGIS_INSTALL_DIR Where aegis goes. It has to be inside your home folder
AEGIS_MARKETPLACE_DIR Where the plugin goes. It has to be inside your home folder
NO_COLOR Plain output

Verifying a release

Every release has a SHA256SUMS file with the checksum of each download, and a signature of that file, SHA256SUMS.sig, made with the Krathos release key.

The installer always checks the checksums. It also checks the signature if OpenSSH 8.1 or newer is installed, and stops if the signature is wrong. Without OpenSSH 8.1, it says the signature wasn't checked and carries on. To make it stop instead:

curl -fsSL https://github.com/Krathos-systems/aegis-cli/releases/latest/download/install.sh | AEGIS_REQUIRE_SIGNATURE=1 bash

To check a release yourself, download SHA256SUMS and SHA256SUMS.sig from the release page, then run:

echo 'releases@krathos.systems namespaces="aegis-release" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIENlVJ9Px5EhhNAUXetQcz8SG4odZt6RNURZovpJkPV0 Aegis release signing' > allowed_signers
ssh-keygen -Y verify -f allowed_signers -I releases@krathos.systems \
  -n aegis-release -s SHA256SUMS.sig < SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS

On macOS, replace the last line with shasum -a 256 --check --ignore-missing SHA256SUMS.

The release key is:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIENlVJ9Px5EhhNAUXetQcz8SG4odZt6RNURZovpJkPV0 Aegis release signing

Next

Log in.