Repository navigation
Troubleshooting
Start here: run the installer again.
cd ChatBots
bash tools/install.shEvery step repairs rather than duplicating. An interrupted download continues, a half-finished build is redone, and nothing is fetched twice. That is the right first response to almost anything.
The engine is reachable and the live feed is not arriving. The app polls once a second as a safety net, so a frozen window means something deeper. Look at the engine's log:
tail -20 ChatBots/.run/app-engine.logThat is the path when you are running from a checkout. An app installed somewhere else keeps its
runtime files — this log, the certificate and the kept conversations — in
~/Library/Application Support/ChatBots/ instead. Nothing is ever written inside ChatBots.app
itself: doing that would invalidate the app's signature the first time it launched.
The app talks to its engine over WebTransport on 127.0.0.1:7790. To see the connection as text
rather than as an empty window, run the app's own client from a terminal:
swift run chatbots-probe --cycles 5It prints one line per connection and all cycles succeeded when they all worked. A line that
says FAILED names the reason. It uses the transport port 7790 by default; add --port to test a
different engine.
Something is on the engine's port that is not the engine this app started. The engine writes a random
token to its run directory (~/Library/Application Support/ChatBots, or .run in a checkout) before
it accepts a connection, and the app asks it to echo that token before it sends anything — including
your API keys. Anything that answers without it is not adopted, deliberately: a program that takes the
port before the engine starts would otherwise be handed every cloud key in your Keychain.
Find what is holding the port and stop it, then start ChatBots again:
lsof -nP -iTCP:7790 -sTCP:LISTENThe usual causes are an engine you started yourself in a terminal (bash tools/start.sh) and left
running, or a second copy of the app. The refusal is a sentence rather than a silent failure on
purpose: the app is telling you it declined to trust something, not that it could not connect.
The app ships its engine inside itself. A copy assembled by hand without it cannot start one:
bash tools/make-app.shOpen Terminal and run it directly, so you can see the error:
cd ChatBots
./dist/ChatBots.app/Contents/MacOS/ChatBotsThe Metal shader library is missing from the app. The installer fixes this:
bash tools/install.shor, on its own:
bash tools/fetch-metal.sh --into dist/ChatBots.appThis is a different failure from the one above. cannot execute tool 'metal' due to missing Metal Toolchain means the compiler is absent, not the library, and it needs full Xcode:
xcodebuild -downloadComponent MetalToolchainIs the Terminal window still open? That is the server.
bash tools/start.sh --status # what is running
bash tools/start.sh # start it againIf a port is busy, the script says so. Use different ones:
bash tools/start.sh --port 7990 --engine 7991Both devices must be on the same Wi-Fi, and the Mac's firewall must allow the connection — System Settings → Network → Firewall. Some routers also isolate wireless clients from each other, which no setting on the Mac can fix.
That connection working means the website is listening on the whole network, and the API behind
it has no password — so anyone else on that Wi-Fi can read every kept conversation and steer the
runs. Start it with bash tools/start.sh --local-only to bind it to this Mac instead; see
Using the website.
Normal. The model is being loaded into memory — a few seconds, and it only happens once per seat.
Have a look at the engine log:
tail -20 ChatBots/.run/engine.logIf nothing is happening at all, something else may be holding the GPU. Quit LM Studio, any game, and any other app doing heavy graphics work.
Two models generating at once share the GPU, so each is slower than it would be alone. Some things that help:
- Use Show thinking: Off, or a lower thinking level. Reasoning tokens cost as much as answer tokens.
- Lower max output tokens in the pane settings.
- Press Pause and read for a while, then resume.
- For a long conversation, Condense to shrink the prompt — a long prompt takes longer to read before the model starts writing.
Each seat holds its own copy of the model. Two seats means two copies. With 8 GB of memory, run one seat on a cloud model instead — see Using cloud models.
Look for the faulting function:
ls -t ~/Library/Logs/DiagnosticReports/ChatBots*.ips | head -1If it names mlx::core — CompilerCache::find, CustomKernel::eval_gpu — that is a known
intermittent fault in the MLX runtime, not in this app. It is rare. Restart and carry on; if it
happens repeatedly on the same kind of turn, note it, because it is worth reporting upstream.
The context may be too full. Check the ctx figure at the bottom — if it is over about 90%,
press Clear and start again, or Condense to reclaim room.
This nearly always means a reasoning model spent its whole output budget thinking. You will see the reasoning-token count in the message. Fixes:
- Raise the thinking level's headroom, or set it to Off.
- Raise max output tokens.
- Use a shorter prompt — Condense first.
That model has no vision. It is worth knowing that this varies within a provider: DeepSeek's flash tier reads images, its pro tier does not. Use a seat whose model can see, or remove the image.
This is what a model does when the sampling is wrong for it. The shipped defaults are tuned and measured for the local Qwen checkpoint with thinking on: on a fixed topic, tightening them took a three-turn run from eight repetition cuts to none, without touching the thinking budget.
The sampling values are a preset in the engine, not a control in the interface, so there is nothing here to adjust by hand. What is worth trying:
- Turn thinking on, or raise it — some models degenerate badly without it.
- Condense first, so the answer is not written over a very long prompt.
- If a cloud model repeats, look at that endpoint's own parameters.
If the local checkpoint repeats with the shipped settings, that is a bug worth reporting.
Two things have to be true: the seat has web search enabled, and this machine has a Tavily key. Local seats only — an API-backed seat has no tools, because search runs inside this app.
Set the key in the environment or in ChatBots/.secrets.env:
TAVILY_API_KEY=tvly-dev-your-key-here
Then restart the engine. chatbots-cli prints whether it found one, on the line that begins
tavily :.
No key ships with this repository, so a fresh clone has none and the opening brief says search is unavailable rather than promising a tool that cannot run. If the models try anyway, the log carries the reason.
The PDF is a picture of a page. Run OCR on it first, or find a text version.
Open the magnifying glass on the chip and look. PDFs with unusual layouts can lose their column structure during extraction. Try exporting a plain text version, or a different PDF.
The limits are 64 MB per file and 120,000 characters of extracted text. A larger file is refused rather than silently shortened to nothing. A document that fits the byte cap but not the character cap is shortened, and its chip says shortened.
To start from a clean slate but keep your models:
rm -rf ChatBots/.build ChatBots/dist
cd ChatBots && bash tools/install.shTo remove your saved settings as well:
defaults delete local.chatbots.twollmsTo remove the downloaded models too — this means downloading 3 GB again:
rm -rf ChatBots/modelsUseful things to include:
sw_vers # macOS version
uname -m # should say arm64
sysctl -n hw.memsize # memory, in bytes
tail -30 ChatBots/.install.log # if setup failed
tail -30 ChatBots/.run/engine.log # if a conversation failed
tail -30 ChatBots/.run/app-engine.log # if the desktop app could not reach the engineRedact any API key before posting.
Next: How it works