bots-garden/razorbillpublic Fork
⑂ v1.0.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/razorbill.git
git clone ssh://git@rickub.com/bots-garden/razorbill.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. 872a940 · on v1.0.0 · k33g · 3h ago
INSTALL.MACOS.md · 99 lines · 4.2 KBmarkdown
Blame HistoryOpen raw

Install rzb on macOS

Version française

razorbill runs on macOS 14 or later, on Apple Silicon (M1 or newer) only: it runs its models on the GPU with MLX.

Short version:

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 scripts/install.sh writes from the sources, with the same marker line: scripts/install.sh --uninstall removes either install.

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 the short version (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 short version again 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: sudo rm -rf /usr/local/lib/razorbill /usr/local/bin/rzb. The models stay in the Hugging Face cache: remove them first with rzb 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
# Install `rzb` on macOS

*[Version française](INSTALL.MACOS.fr.md)*

razorbill runs on **macOS 14 or later, on Apple Silicon** (M1 or newer) only: it runs its models on the GPU with MLX.

Short version:

```bash
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 `scripts/install.sh` writes from the sources, with the same marker line: `scripts/install.sh --uninstall` removes either install.

## 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:

```bash
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 the short version (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:

```bash
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 short version again 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**: `sudo rm -rf /usr/local/lib/razorbill /usr/local/bin/rzb`. The models stay in the Hugging Face cache: remove them first with `rzb models rm <model>` if you want the disk space back.

## Next

```bash
rzb models pull mlx-community/Qwen3-0.6B-4bit
rzb serve
```

Then follow [Getting started](docs/en/tutorials/getting-started.md).

## 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:

```bash
xattr -dr com.apple.quarantine /usr/local/lib/razorbill
```