Offline Kit

Getting started

Set up Offline Kit

Use an Apple Silicon Mac running macOS 14 or later, a mounted external drive, and an internet connection for first setup. You’ll know your library works when you can disconnect and read a passage from the drive.

Download the tested kit

Sign in to GitHub with an account that has access to the private Offline Kit repository. Open the tested setup release and, under Assets, download offline-kit-3a2cf34.tar.gz.

Double-click the archive in Finder to expand it. Move the resulting offline-kit folder onto your external drive. It includes the built browser app and the START_HERE.md sample ticket.

Open Terminal in the project folder. One way is to type cd followed by a space, drag the folder from Finder into Terminal, and press Return. If the kit already has a provisioned runtime, you can go straight to Open the local app.

Check the plan

bash bootstrap.sh plan

Check that the reported path is on your drive. On a new Mac, the plan may list Homebrew (brew), uv, and ollama as MISSING. Setup can install those later. If you see Apple Command Line Tools are missing, unselected, or unusable, setup pauses here. To see the installation options, run the check below.

bash bootstrap.sh developer-tools

On a Mac without Apple’s tools, stay online and request the installer in Terminal:

xcode-select --install

Follow Apple’s installation dialog. When installation finishes, rerun bash bootstrap.sh developer-tools and look for Developer tools: READY. If you already have Xcode or the dialog cannot supply the tools, follow the alternatives printed by the check.

Run first setup while online

Allow room for Python, the search index, and about 2.7 GB for the two default AI models. Setup also installs missing Mac tools through Homebrew and installs VS Code if neither VS Code nor Cursor is present.

bash bootstrap.sh setup-online

If Homebrew is missing, setup asks Download and run the official Homebrew installer? [y/N]. Type y and press Return to continue. Pressing Return alone declines and stops setup. Follow any prompts from the Homebrew installer.

Wait for Online setup complete. The Python installation can finish before the model downloads or indexing begin.

If setup reports Another Ollama process already uses localhost:11434, keep the files setup has installed. If another kit is running, finish its Chat work and run bash bootstrap.sh stop from that kit’s project folder. If you started Ollama independently, quit it there. Return to the new kit’s folder and rerun bash bootstrap.sh setup-online. Changing the browser port only changes the web interface; Ollama still needs port 11434.

make doctor

Read the model and service status. The doctor command can finish successfully even when models are missing or another workspace owns the service.

Open the local app

bash scripts/serve_ui_offline.sh

Leave Terminal open. Open the address it prints in a browser on the same Mac, normally http://127.0.0.1:8011/. The current launcher opens the library directly. If an older bundle prints sign-in instructions, follow that bundle’s prompt.

If Terminal reports a missing SSD Python environment, return to first setup. If it reports that local chat is unavailable but continues serving the app, you can still test Search. If another kit is using port 8011, you can launch this copy on a free port instead:

OFFLINE_KIT_UI_PORT=8012 bash scripts/serve_ui_offline.sh

Test your first offline search

While still online, check that knowledge/START_HERE.md is in your kit. If it’s missing, download the sample ticket, save it as START_HERE.md in the project’s knowledge folder, and run make index from the project folder in a second Terminal window.

Keep the drive attached and the app running. Disconnect Wi-Fi and any wired internet connection. In Search, enter Moonberry Express and press Return. Under START_HERE.md, choose Open matching passage. Look for the blue clock on platform 7 and the departure at 09:40.

If Search lists the ticket but Open matching passage fails, check the app’s Terminal window. An error naming offline_kit.search_navigation means this build needs src/offline_kit/search_navigation.py. Obtain a complete copy of the same kit build, then reopen the app and retry.

If the result is missing, follow the five-minute guide to get the sample file and index it. Once the ticket appears, try adding a file of your own.

Press Control-C in the launcher’s Terminal window to stop the browser app. If you paused another kit for setup, run bash bootstrap.sh stop from the new kit’s folder, then bash bootstrap.sh start from the original kit’s folder. Run make doctor there and look for Local Ollama API: running on SSD. Open Chat in that kit and try a question about a familiar indexed passage.