Install orc

orc runs on macOS (Apple silicon) and Linux (x86_64 and arm64). One line installs it, or do it by hand.

The commands here take your access key. Open your key page in this browser and they show it.

Have an invite? · Already have a key? Open your key page

How the script works

Install orc with your key:
curl -fsSL https://orc.sieversii.ca/install.sh | sh -s -- --key <your key>

It downloads the release for your platform with its checksum file and signature, checks the signature against orc's release keys and the archive against the checksum, then installs orc to ~/.local/bin. No sudo. If a check fails, nothing is installed. Then it adds your key, as orc access add would.

Read the script first

Installing by hand

macOS

Linux

To check the download first, see Verify a download. Then, in the folder you saved it to:

  1. Unpack it: the tarball holds only the orc binary.

    macOS (Apple silicon):

    Unpack, macOS (Apple silicon):
    tar -xzf orc-0.9.3-aarch64-apple-darwin.tar.gz

    Linux (x86-64):

    Unpack, Linux (x86-64):
    tar -xzf orc-0.9.3-x86_64-unknown-linux-gnu.tar.gz

    Linux (arm64):

    Unpack, Linux (arm64):
    tar -xzf orc-0.9.3-aarch64-unknown-linux-gnu.tar.gz
  2. Put it in ~/.local/bin, where the script and orc update keep it, or anywhere on your PATH:

    Install orc in ~/.local/bin:
    mkdir -p ~/.local/bin && install -m 755 orc ~/.local/bin/orc
  3. On macOS, a browser's download is quarantined, and Gatekeeper may refuse to open orc. If it does, clear the quarantine:

    Clear the quarantine:
    xattr -d com.apple.quarantine ~/.local/bin/orc
  4. Add your key. Then orc --version prints the version you installed.

    Add your key:
    orc access add <your key>

Verify a download

The install script does all of this for you. To check a download yourself, you need ssh-keygen from OpenSSH 8.1 or newer (stock on macOS and common Linux) and, to check the checksum, shasum on macOS or sha256sum on Linux.

1. Save the release keys

Save these lines as allowed_signers. They are the same keys the install script carries.

allowed_signers:
orc-release namespaces="orc-release" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFU/ODg0J+LstSzNDO8EQGwIJwAwX9P2mpe0tbI1B4wu software-1
orc-release namespaces="orc-release" sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBOOiEywnb4pUGjcQoRa5U4oPxQV6CaMgetstDmyWtzq/uf3Ij3e737zNPHOPEGC72R3vcchdpQ2h7OYq9UMCV6UAAAAPc3NoOm9yYy1yZWxlYXNl physical-1

Their fingerprints, to compare with what ssh-keygen -lf prints:

  • SHA256:udJMX4Jd0m8P7V0I0OWqU8J6X4IBtCUGoyL1LpraxOk (ssh-ed25519 , software-1)
  • SHA256:5amybWLV7wGfF9gvSxZOMZuRD+vGxuWqYMKGt1zdUeI (sk-ecdsa-sha2-nistp256@openssh.com , physical-1)

2. Check macOS (Apple silicon)

Download the tarball, its checksum file and the signature, then check them in order:

macOS (Apple silicon) step:
curl -fLO https://dl.sieversii.ca/orc/0.9.3/orc-0.9.3-aarch64-apple-darwin.tar.gz -O https://dl.sieversii.ca/orc/0.9.3/SHA256SUMS-aarch64-apple-darwin -O https://dl.sieversii.ca/orc/0.9.3/SHA256SUMS-aarch64-apple-darwin.sig
macOS (Apple silicon) step:
ssh-keygen -Y verify -f allowed_signers -I orc-release -n orc-release -s SHA256SUMS-aarch64-apple-darwin.sig < SHA256SUMS-aarch64-apple-darwin
macOS (Apple silicon) step:
shasum -a 256 -c --ignore-missing SHA256SUMS-aarch64-apple-darwin

2. Check Linux (x86-64)

Download the tarball, its checksum file and the signature, then check them in order:

Linux (x86-64) step:
curl -fLO https://dl.sieversii.ca/orc/0.9.3/orc-0.9.3-x86_64-unknown-linux-gnu.tar.gz -O https://dl.sieversii.ca/orc/0.9.3/SHA256SUMS-x86_64-unknown-linux-gnu -O https://dl.sieversii.ca/orc/0.9.3/SHA256SUMS-x86_64-unknown-linux-gnu.sig
Linux (x86-64) step:
ssh-keygen -Y verify -f allowed_signers -I orc-release -n orc-release -s SHA256SUMS-x86_64-unknown-linux-gnu.sig < SHA256SUMS-x86_64-unknown-linux-gnu
Linux (x86-64) step:
sha256sum -c --ignore-missing SHA256SUMS-x86_64-unknown-linux-gnu

2. Check Linux (arm64)

Download the tarball, its checksum file and the signature, then check them in order:

Linux (arm64) step:
curl -fLO https://dl.sieversii.ca/orc/0.9.3/orc-0.9.3-aarch64-unknown-linux-gnu.tar.gz -O https://dl.sieversii.ca/orc/0.9.3/SHA256SUMS-aarch64-unknown-linux-gnu -O https://dl.sieversii.ca/orc/0.9.3/SHA256SUMS-aarch64-unknown-linux-gnu.sig
Linux (arm64) step:
ssh-keygen -Y verify -f allowed_signers -I orc-release -n orc-release -s SHA256SUMS-aarch64-unknown-linux-gnu.sig < SHA256SUMS-aarch64-unknown-linux-gnu
Linux (arm64) step:
sha256sum -c --ignore-missing SHA256SUMS-aarch64-unknown-linux-gnu

What each step tells you

  • ssh-keygen -Y verify must print Good "orc-release" signature: the checksum file was signed by one of the keys above.
  • The checksum check must print OK for the tarball: the archive is exactly the one that was signed. If either is missing, stop: do not install that download.
  • If a release has no build for a platform yet, its checksum file does not exist (the download fails with a 404).

Keys change only in a reviewed update to this site; a release's own allowed_signers lists the keys trusted at that release, and orc follows key rotations itself when it updates.

Add your key

Add your key:
orc access add <your key>

orc checks it on your machine, never calling home, and keeps it in ~/.config/orc/access-key, readable by you only. orc access shows it.

Update and uninstall

Update orc:
orc update

It checks each newer release against the keys your orc already trusts, oldest first, shows what it verified and asks before it replaces the binary.

To uninstall, first run orc hooks uninstall in each project where you installed orc's hooks. Then remove the binary, and orc's config (with your key) and state (its logs):

Uninstall orc:
rm ~/.local/bin/orc && rm -rf ~/.config/orc ~/.local/state/orc

Each project keeps its .__orc/ and .worktrees/ until you remove them.