This codebase is experimental. The steps below have been validated only on macOS 26 with Apple Silicon and assume a clean machine without Homebrew or pyenv.
Run each command exactly as shown from the project root.
- Install Python 3.12 using the official package:
curl -LO https://www.python.org/ftp/python/3.12.7/python-3.12.7-macos11.pkg sudo installer -pkg python-3.12.7-macos11.pkg -target /
- Create a virtual environment with that interpreter:
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m venv .venv
- Activate the environment and upgrade pip:
source .venv/bin/activate python -m pip install --upgrade pip - Install project dependencies:
python -m pip install -r requirements.txt
- Provide your OpenAI API key (optional now, required before the first query):
export OPENAI_API_KEY=sk-your-key-here - Start the web server:
python web/app.py
- Open
http://localhost:7860in a browser. If you did not export the key, use the Settings panel in the UI to save it.
Use the same virtual environment created above (keep .venv activated).
- Install desktop-specific dependencies:
python -m pip install -r requirements-mac-desktop.txt
- Launch the desktop shell:
python mac_app/launcher.py
The launcher wraps the Flask app in a native window and stores configuration under ~/Library/Application Support/SuperLibraryMachine/.
- Python 3.13 and newer are not supported because the current
faiss-cpuwheels depend onnumpy<2.0. - Set
RAG_DB_ROOT=/path/to/databasesbefore launching if you need to point at a different database directory. - Desktop packaging scripts (
mac_app/build_app.sh,windows_app/build_exe.ps1) assume you already followed the commands above and are using the same environment.