MacOS
This guide explains how to install, configure, and uninstall Colibri Server on macOS.
Requirements
- macOS 10.15 (Catalina) or newer
- Administrator access (sudo privileges)
- At least 500 MB free disk space
- Optional: Memcached for caching (recommended for production)
Installation
Download
Download the latest installer package from the GitHub Releases page:
curl -L -O https://github.com/corpus-core/colibri-stateless/releases/latest/download/colibri-server-1.0.0.pkg
Install via Command Line
sudo installer -pkg colibri-server-1.0.0.pkg -target /
Install via Finder
- Double-click the downloaded
.pkgfile - Follow the installation wizard
- Enter your administrator password when prompted
What Gets Installed
The installer places files in the following locations:
- Binary:
/usr/local/bin/colibri-server - Configuration:
/usr/local/etc/colibri/server.conf - Launch Daemon:
/Library/LaunchDaemons/io.corpuscore.colibri-server.plist - Log Files:
/var/log/colibri-server.log,/var/log/colibri-server.error.log - Data Directory:
/var/lib/colibri/
Shell Completion
The installer also includes Zsh tab-completion scripts for colibri, colibri-prover, colibri-ssz, and colibri-server, installed to /usr/local/share/zsh/site-functions/. Completions cover all command-line options, supported RPC methods (e.g. eth_getBlockByNumber), chain names, SSZ type names, server configuration flags, and more.
After installation, open a new terminal (or run exec zsh) and completions will be available:
colibri -<TAB>
colibri eth_<TAB>
If completions don't work, ensure /usr/local/share/zsh/site-functions is in your fpath and compinit is active in your ~/.zshrc:
fpath=(/usr/local/share/zsh/site-functions $fpath)
autoload -Uz compinit && compinit
Automatic Service Start
The Colibri Server is automatically installed as a LaunchDaemon and starts:
- Immediately after installation
- Automatically on system boot
The service runs in the background and listens on port 8090 by default.
Configuration
Edit Configuration File
sudo nano /usr/local/etc/colibri/server.conf
Key Configuration Parameters
# Server port
PORT=8090
# Blockchain (1=Mainnet, 11155111=Sepolia, 17000=Holesky)
CHAIN_ID=1
# RPC endpoints (comma-separated)
RPC=https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY
# Beacon Chain API endpoints (comma-separated)
BEACON=https://lodestar-mainnet.chainsafe.io/
# Web UI (0=disabled, 1=enabled) - Only enable on trusted networks!
WEB_UI_ENABLED=0
Reload Configuration
After changing the configuration, reload the service:
sudo launchctl unload /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
sudo launchctl load /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
Enable Memcached (Optional, Recommended for Production)
Memcached significantly improves performance by caching external RPC/Beacon API requests.
Install and start:
# Install via Homebrew
brew install memcached
# Start memcached service
brew services start memcached
# Or start manually
memcached -d -m 64 -p 11211
Configure:
sudo nano /usr/local/etc/colibri/server.conf
# Set: MEMCACHED_HOST=localhost
Reload server:
sudo launchctl unload /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
sudo launchctl load /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
Verify it's working:
# Check memcached is running
brew services list | grep memcached
# Check server logs
tail -n 20 /var/log/colibri-server.log | grep memcached
Enable Web UI (Optional)
To enable the web-based configuration interface:
-
Edit the config file:
sudo nano /usr/local/etc/colibri/server.conf -
Set
WEB_UI_ENABLED=1 -
Reload the service (see above)
-
Access the UI at: http://localhost:8090/config.html
⚠️ Security Warning: Only enable the Web UI on trusted local networks. It has no authentication and should never be exposed to the internet.
Service Management
Check Service Status
# Check if service is loaded
sudo launchctl list | grep colibri
# View recent logs
tail -n 50 /var/log/colibri-server.log
tail -n 50 /var/log/colibri-server.error.log
Start/Stop Service Manually
# Stop service (it will restart automatically due to KeepAlive)
sudo launchctl stop io.corpuscore.colibri-server
# Completely unload service
sudo launchctl unload /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
# Load and start service
sudo launchctl load /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
View Live Logs
# Follow main log
tail -f /var/log/colibri-server.log
# Follow error log
tail -f /var/log/colibri-server.error.log
Uninstallation
Automatic Uninstallation (Recommended)
Use the uninstall script:
# Download uninstall script
curl -O https://raw.githubusercontent.com/corpus-core/colibri-stateless/main/installer/macos/uninstall.sh
chmod +x uninstall.sh
sudo ./uninstall.sh
The script will:
- Stop and unload the service
- Remove the binary and LaunchDaemon
- Ask if you want to remove configuration files and logs
Manual Uninstallation
If you prefer to uninstall manually:
# 1. Stop and unload the service
sudo launchctl unload /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
# 2. Remove LaunchDaemon
sudo rm /Library/LaunchDaemons/io.corpuscore.colibri-server.plist
# 3. Remove binary
sudo rm /usr/local/bin/colibri-server
# 4. Remove configuration (optional)
sudo rm -rf /usr/local/etc/colibri
# 5. Remove logs (optional)
sudo rm /var/log/colibri-server.log
sudo rm /var/log/colibri-server.error.log
# 6. Remove data directory (optional)
sudo rm -rf /var/lib/colibri
# 7. Remove package receipt
sudo pkgutil --forget io.corpuscore.colibri-server
See UNINSTALL.md for detailed uninstallation instructions.
Troubleshooting
Service Won't Start
-
Check logs for errors:
tail -n 100 /var/log/colibri-server.error.log -
Common issues:
- Port 8090 already in use → Change
PORTin config file - Invalid RPC endpoints → Check network connectivity
- Config file syntax error → Validate config file format
- Port 8090 already in use → Change
-
Test manually:
/usr/local/bin/colibri-server -c /usr/local/etc/colibri/server.conf
Port Already in Use
Check what's using port 8090:
sudo lsof -i :8090
Either stop that process or change the port in /usr/local/etc/colibri/server.conf.
Permission Denied Errors
Ensure log files and data directory are writable:
sudo chmod 755 /var/lib/colibri
sudo chmod 644 /var/log/colibri-server.log
sudo chmod 644 /var/log/colibri-server.error.log
Check Installation Status
Use the diagnostic script to check your installation:
curl -O https://raw.githubusercontent.com/corpus-core/colibri-stateless/main/installer/macos/check_installation.sh
chmod +x check_installation.sh
./check_installation.sh
Building from Source
If you want to build the installer package yourself:
cd installer/macos
./build_pkg.sh
# Or with custom version:
./build_pkg.sh 1.2.3
Requirements:
- Xcode Command Line Tools
- CMake (
brew install cmake)
Support
- Documentation: https://corpus-core.gitbook.io/specification-colibri-stateless
- Issues: https://github.com/corpus-core/colibri-stateless/issues
- Email: simon@corpus.io
License
The Colibri core library is licensed under the MIT License.
The server component is dual-licensed:
- PolyForm Noncommercial License 1.0.0 for non-commercial use
- Commercial License required for commercial use (contact simon@corpus.io)