Install

Get loot

One command. The installer detects your platform, downloads the release archive from dl.loot.build, unpacks it to ~/.loot/bin, and puts it on your PATH.

This is a public alpha: the tool will change, your work is not at risk.

  • Your repo opens in every later loot. Every stored artifact carries a version that is checked on read, so an older loot refuses a newer repo rather than misreading it. The one direction that breaks is backwards — don't run an older loot against a repo a newer one has written.
  • Commands and printed output will change without notice. Verbs, flags and human-readable text are all in flux. Where a verb offers --porcelain or --json — its line in loot --help says so — that output is a versioned contract: column order and status characters change only when the contract number changes, and every --json response carries that number. Parse by position; the values inside a column can gain entries without a bump.
  • What you push to forge.loot.build is kept. Nothing leaves your machine unless you ask. We don't reset hosted data, and we delete it only when you burn it, when it breaks the acceptable-use policy, or when the law requires it. The forge's records are backed up daily and kept for seven days, so we can restore to any of the last seven daily backups. Your files are stored on Cloudflare R2, and the copy on your own machine is the second copy, so keep it. The forge holds your sealed files as ciphertext it can't read, so no backup can recover a lost key: keep your 24 words.

Alpha builds will be numbered v0.5.0-alpha.N from the day the alpha opens. loot --version prints the one you have; quote it in any bug report.

curl -sSf https://loot.build/install.sh | sh

Then open a fresh shell and run loot --version; it prints loot 0.4.48. Updating is running the installer again, and uninstalling is three paths to remove.

Before you put anything you care about in a loot repo, read known issues — the ways loot can currently lose or strand work, written from our own testing, with a last-reviewed date on it.

From a script or an agent

Both commands run unattended: neither prompts, and both work with stdin closed.

# macOS and Linux
curl -sSf https://loot.build/install.sh | sh
# Windows (x64, and ARM64 under emulation)
powershell -ExecutionPolicy Bypass -c "irm https://loot.build/install.ps1 | iex"
  • Call the binary by its path. Once the binary is in place the installer prints one line, LOOT_BIN=<absolute path>. The PATH change reaches shells started afterwards; a process that was already running, such as an agent's host or a CI step, never sees it, so run that path.
  • LOOT_CLI_NO_MODIFY_PATH=1 leaves PATH alone: no shell profile line, and no user registry write on Windows.
  • LOOT_CLI_INSTALL_DIR=<dir> puts the binary directly in <dir> instead of ~/.loot/bin, and puts that directory on PATH.
  • LOOT_CLI_UNMANAGED_INSTALL=<dir> puts the binary directly in <dir> and writes nothing else: no PATH change and no install receipt.
  • The PowerShell installer needs an execution policy that lets it load the module it unpacks with. Under any other, Windows 11's default included, it runs itself in a child PowerShell with -ExecutionPolicy Bypass, which changes no setting.

A particular release

Name the release in LOOT_VERSION, to reproduce a bug on the version that had it or to test an upgrade from it. Everything above holds for it too.

# macOS and Linux
curl -sSf https://loot.build/install.sh | LOOT_VERSION=0.4.43 sh
# Windows
powershell -ExecutionPolicy Bypass -c "$env:LOOT_VERSION='0.4.43'; irm https://loot.build/install.ps1 | iex"

The URL is the same one as above — the version rides in the environment, not the address, so Windows Defender doesn't misread the one-liner as a threat. A version no release has answers 404. The installers under dl.loot.build/v<version>/ are not the way: they download from a host that does not serve them.

Update

Run the install command again. It installs the current release over the one you have and leaves every repo alone.

  • What is current: https://dl.loot.build/latest.json names the newest release in version, and in platforms the release each platform's installer resolves to. loot --version --json prints the one you have.
  • From loot itself (releases after 0.4.39): loot update --check --json compares the two and prints update_available with the command to run; loot update runs it.

Uninstall

The installer writes the binary directory, one receipt, and one line in each shell profile it finds (the user PATH on Windows). Removing those removes loot.

# macOS and Linux
rm -rf ~/.loot/bin ~/.config/loot-cli ~/.config/fish/conf.d/loot-cli.env.fish
for f in ~/.profile ~/.bashrc ~/.bash_profile ~/.bash_login ~/.zshrc ~/.zshenv; do
  if [ -f "$f" ]; then sed -i.loot-bak '/\.loot\/bin\/env"$/d' "$f" && rm -f "$f.loot-bak"; fi
done
# Windows
Remove-Item -Recurse -Force "$HOME\.loot\bin", "$env:LOCALAPPDATA\loot-cli" -ErrorAction SilentlyContinue
$key = (Get-Item 'HKCU:\').OpenSubKey('Environment', $true)
$kept = ($key.GetValue('Path', '', 'DoNotExpandEnvironmentNames') -split ';' | Where-Object { $_ -and $_ -notmatch '\\\.loot\\bin\\?$' }) -join ';'
$key.SetValue('Path', $kept, 'ExpandString')

Neither touches a repo's .loot/ directory, which holds its history and keys, or ~/.config/loot, which holds this machine's settings and sign-in. An install made with LOOT_CLI_INSTALL_DIR or LOOT_CLI_UNMANAGED_INSTALL has its binary in that directory instead of ~/.loot/bin.

All platforms

Prebuilt binaries, served from dl.loot.build. Download and unpack manually if you'd rather not pipe a script.

PlatformVersionDownload
macOS (Apple Silicon)0.4.48loot-cli-aarch64-apple-darwin.tar.xz (direct)
macOS (Intel)0.4.48loot-cli-x86_64-apple-darwin.tar.xz (direct)
Windows (x64, and ARM64 under emulation)0.4.48loot-cli-x86_64-pc-windows-msvc.zip (direct)
Linux (x64, gnu)0.4.48loot-cli-x86_64-unknown-linux-gnu.tar.xz (direct)
Linux (ARM64, gnu)0.4.48loot-cli-aarch64-unknown-linux-gnu.tar.xz (direct)

Verify your download

Every release publishes a unified sha256.sum beside the archives. Hash what you downloaded, compare it against that file. This is an integrity check, not a provenance one — the difference is spelled out below, and it is the whole of what loot offers.

Checksum

Hash the archive and compare it against the published sum.

# Windows (PowerShell)
Get-FileHash .\loot-cli-x86_64-pc-windows-msvc.zip -Algorithm SHA256
# Linux
shasum -a 256 loot-cli-x86_64-unknown-linux-gnu.tar.xz

# ...then confirm the hash is the line for that file in:
curl -sSfL https://dl.loot.build/v0.4.48/sha256.sum
# macOS
shasum -a 256 loot-cli-aarch64-apple-darwin.tar.xz

# ...then confirm the hash is the line for that file in:
curl -sSfL https://dl.loot.build/v0.4.48/sha256.sum

The hashes in sha256.sum are lowercase; Get-FileHash prints uppercase. Compare case-insensitively. Each archive also has its own .sha256 file alongside it, if you'd rather fetch one line than the whole set.

What the checksum proves — and what it does not

A matching hash proves the bytes on your disk are the bytes this release published, intact and unmodified in transit. That is worth checking and it is a real guarantee.

It does not prove who built them. The archive and sha256.sum ship from the same place, so anyone able to substitute one could substitute the other. A checksum is a statement about bytes, not about origin.

There is no provenance check to run, and that is a decision, not a gap. GitHub Artifact Attestations — the usual answer — are unavailable on user-owned private repositories, and loot builds in one. That is a settled choice, not a temporary state, so attestations are not pending: they are out, and SHA-256 is the integrity story on purpose. An earlier version of this page documented a gh attestation verify command. It could never have succeeded here, and it has been removed rather than left to fail.

Where the bytes actually come from. Both halves of the one-liner are served by infrastructure this project controls, and neither is GitHub. loot.build serves the install script: the release's own cargo-dist installer, re-served with its download list rewritten.

That list has three entries, tried in order. First loot.build/dl/…, which counts the download and immediately redirects to dl.loot.build — it is how we know whether anyone installs loot at all, since nothing else in the chain can tell us. It records the release, the platform and the time; it does not record who you are. Then dl.loot.build itself — Cloudflare R2, where release CI mirrors every asset, and where the bytes come from either way. Then the private GitHub Release, which only a credentialed fetch can use.

⚠ The order is also the fallback: a failed entry costs one request and the next is tried. If the counting hop is down you get the archive straight from dl.loot.build and nothing about the install changes. Privacy describes what the count records.

The one-liner is protected by TLS and nothing else — neither installer carries an embedded checksum, by design, which is how uv and the other cargo-dist tools ship. TLS covers the transport; nothing in the automated path speaks to who built the bytes. For defense in depth, download manually from the table above and run the checksum.

Build from source

You cannot, and that is deliberate. loot's source repository is private permanently (ADR 0045) — the world reads loot through loot, not through a host's permission bit — so there is no cargo install route and no source archive to fetch. loot ships as the prebuilt, checksummed binaries above, and the hosted one-liner at the top of this page is the supported path.

If cargo install loot is what brought you here: the loot and loot-forge crates on crates.io are ours, and they are signposts back to this page rather than a route — both are lib-only, so they install nothing and cannot shadow a real install. ⚠ The crate published as loot-cli is a different project entirely: unrelated to loot, and unrelated to the loot-cli-* archives listed above.

What that costs you is real: you are trusting bytes you did not compile. The counterweight is on this page rather than in a promise — every archive is listed with its SHA-256 in the all-platforms table, so a manual download can be verified before it runs, and Evidence carries the run output behind each claim loot makes about itself.

Troubleshooting

  • loot not found after install — the installer prepends ~/.loot/bin to your PATH (via the user registry on Windows). Open a fresh shell so the change is picked up.
  • Confirm the version — loot --version prints the binary's self-reported version; a versioned release and the binary can't drift.
  • Manual install — grab the archive for your platform from the all-platforms table above, unpack it, and put the loot binary anywhere on your PATH. Those links go through loot.build/dl/…, which counts the download — the release, the platform and the time, not who you are — and sends you on to dl.loot.build, which serves anonymously. The direct link beside each one skips the count and goes straight there. The GitHub releases page serves neither.