Installation Guide
Detailed installation instructions for different platforms and use cases.
System Requirements
Minimum Requirements
- CPU: 2 cores, 2+ GHz
- RAM: 4 GB
- Disk: 2 GB free space
- OS: Linux (Ubuntu 20.04+), Windows (native or WSL2), or macOS 13+ on Apple Silicon
Recommended Requirements
- CPU: 4+ cores
- RAM: 8+ GB
- Disk: 10 GB free space
- GPU: Optional (for faster inference if supported by your LLM provider)
Linux Installation
Ubuntu/Debian
Using Pre-built Binary
# Download the latest binary
wget https://github.com/QuantClaw/QuantClaw/releases/download/v1.0.0/quantclaw-linux-x64.tar.gz
# Extract
tar xzf quantclaw-linux-x64.tar.gz
# Install to system path
sudo mv quantclaw /usr/local/bin/
chmod +x /usr/local/bin/quantclaw
# Verify
quantclaw --versionBuild from Source
# Install build dependencies
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
git \
libssl-dev \
nlohmann-json3-dev \
libspdlog-dev
# Clone repository
git clone https://github.com/QuantClaw/QuantClaw.git
cd quantclaw
# Build
mkdir build && cd build
cmake ..
cmake --build . --parallel
# Optional: Install system-wide
sudo cmake --install .
# Run tests
./quantclaw_testsUsing Docker
# Pull image
docker pull quantclaw:latest
# Run container
docker run -d \
--name quantclaw \
-p 18800:18800 \
-p 18801:18801 \
-v quantclaw_data:/home/quantclaw/.quantclaw \
quantclaw:latest
# View logs
docker logs quantclawFedora/CentOS/RHEL
# Install dependencies
sudo dnf groupinstall "Development Tools" -y
sudo dnf install cmake openssl-devel nlohmann_json-devel spdlog-devel -y
# Build from source
git clone https://github.com/QuantClaw/QuantClaw.git
cd quantclaw
mkdir build && cd build
cmake ..
cmake --build . --parallel
sudo cmake --install .Arch Linux
# Install from AUR (if available)
yay -S quantclaw
# Or build from source
git clone https://github.com/QuantClaw/QuantClaw.git
cd quantclaw
mkdir build && cd build
cmake ..
cmake --build . --parallel
sudo cmake --install .Windows Installation
Windows 10/11 with WSL2
Setup WSL2
# Enable WSL2
wsl --install
# Or if already installed
wsl --set-default-version 2Install in WSL2
Follow the Ubuntu/Linux instructions above within WSL2:
wsl
cd ~
git clone https://github.com/QuantClaw/QuantClaw.git
# ... follow Linux build stepsRun from Windows
# Forward WSL2 port to Windows
# In WSL2 terminal:
quantclaw gateway
# In PowerShell (Windows):
# open http://localhost:18801Native Windows (MSVC)
Prerequisites
- Visual Studio 2019+ or Build Tools for Visual Studio
- CMake 3.15+
- Git
Build Process
REM Clone repository
git clone https://github.com/QuantClaw/QuantClaw.git
cd quantclaw
REM Create build directory
mkdir build
cd build
REM Generate Visual Studio project
cmake .. -G "Visual Studio 17 2022"
REM Build
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
REM Tests
Release\quantclaw_tests.exeInstall Dependencies (vcpkg)
REM If CMake can't find dependencies
vcpkg install nlohmann-json openssl spdlog zlib
REM Then configure with toolchain
cmake .. -DCMAKE_TOOLCHAIN_FILE=C:\path\to\vcpkg\scripts\buildsystems\vcpkg.cmakeGateway Service Setup (Resolving Permission Issues)
Gateway service startup on Windows requires special handling:
Option 1: Using Task Scheduler (Recommended)
# Run PowerShell as Administrator
cd path\to\QuantClaw
powershell -ExecutionPolicy Bypass -File scripts\gateway-setup-windows.ps1This script will:
- ✅ Create a scheduled task (auto-start on boot)
- ✅ Generate startup helper scripts
- ✅ Create default configuration file
- ✅ Set up log directory
Option 2: Manual Startup (No Admin Required)
REM Double-click or run from command line
scripts\gateway-manual.bat
REM Or run directly
build\Release\quantclaw.exe gateway runOption 3: WSL2 Alternative
If you encounter Windows permission issues, WSL2 is recommended:
# Install WSL2
wsl --install
# Use Linux installation in WSL2
wsl
cd ~/QuantClaw
# ... follow Linux build stepsTroubleshooting
Q: gateway install command fails?
A: On Windows, gateway install currently only creates a background process and does not automatically create a scheduled task. Please use Option 1 or Option 2 above.
Q: Port is already in use?
A: Modify the gateway.port value in the configuration file ~\.quantclaw\quantclaw.json.
Q: Antivirus blocking the application?
A: Add quantclaw.exe to your antivirus software's whitelist.
Windows Compatibility Notes
NOMINMAXis defined automatically to prevent conflicts between Windows API macros and C++std::min/std::max.bcryptis linked automatically to satisfy Windows crypto/TLS library dependencies (for example, mbedtls).HTTPLIB_REQUIRE_ZLIBis explicitly set toOFFwhen ZLIB is not present, preventing stale CMake cache issues on minimal environments.- The
logs -f(follow) flag is not supported on Windows; uselogs -n <count>to view recent entries.
Docker on Windows
# Pull and run Docker container
docker pull quantclaw:latest
docker run -d `
--name quantclaw `
-p 18800:18800 `
-p 18801:18801 `
-v quantclaw_data:/home/quantclaw/.quantclaw `
quantclaw:latest
# View logs
docker logs quantclaw
# Stop container
docker stop quantclawmacOS Installation
Recommended: install script
git clone https://github.com/QuantClaw/QuantClaw.git
cd QuantClaw
bash scripts/install.sh --userThis installs quantclaw into ~/.quantclaw/bin, runs onboard --quick, and writes the launchd service definition to ~/Library/LaunchAgents/com.quantclaw.gateway.plist.
Build from Source (manual)
Install Dependencies
# Homebrew packages used by the supported build script
brew install cmake ninja pkg-config git spdlog openssl@3 curl nodeBuild
git clone https://github.com/QuantClaw/QuantClaw.git
cd QuantClaw
# Recommended scripted build
./scripts/build.sh --tests
# Run tests
ctest --test-dir build --output-on-failure
# Optional: install the background service definition
./build/quantclaw gateway installIf you prefer manual CMake configuration on macOS, pass the Homebrew prefixes explicitly:
brew install openssl@3 curl
cmake -B build -G Ninja \
-DOPENSSL_ROOT_DIR="$(brew --prefix openssl@3)" \
-DCURL_ROOT="$(brew --prefix curl)"
cmake --build build --parallelPost-Installation Setup
Initialize Configuration
# Interactive setup (recommended)
quantclaw onboard
# Quick setup (use defaults)
quantclaw onboard --quickDuring setup, QuantClaw creates the config file, workspace, and gateway auth token. Add your provider API keys afterwards by editing ~/.quantclaw/quantclaw.json.
Verify Installation
# Check version
quantclaw --version
# Run tests
quantclaw status
# Test basic functionality
quantclaw run "Hello, what's your name?"Configure Environment (Optional)
# Set default agent
export QUANTCLAW_AGENT_ID=main
# Set configuration directory
export QUANTCLAW_CONFIG_DIR=~/.quantclaw
# Set log level
export QUANTCLAW_LOG_LEVEL=debug
# Set gateway port
export QUANTCLAW_GATEWAY_PORT=18800Updating QuantClaw
From Binary
# Download new version
wget https://github.com/QuantClaw/QuantClaw/releases/download/v1.1.0/quantclaw-linux-x64.tar.gz
# Backup old binary
cp /usr/local/bin/quantclaw /usr/local/bin/quantclaw.backup
# Install new version
tar xzf quantclaw-linux-x64.tar.gz
sudo mv quantclaw /usr/local/bin/
# Verify
quantclaw --versionFrom Source
cd quantclaw
git pull origin main
cd build
cmake --build . --parallel
sudo cmake --install .From Homebrew
brew update
brew upgrade quantclawDocker
docker pull quantclaw:latest
docker stop quantclaw
docker rm quantclaw
# Re-run with new image
docker run -d \
--name quantclaw \
-p 18800:18800 \
-p 18801:18801 \
-v quantclaw_data:/home/quantclaw/.quantclaw \
quantclaw:latestTroubleshooting
Build Failures
CMake not found
# Ubuntu
sudo apt-get install cmake
# macOS
brew install cmake
# Windows
choco install cmakeMissing dependencies
# Ubuntu
sudo apt-get install libssl-dev nlohmann-json3-dev libspdlog-dev
# macOS
brew install openssl nlohmann-json spdlogC++ compiler issues
# Update compiler
sudo apt-get install build-essential # Ubuntu/Debian
brew install gcc # macOSRuntime Issues
Port already in use
# Change gateway port
quantclaw gateway --port 9000
# Or find and kill process using port 18800
lsof -i :18800
kill -9 <PID>Permission denied errors
# Ensure ~/.quantclaw is writable
chmod 700 ~/.quantclaw
chmod 600 ~/.quantclaw/*Configuration issues
# Validate configuration
quantclaw config validate
# View schema
quantclaw config schema
# Reset to defaults
quantclaw onboard --resetUninstallation
Binary Installation
# Remove binary
sudo rm /usr/local/bin/quantclaw
# Remove configuration (optional)
rm -rf ~/.quantclawDocker
docker stop quantclaw
docker rm quantclaw
docker rmi quantclaw:latestFrom Source
cd quantclaw/build
sudo cmake --uninstall
# Or manually
sudo rm /usr/local/bin/quantclaw
sudo rm -rf /usr/local/include/quantclawNext: Configure your installation or get started running agents.

