CLI
Install the Chainsaw CLI
Free and open source, no account required. One static binary per platform, each with a published SHA-256 checksum.
Pick your platform
Choose your platform below
We couldn't detect your OS. Every binary is listed below.
Which platforms does the Chainsaw CLI support?
The Chainsaw CLI ships as one free, open-source static binary for each of the five platforms below, with no account needed.
| OS | Architecture | Filename | Download |
|---|---|---|---|
| macOS | Apple Silicon (M-series) | chainsaw-darwin-arm64 | Download |
| macOS | Intel (x86_64) | chainsaw-darwin-amd64 | Download |
| Linux | x86_64 | chainsaw-linux-amd64 | Download |
| Linux | ARM64 (aarch64) | chainsaw-linux-arm64 | Download |
| Windows | x86_64 | chainsaw-windows-amd64.exe | Download |
How do you install the Chainsaw CLI from a terminal?
On macOS or Linux, one curl command downloads the binary for your OS and
architecture, makes it executable and moves it to /usr/local/bin. On Windows,
PowerShell's irm downloads chainsaw.exe. Both end with
chainsaw version to confirm the install.
F=chainsaw-$(uname -s | tr "A-Z" "a-z")-$(uname -m | sed "s/x86_64/amd64/;s/aarch64/arm64/")
curl -fsSLO https://chain305.com/downloads/$F
curl -fsSL https://chain305.com/downloads/chainsaw-checksums.txt | grep " $F$" | shasum -a 256 -c - && chmod +x $F && sudo mv $F /usr/local/bin/chainsaw
chainsaw version irm https://chain305.com/downloads/chainsaw-windows-amd64.exe -OutFile chainsaw.exe
.\chainsaw.exe version Verify checksums
Download the checksum manifest into the folder that holds the binary and verify it before installing. Run the check before renaming the file, because the manifest matches the original filename. A match prints OK next to the filename:
curl -fsSL https://chain305.com/downloads/chainsaw-checksums.txt -o chainsaw-checksums.txt
shasum -a 256 -c chainsaw-checksums.txt --ignore-missing
On Windows, run Get-FileHash -Algorithm SHA256 in PowerShell on the downloaded file
and compare the hash with the manifest line. Both install scripts run the same check and stop on a
mismatch, so a truncated download never runs.
Full manifest: /downloads/chainsaw-checksums.txt
(mirror: /downloads/checksums.txt, in case one
name is briefly missing during a deploy)
Questions
What does the Chainsaw install script do on macOS, Linux and Windows?
The Chainsaw install script is a one-line installer that downloads one binary, checks its SHA-256
checksum and turns on the install guard. On macOS or Linux, run
curl -fsSL https://chain305.com/install.sh | bash in a terminal. On Windows, run
irm https://chain305.com/install.ps1 | iex using PowerShell. First, the script detects the
CPU architecture, amd64 or arm64, and fetches the matching binary from Chainsaw's downloads folder.
A checksum mismatch stops the install. On macOS and Linux the binary lands in
~/.local/bin without sudo. On Windows the binary lands in
%LOCALAPPDATA%\chainsaw\bin with no admin rights. Finally, the script adds that folder
to PATH and runs chainsaw guard init --install, which hooks npm, pip, cargo, gem and go.
To get the binary without the guard, set CHAINSAW_NO_GUARD=1 before the
install. On macOS or Linux, pass --version with a release tag to pin an older release
instead of the latest one.
Does the Chainsaw CLI need an account?
No, the Chainsaw CLI is a free local tool that runs with no account, no sign-up and no server. The
install guard checks npm, pip, cargo, gem and go installs on the local machine against
known-malicious and typosquat seeds embedded in the binary, so blocks work with the network off.
Running chainsaw guard update pulls the full public OpenSSF malicious-packages feed,
still without signing in. For example, npm install crossenv stops at the shell with a
message naming cross-env as the likely target, and nothing installs. An account adds team features on
top of the local guard. Running chainsaw auth login signs in through the browser and
keeps the token in the OS keyring. A signed-in machine can share one policy with a team through the
registry proxy. With telemetry on, the blocks on that machine also show on the team dashboard.
Finally, the hosted Free tier covers 3 people, and Team costs $25 per seat per month.
How do you verify a Chainsaw CLI download?
Verifying a Chainsaw CLI download is a two-step SHA-256 check against the checksum manifest that Chainsaw publishes next to the binaries. The commands are under Verify checksums above.
Already installed?
How do you sign in to the Chainsaw CLI?
chainsaw auth login signs you in through the browser and keeps the token
in your OS keyring. The local guard needs no account; sign in only to share one policy
across a team.