> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install

> Install proving on macOS or Linux, pin a version for CI, install with no network, and what to do if the binary does not start.

proving is one executable for macOS (Apple silicon and Intel) and Linux (x64 and arm64). Windows is not supported yet.

## The install script

```sh theme={null}
curl -fsSL https://releases.hex65.com/install.sh | sh
```

What it does, in order, and nothing else:

1. Reads the version to install: `PROVING_VERSION`, or else the newest of the channel (`PROVING_CHANNEL`: `stable`, the default, or `canary`), from a pointer whose signature it checks first.
2. Downloads the checksums for that version and checks their signature against the release key written in the script.
3. Downloads the binary for this machine and checks its SHA-256 against those checksums.
4. Runs the new binary's self-test (`--self-test`). If that fails, it checks and uses the fallback archive instead (below).
5. Moves it into place, `~/.local/bin` unless `PROVING_INSTALL_DIR` says otherwise.

It never uses `sudo`, never edits your shell's startup files (it prints a PATH hint instead), and contacts only the release host. Read it before you run it: each release's notes give the script's SHA-256.

### Verify the script before it runs

The script checks everything it downloads, but the script itself is not checked before it runs: it is only as trustworthy as the release host and your connection to it. To check it first, take it from the release's own directory, whose `SHA256SUMS` is signed with the release key:

```sh theme={null}
V=0.1.0
curl -fsSLO https://releases.hex65.com/v$V/install.sh
curl -fsSLO https://releases.hex65.com/v$V/SHA256SUMS
curl -fsSLO https://releases.hex65.com/v$V/SHA256SUMS.sig
echo 'release namespaces="proving-release" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH0NLtncnK9Mj8s0/hbD08UgQZqA+EwW1qUtIKkQOk7F' > allowed_signers
ssh-keygen -Y verify -f allowed_signers -I release -n proving-release -s SHA256SUMS.sig < SHA256SUMS
grep ' install.sh$' SHA256SUMS | shasum -a 256 -c -
sh install.sh
```

For a canary version, the key is `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOGnseXgnQWCR2m3Li2alsbECxWj/bAlLXzd7zVifh0B`.

A Homebrew formula comes with the first public release (coming, M1).

## Check the installation

```sh theme={null}
proving --version
```

The self-test checks that this binary can run here: its bundled files are intact, its cryptography works, and it can listen on loopback.

```sh theme={null}
proving --self-test
```

A fuller self-test measures known truths on this machine: it runs the product's own laps, grading, statistics, recording, evidence and containment on built-in agents whose behavior is known, and compares what it measures with the truth. Every check also runs a control, an input it must reject, so a check that could not fail does not pass. It needs no sign-in, network or provider key, and it works in a folder of its own that it removes at the end:

```sh theme={null}
proving self-test
```

`--full` adds the checks that take longer, and `--json` prints the report in the [self-test report format](https://docs.hex65.com/reference/formats/selftest.md).

## Pin a version for CI

Set the version, so every job installs the same binary:

```sh theme={null}
curl -fsSL https://releases.hex65.com/install.sh | PROVING_VERSION=0.1.0 sh
```

See [Laps in CI](https://docs.hex65.com/guides/ci.md) for the rest of a CI job.

## A machine with no network

Download the binary (`.gz`) or the fallback archive (`.tar.gz`) on another machine, with its `SHA256SUMS` and `SHA256SUMS.sig`, copy them over, and install from the file:

```sh theme={null}
sh install.sh --from proving-0.1.0-linux-x64.gz
```

With `--sha256 <hex>` it checks the file against that hash instead of the signed checksums.

## Fallback

If the binary does not start on this machine (its self-test fails, or the operating system refuses it), use the fallback archive: the same program as a Node.js runtime, the bundle and a launcher. The install script switches to it on its own when the self-test fails. To install it by hand, download `proving-<version>-<platform>.tar.gz` with the checksums, and install it from the file as above. The archive is checked the same way as the binary.

## Update

```sh theme={null}
proving update
```

`update` checks the new version's signature and checksum before it replaces the binary. Set `PROVING_NO_UPDATE_CHECK=1` to stop the daily notice of a newer version.

## Remove

Delete the binary, then your data if you want it gone too: `~/.local/share/proving` (recordings, runs, twins, keys) and `~/.config/proving`. The project directory in your repository is yours.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.