Repository navigation
Installing
The installer is written for a Mac that has nothing set up on it. You do not need Xcode, and you do not need to know anything about Swift.
Check two things:
| Why it matters | |
|---|---|
| Is this an Apple silicon Mac? Apple menu → About This Mac. It should say Chip: Apple M1 (or M2, M3, M4…). 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 there about 8 GB of free space? Apple menu → System Settings → General → Storage | The models are roughly 3 GB, and the build needs a few more |
macOS 26 or newer is required. The desktop app talks to the engine over WebTransport, which needs it.
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, macOS version, free disk space, and that it can
reach
huggingface.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. - Installs a Swift toolchain if you have none. macOS can install its own developer tools; a dialog may appear and it downloads about 1 GB. Accept it and let it finish — the installer waits.
- Downloads the models, one file at a time, checking each file's size against the server. An interrupted download continues where it left off when you run it again.
- Builds the app. Several minutes the first time.
- 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.
-
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
· 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.
bash tools/start.shThen open http://localhost:7788. Leave the Terminal window open — that is the server. Press
Control-C to stop it, or run bash tools/start.sh --stop from another window.
The website listens on every network interface, and the API behind it has no password, so anyone
on the same Wi-Fi can read every kept conversation and steer the runs. Add --local-only to bind
it to this Mac — see Using the website.
bash tools/start.sh --status tells you what is running.
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:
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. The most common cause is 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.
If you would rather not download 3 GB, you can point the app at a cloud model instead. See Using cloud models — with an API endpoint configured, the local weights are never loaded.