Prerequisites
Before building from source, ensure you have the required dependencies for your platform.Python VersionKlaus requires Python 3.11, 3.12, or 3.13. Python 3.14 on macOS 26 has known compatibility issues with global hotkeys.
Installation Steps
Install in development mode
- Core: anthropic, openai, PyQt6
- Vision: opencv-python, Pillow, numpy
- Audio: sounddevice, webrtcvad, moonshine-voice
- Search: tavily-python
- Utilities: python-dotenv, pynput, keyring (macOS)
Development Setup
If you’re developing Klaus, install optional development dependencies:pytest>=8.0.0for running tests
Running Tests
Project Structure
The source code is organized as follows:Updating Your Installation
Since you’re using editable mode (pip install -e .):
-
Pull the latest changes:
-
If dependencies changed, reinstall:
Platform-Specific Notes
macOS
- AVFoundation: Automatically installed via
pyobjc-framework-AVFoundationfor native camera names - Keychain: API keys are stored in Apple Keychain via the
keyringpackage - App Icon: Uses
pyobjcto set dock icon and app name
Windows
- API Keys: Stored in
~/.klaus/config.toml(no keychain integration) - Dark Title Bar: Uses DWM API for dark window chrome
- Camera Backend: Uses DirectShow (
cv2.CAP_DSHOW)
Next Steps
After building from source:- Camera Setup - Configure your document camera
- API Keys - Obtain required API keys
- First Run - Complete the setup wizard