Install rzb on macOS
razorbill runs on macOS 14 or later, on Apple Silicon (M1 or newer) only: it runs its models on the GPU with MLX.
With the install script
curl -fsSL https://rickub.com/bots-garden/razorbill/raw/main/install-rzb.sh | bash
rzb version
The script installs the latest release: it downloads the archive and its SHA256SUMS, checks the checksum, checks that rzb and its bundles are signed by the bots-garden Developer ID (Team ID SNLLBZP9V9), runs the downloaded rzb --version, then puts the folder in /usr/local/lib/razorbill and the launcher in /usr/local/bin/rzb. It asks for your password (sudo) only when /usr/local is not writable. Run it again to upgrade.
Options go after bash -s --:
curl -fsSL https://rickub.com/bots-garden/razorbill/raw/main/install-rzb.sh | bash -s -- --version 1.0.0
curl -fsSL https://rickub.com/bots-garden/razorbill/raw/main/install-rzb.sh | bash -s -- --prefix ~/.local # no sudo
curl -fsSL https://rickub.com/bots-garden/razorbill/raw/main/install-rzb.sh | bash -s -- --dry-run # check only
curl -fsSL https://rickub.com/bots-garden/razorbill/raw/main/install-rzb.sh | bash -s -- --uninstall
--no-verify skips the signature check (for the archives before 1.0.0, which are not signed). To read the script before running it: curl -fsSLO https://rickub.com/bots-garden/razorbill/raw/main/install-rzb.sh, read install-rzb.sh, then bash install-rzb.sh.
By hand
VERSION=1.0.0
curl -fsSLO "https://rickub.com/bots-garden/razorbill/releases/download/v${VERSION}/razorbill-${VERSION}-macos-arm64.tar.gz"
tar -xzf razorbill-${VERSION}-macos-arm64.tar.gz
sudo mkdir -p /usr/local/lib /usr/local/bin
sudo rm -rf /usr/local/lib/razorbill
sudo mv razorbill-${VERSION}-macos-arm64 /usr/local/lib/razorbill
printf '#!/bin/sh\n# razorbill launcher (scripts/install.sh)\nexec "/usr/local/lib/razorbill/rzb" "$@"\n' | sudo tee /usr/local/bin/rzb >/dev/null
sudo chmod 755 /usr/local/bin/rzb
rzb version
Why a folder and a launcher
The archive holds a folder, not a lone binary: rzb and the resource bundles it loads at run time from its own folder (mlx-swift_Cmlx.bundle is the MLX Metal library; without it no model loads). So the folder goes to /usr/local/lib/razorbill as a whole, and /usr/local/bin/rzb is a two-line script that runs rzb from there. Copying rzb alone into /usr/local/bin does not work.
The launcher is the same as the one install-rzb.sh and scripts/install.sh (from the sources) write, with the same marker line: each of them recognises and replaces the others' install, and none overwrites an rzb it did not write.
Checking the download first
From 1.0.0, rzb is signed with a Developer ID and notarized by Apple, and its bundles are signed too. You can check the download and who signed it before you install it:
VERSION=1.0.0
curl -fsSLO "https://rickub.com/bots-garden/razorbill/releases/download/v${VERSION}/razorbill-${VERSION}-macos-arm64.tar.gz"
# the checksum published with the release
curl -fsSLO "https://rickub.com/bots-garden/razorbill/releases/download/v${VERSION}/SHA256SUMS"
shasum -a 256 -c SHA256SUMS
tar -xzf razorbill-${VERSION}-macos-arm64.tar.gz
cd razorbill-${VERSION}-macos-arm64
# the signature: valid, and made by the bots-garden Developer ID
codesign --verify --strict --verbose=2 ./rzb
codesign -dv --verbose=4 ./rzb 2>&1 | grep -E "^Identifier|^Authority=Developer ID Application|^TeamIdentifier"
for bundle in *.bundle; do codesign --verify --strict "$bundle" && echo "$bundle: sealed"; done
./rzb --version
cd ..
Then install the folder as in By hand (from sudo mkdir on).
The signature check should print:
./rzb: valid on disk
./rzb: satisfies its Designated Requirement
Identifier=com.bots-garden.rzb
Authority=Developer ID Application: Philippe Charriere (SNLLBZP9V9)
TeamIdentifier=SNLLBZP9V9
Downloaded with a browser instead of curl, the archive carries the quarantine attribute, and so may the unpacked files: macOS checks the notarization online the first time rzb runs (that first run needs the network), then runs it without asking. There is no need for xattr.
Without sudo
Any folder you own works. For example, in your home folder:
mkdir -p ~/.local/lib ~/.local/bin
rm -rf ~/.local/lib/razorbill
mv razorbill-${VERSION}-macos-arm64 ~/.local/lib/razorbill
printf '#!/bin/sh\n# razorbill launcher (scripts/install.sh)\nexec "%s/rzb" "$@"\n' "$HOME/.local/lib/razorbill" > ~/.local/bin/rzb
chmod 755 ~/.local/bin/rzb
~/.local/bin must then be on your PATH (add export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc).
Upgrading and uninstalling
- Upgrade: run the install script again (or the commands of By hand with the new
VERSION). It replaces the whole folder, so no bundle of the old version stays behind. Your models (~/.cache/huggingface) and settings (~/.config/razorbill) are not touched. - Uninstall:
install-rzb.sh --uninstall(see above), orsudo rm -rf /usr/local/lib/razorbill /usr/local/bin/rzb. The models stay in the Hugging Face cache: remove them first withrzb models rm <model>if you want the disk space back.
Next
rzb models pull mlx-community/Qwen3-0.6B-4bit
rzb serve
Then follow Getting started.
Archives before 1.0.0 (not signed)
The 0.2.0 and 0.3.0 archives only had the ad hoc signature the linker gives every Apple Silicon binary. A copy that macOS had put in quarantine (a browser download, for example) was blocked at its first run. Clear the quarantine of such a folder before running it:
xattr -dr com.apple.quarantine /usr/local/lib/razorbill
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|