Skip to content

Installing

André Borchert edited this page Sep 13, 2026 · 9 revisions

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.

Before you start

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.

Running 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.sh

Then wait. The first run takes a while — most of it is the 3 GB download.

What it does, in order

  1. 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.
  2. 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.
  3. 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.
  4. Builds the app. Several minutes the first time.
  5. 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.
  6. Leaves a launcher at ~/Applications/ChatBots.command, which you can double-click.

When it finishes

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.

Running the website instead

bash tools/start.sh

Then 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.

If something goes wrong

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:

"xcode-select: error: command line tools are already installed"

Harmless. The installer carries on.

The toolchain dialog never appeared

Install the Command Line Tools yourself:

xcode-select --install

Accept the dialog, let it finish, then run bash tools/install.sh again.

The download stopped part way

Run the installer again. It notices which files are incomplete and continues them.

"The check did not finish within 5 minutes"

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 it

Then run the installer again.

The build fails

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.

"cannot be opened because the developer cannot be verified"

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

Where everything lives

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.

Skipping the download entirely

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.


Next: Using the desktop app · Using the website

Clone this wiki locally