Quickstart
Your first block, the first time you run install
Three commands, about a minute. No account, no server, no registry repoint.
-
01
Install the CLI
curl -fsSL https://chain305.com/install.sh | bashOne binary in
~/.local/bin, no sudo. Windows:irm https://chain305.com/install.ps1 | iex -
02
Turn on the guard
chainsaw guard init --installThe installer already did this for you, on macOS, Linux and Windows (it prints a
Guard:line); run it only if that line says it was skipped. Hooks npm, pip, cargo, gem and go in your shell rc. Current shell only:eval "$(chainsaw guard init zsh)" -
03
Watch it block
npm install crossenvA typosquat of
cross-env. Works with the network off.
What you'll see · real output
chainsaw ✗ blocked npm:crossenv — looks like a typosquat of "cross-env" (distance 1, edit-distance, target rank #1931)
chainsaw ✗ refused at the install path — nothing was installed
Also try:
pip install python3-dateutil · cargo add rustdecimal · gem install rest-clientt · go get github.com/sirupsen/logruss
First run asks once before sharing anonymous usage (defaults to yes, never from CI).
Change it with chainsaw telemetry on|off. Privacy policy
Scale this to a team
How do you enforce the same block for a whole team?
Run Chainsaw as a proxy in front of your registries: shared policy, an audit trail, and blocks that hold on machines without the CLI.
-
01
Sign up
Free tier, no credit card.
Start free → -
02
Create a client credential
Access → Client credentials. The secret is shown once.
Open client credentials → -
03
Point npm at Chainsaw
npm config set registry https://chain305.com/chainproxy/repository/@default/npmjs/ npm config set //chain305.com/chainproxy/repository/@default/npmjs/:_authToken "CLIENT_ID:CLIENT_SECRET"pip or Docker instead
pip / PyPI
pip config set global.index-url https://chain305.com/chainproxy/repository/@default/pypi/simpleThen add the credential to ~/.netrc in an editor. pip reads it on its own when the URL carries no credentials:
machine chain305.com login CLIENT_ID password CLIENT_SECRETRun chmod 600 ~/.netrc so only you can read it. The secret stays out of the URL and pip.conf.
Or embed the credential in the index URL. It works, but the secret then sits in pip.conf and can end up in shell history and logs:
pip config set global.index-url https://CLIENT_ID:CLIENT_SECRET@chain305.com/chainproxy/repository/@default/pypi/simpleDocker
docker login chain305.comUsername: your CLIENT_ID. Password: your CLIENT_SECRET.
-
04
Run the demo install
npm install lodahsRefused by the seeded demo policy.
Next: see the block in your dashboard · 17 package managers · book a 30-minute walkthrough
Questions
How do I block typosquatted npm packages on my laptop?
Install the free Chainsaw CLI and turn on its guard, and npm refuses a typosquatted package before
any file downloads. The guard is a shell hook for npm, pip, cargo, gem and go, with no daemon. On
macOS or Linux, run curl -fsSL https://chain305.com/install.sh | bash, and on Windows,
run irm https://chain305.com/install.ps1 | iex in PowerShell. The installer puts one
binary in ~/.local/bin without sudo and runs chainsaw guard init --install
for you. No account, server or registry change is needed. A typo such as npm install crossenv
stops with a message naming cross-env as the likely target at edit distance 1, and nothing is
installed. The check uses known-malicious and typosquat seeds embedded in the binary, so the block
works with the network off. Run chainsaw guard update to pull the full public OpenSSF
malicious-packages feed, still with no account. To skip the shell hook, run one install at a time
with chainsaw npm install followed by the package name.
Does the Chainsaw guard send my install data anywhere?
Clean installs never leave your machine: the Chainsaw guard is a local check, and every block is
recorded on the same machine. The first time the guard runs, a prompt asks once whether to share
anonymous usage and blocked-package data to improve detection. The prompt defaults to yes, any developer can decline. In CI and other non-interactive runs the guard sends nothing unless someone
has run chainsaw telemetry on. The installer itself sends one anonymous install count (OS
and architecture only) unless DO_NOT_TRACK=1 is set in the shell that runs it. Change the choice at any time with
chainsaw telemetry on or chainsaw telemetry off, and read the details in the
Chainsaw privacy policy. Blocked-package checks use seeds shipped
inside the binary, so a typosquat such as crossenv is refused with no network call. Signing in is
optional. A signed-in machine with telemetry on shows its blocks on the team dashboard next to proxy
and CI activity, and can share one policy through the registry proxy. Without an account, the guard
keeps working offline for npm, pip, cargo, gem and go.
When do I need the Chainsaw proxy instead of the free guard?
Use the Chainsaw proxy when one policy has to hold on every machine, including machines that never
ran the CLI. The free guard covers 5 package managers (npm, pip, cargo, gem and go) on the one
machine where a developer installed the guard. The registry proxy covers 17 ecosystems: the five
above plus Maven, Composer, NuGet, Hugging Face, CocoaPods, Swift, pub, Docker, APT, Yum, DNF and
Homebrew.
Setup takes four steps. First, sign up on the Free tier. Second, create a client credential under
Access. Third, point the package manager at the proxy URL. Finally, run a demo install such as
npm install lodahs, which the seeded demo policy refuses. The hosted Free tier covers
3 seats, 500 MB of storage and 1 GB of bandwidth. Team costs $25 per seat per month and adds SSO,
SCIM, central policy and the Billy approval queue. Enterprise starts at $36,000 a year.