-
Notifications
You must be signed in to change notification settings - Fork 0
1.2 ClioDeck Installation ‐ macOS
This guide walks you through the complete installation of ClioDeck on macOS, from prerequisites to first launch.
- System Requirements
- Installing Dependencies
- Installing ClioDeck
- Initial Configuration
- Verifying Installation
- Troubleshooting
- macOS: 10.15 (Catalina) or higher
- Architecture: Intel (x64) or Apple Silicon (arm64)
- Disk Space: At least 5 GB free (for application and Ollama models)
- Memory: 8 GB RAM minimum, 16 GB recommended
If Homebrew is not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Follow the displayed instructions to add Homebrew to your PATH.
ClioDeck requires Node.js 20+ and npm 10+.
# Install Node.js via Homebrew
brew install node@20
# Verify versions
node --version # Should show v20.x.x or higher
npm --version # Should show 10.x.x or higherAlternative: Using nvm (Node Version Manager)
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Restart your terminal, then:
nvm install 20
nvm use 20
nvm alias default 20ClioDeck uses Python for certain services (topic modeling). Python 3.11+ is required.
# Check if Python 3 is installed
python3 --version
# If necessary, install via Homebrew
brew install python@3.11Note: The Python virtual environment (venv) will be created automatically by ClioDeck on first launch.
ClioDeck requires Pandoc and XeLaTeX to export documents to PDF.
# Install Pandoc
brew install pandoc
# Install MacTeX (complete LaTeX distribution for macOS)
brew install --cask mactex
# Lighter alternative: BasicTeX (smaller but sufficient)
brew install --cask basictexIf using BasicTeX, install the additional required packages:
# Add tlmgr to PATH
eval "$(/usr/local/texlive/2024basic/bin/universal-darwin/tlmgr path add)"
# Install necessary packages
sudo tlmgr update --self
sudo tlmgr install xetex
sudo tlmgr install collection-fontsrecommended
sudo tlmgr install babel-frenchVerification:
# Verify Pandoc
pandoc --version
# Verify XeLaTeX
xelatex --versionOllama is required for local AI features (embeddings and chat).
# Install Ollama
brew install ollama
# Start Ollama service
brew services start ollama
# Alternative: Start manually
ollama serveDownload required models:
# Embedding model (required)
ollama pull nomic-embed-text
# Chat model (recommended)
ollama pull gemma2:2bOptional models:
# Alternative chat model (more performant but heavier)
ollama pull mistral:7b-instruct
# Fallback embedding model
ollama pull mxbai-embed-largeVerification:
# List installed models
ollama list
# Should show at minimum:
# nomic-embed-text
# gemma2:2bIf a packaged version is available:
-
Download the DMG
- Go to GitHub Releases
- Download
ClioDeck-0.1.0-mac.dmg(or latest version)
-
Install the application
# Double-click the downloaded DMG # Drag the ClioDeck icon to the Applications folder
-
Authorize the application (first launch)
On first launch, macOS may block the application:
# Method 1: Via interface # System → Privacy & Security → Open Anyway # Method 2: Via terminal xattr -cr /Applications/ClioDeck.app
-
Launch ClioDeck
- From Launchpad
- Or from Applications → ClioDeck
To contribute to the project or run the development version:
-
Clone the repository
git clone https://github.com/inactinique/cliodeck.git cd cliodeck -
Install npm dependencies
npm install
-
Compile native modules
npx electron-rebuild -f
-
Build the project
npm run build
-
Launch in development mode
# Terminal 1: Compile in watch mode npm run dev # Terminal 2: Launch application npm start
Or in a single command:
npm run dev:full
-
Build application for distribution
# Build for macOS npm run build:mac # DMG will be in: release/ClioDeck-0.1.0-mac.dmg
On first ClioDeck launch:
ClioDeck automatically checks the connection to Ollama (http://localhost:11434).
If connection fails:
- Make sure Ollama is started:
brew services start ollama - Or launch manually:
ollama servein a separate terminal - Verify port 11434 is not blocked
- Open Settings → LLM Configuration
- Verify settings:
- Backend: Ollama (default)
- URL: http://localhost:11434
- Embedding Model: nomic-embed-text
- Chat Model: gemma2:2b
- Click Test Connection to validate
- New Project → Choose a folder
- ClioDeck creates the structure:
my-project/ ├── .cliodeck/ │ └── vectors.db # Vector database ├── src/ │ ├── images/ # Project images │ └── pdfs/ # PDFs to index ├── bibliography.bib # BibTeX bibliography └── article.md # Main document
If you use Zotero:
- Get your API Key: https://www.zotero.org/settings/keys/new
- Permissions: "Read library" and "Write library"
- In ClioDeck: Settings → Zotero Integration
- Enter your User ID and API Key
- Test Connection
-
Verify Ollama
curl http://localhost:11434/api/tags # Should return list of installed models -
Verify Node.js and npm
node --version # v20.x.x or higher npm --version # 10.x.x or higher
-
Verify Python
python3 --version # 3.11.x or higher -
Verify Pandoc and XeLaTeX
pandoc --version # 2.x or higher xelatex --version # TeX Live 2020+ or higher
-
Test ClioDeck
- Create a new project
- Import a PDF into
src/pdfs/ - Index the PDF via the interface
- Verify corpus displays statistics
In development mode, logs are displayed in console. In production:
# Application logs
tail -f ~/Library/Logs/ClioDeck/main.logxattr -cr /Applications/ClioDeck.appThen relaunch the application.
# Check if Ollama is running
ps aux | grep ollama
# Restart service
brew services restart ollama
# Or manually
pkill ollama
ollama serveThis means the native module wasn't compiled for your architecture.
cd /path/to/cliodeck
rm -rf node_modules/better-sqlite3/build
npx electron-rebuild -f -w better-sqlite3
npm startVerify Python 3 is properly installed:
python3 --version
which python3
# If necessary, install via Homebrew
brew install python@3.11Ollama models consume RAM:
-
nomic-embed-text: ~1 GB -
gemma2:2b: ~2 GB -
mistral:7b-instruct: ~4 GB
Solutions:
- Close unused applications
- Use only
gemma2:2b(avoidmistral:7b-instruct) - Upgrade your Mac's RAM
If another service uses port 11434:
# Identify process
lsof -i :11434
# Option 1: Stop other service
# Option 2: Configure Ollama on another port
OLLAMA_HOST=127.0.0.1:11435 ollama serve
# Then in ClioDeck Settings → LLM → URL: http://localhost:11435- Documentation: README.md
- Issues: GitHub Issues
-
Logs:
~/Library/Logs/ClioDeck/
To completely uninstall ClioDeck:
# Remove application
rm -rf /Applications/ClioDeck.app
# Remove user data
rm -rf ~/Library/Application\ Support/cliodeck
rm -rf ~/.config/cliodeck
# Remove logs
rm -rf ~/Library/Logs/ClioDeck
# (Optional) Uninstall Ollama
brew uninstall ollama
rm -rf ~/.ollamaNote: Your ClioDeck projects (.md files, PDFs, .cliodeck/) are not automatically deleted.
Once ClioDeck is installed:
- See README.md to understand the architecture
- Read DEPLOYMENT.md for user workflow
- Explore project examples (if available)
License: MIT Support: Open an issue on GitHub for any questions