Repository navigation
Installing
The installer is written for a Mac that has nothing set up on it. One step does need full Xcode — the Metal compiler — and that is the only part you have to do before running it. You do not need to know anything about Swift.
Check four things:
| Why it matters | |
|---|---|
| Is this an Apple silicon Mac? Apple menu → About This Mac. It should say Chip: Apple M1 (or M2–M6). If it says Intel, the models cannot run here | The models run on the GPU through Apple's MLX framework, which needs Apple silicon |
| Is it running macOS 26 or newer? Apple menu → About This Mac | The desktop app talks to the engine over WebTransport, which needs macOS 26. Package.swift declares .macOS(.v26) and the installer refuses an older system |
| Is there about 8 GB of free space? Apple menu → System Settings → General → Storage | The checkpoint is about 3 GB, and the build needs a few more |
Is Xcode 27 installed? Open the App Store and search for Xcode, or check /Applications/Xcode.app
|
The Metal compiler is a separate Xcode component, and only full Xcode can download it. The Command Line Tools are not enough |
Xcode 27 does not ship the Metal compiler; it is a separate component of about 840 MB. Without it every build stops on the first GPU kernel with
error: cannot execute tool 'metal' due to missing Metal Toolchain
Run this once, in Terminal, before anything else:
sudo xcode-select -s /Applications/Xcode.app
xcodebuild -downloadComponent MetalToolchainsudo is only needed for the first line, and only if Xcode is not already the selected developer
directory. The second line prints its progress and returns to the prompt when it is done. Once you
have cloned the project, bash tools/check-metal.sh runs the compiler rather than looking for it —
xcrun --find metal prints a path even when the component is missing, so it is not a way to tell.
Open Terminal (press ⌘-Space, type Terminal, press Return) and paste these three lines:
git clone https://github.com/Pummelchen/ChatBots.git
cd ChatBots
bash tools/install.shThen wait. The first run takes a while — most of it is the 3 GB download.
-
Checks the machine — Apple silicon, the macOS version from
Package.swift, at least 8 GB free, and that it can reachhuggingface.co. It stops early with an explanation if any of these would make the app useless anyway. Refusing is better than downloading 3 GB that cannot work. -
Finds a Swift toolchain. If
swiftis not on the PATH, it runsxcode-select --install; a dialog may appear and download about 1 GB. Accept it and let it finish — the installer waits up to twenty minutes. Everything here builds with Swift 6.4. -
Checks the Metal compiler by running it, and stops with the
xcodebuildcommand above if the component is missing. -
Downloads the checkpoint named by
AgentSpec.defaultModelID—mlx-community/Qwen3.5-4B-MLX-4bit, about 3 GB. Each file's size is read from the server first and checked again after the transfer, so a truncated download is detected rather than accepted. An interrupted download continues where it left off when you run the script again. -
Builds the app with
tools/make-app.sh. Several minutes the first time; the full log isChatBots/.install-build.log. -
Prepares the engine certificate in
ChatBots/.run/, so the first launch does not pause to generate one. - Checks the app's channel to the engine — the WebTransport connection the desktop app uses — and then loads a model and generates a few tokens. This is the important step: it proves the whole chain works on your Mac rather than leaving you to discover a problem later. It is given a five-minute deadline, and a machine busy with something else can hit it.
-
Leaves a launcher at
~/Applications/ChatBots.command, which you can double-click.
You will see:
ChatBots is installed.
To start it, either:
· double-click /Users/you/Applications/ChatBots.command
(in your Applications folder — from Finder, press ⌘⇧A)
· or run: open "/Users/you/Downloads/ChatBots/dist/ChatBots.app"
Double-click the launcher. The first turn takes a few seconds while the model loads.
Four scripts, and each one takes --help:
| Command | What it starts |
|---|---|
bash tools/start-app.sh |
The macOS app, plus an API server so a browser can watch the same conversation |
bash tools/start-web-desktop.sh |
The website, opening a browser at the two-pane desktop layout |
bash tools/start-web-mobile.sh |
The website, opening a browser forced into the phone layout |
bash tools/start.sh |
The engine and website without the app; prints the URL and opens nothing by default |
You can run all of them. They are windows onto the same conversation engine, not separate apps, so a conversation started in one appears in the others.
The two start-web-* scripts, and start.sh without --local-only, listen on every network
interface, so a phone on the same Wi-Fi can open the website — and so can anyone else on that
network, because the API has no password. Add --local-only to keep it on this Mac. The desktop app
itself never faces the network. See Using the website.
Just run the installer again. Every step repairs rather than duplicating: an interrupted download continues, a half-finished build is redone, nothing is downloaded twice. This is the right first response to almost any problem.
Some specific cases:
Install the component and run the installer again:
xcodebuild -downloadComponent MetalToolchainIf that command is not found, full Xcode is not installed. Install Xcode 27 from the App Store first — the Command Line Tools cannot download this component.
Harmless. The installer carries on.
Install the Command Line Tools yourself:
xcode-select --installAccept the dialog, let it finish, then run bash tools/install.sh again.
Run the installer again. It notices which files are incomplete and continues them.
Something else is holding the GPU. The usual culprits are LM Studio, a game, or a leftover process:
pgrep -fl chatbots-cli # anything listed is a leftover; stop itThen run the installer again.
The installer prints the end of the build log and tells you where the full one is,
ChatBots/.install-build.log. The most common causes are a missing Metal component and running out
of disk space mid-build — check Storage in System Settings.
This should not happen, because the app is built on your own Mac and is never quarantined. If you see it, you are opening a copy that came from somewhere else:
xattr -dr com.apple.quarantine /path/to/ChatBots.app| The project | wherever you cloned it — do not move it, the models live inside it |
| The models | ChatBots/models/ |
| The app | ChatBots/dist/ChatBots.app |
| The launcher | ~/Applications/ChatBots.command |
| Installer log | ChatBots/.install.log |
| Build log | ChatBots/.install-build.log |
| Server logs |
ChatBots/.run/engine.log and .run/caddy.log
|
If you move the project folder, run the installer again from the new location and the launcher is rewritten to point at it.
The installer always downloads the shipped checkpoint, because that is what a seat uses by default.
A seat pointed at a cloud endpoint never loads those weights — they stay on disk unused. If you want
to try the app without the 3 GB download, build from source by hand instead of running
tools/install.sh, then set a seat's backend to API; see Using cloud models.