Quickstart & Deployment Guide
Deploy LureGuard.ai with Docker, set up the host MCP analyst python environment, and run health diagnostics in minutes.
System Prerequisites
Section titled “System Prerequisites”- Core Tools: Docker 24.0+, Python 3.11+, opencode, Git.
- OS: Linux (Ubuntu 22.04 LTS / Debian 12 recommended) or macOS.
- Optional Integrations: Telegram Bot Token, VirusTotal / AbuseIPDB API Keys, SSH root/sudo password (
ONBOARD_SSH_PASSWORDin.env).
Step-by-Step Installation
Section titled “Step-by-Step Installation”# 1. Clone the repositorygit clone https://github.com/Belal-01/LureGuard.ai.gitcd LureGuard.ai
# 2. Configure environment variablescp .env.example .env
# 3. Spin up the core Docker container stackdocker compose up -d
# 4. Create host venv, run database migrations, and perform health checkmake venv && make migrate && make doctorHealth Check Verification (make doctor)
Section titled “Health Check Verification (make doctor)”When setup is successful, make doctor reports all checks passed:
$ make doctor────────────────────────────────────────────Required ✓ Docker ✓ Core stack containers ✓ Postgres :5433 ✓ Agent DB schema ✓ Core API :8080 ✓ Wazuh API auth ✓ Wazuh integratord ✓ .env file ✓ MCP Python package ✓ opencode CLI ✓ opencode.json schema ✓ opencode MCP lureguard ✓ opencode LLM ready → Using saved provider credentials
Optional ✓ Grafana :3000 ✓ Threat intel keys → Optional unset: ABUSEIPDB_API_KEY ✓ Report charts + PDF (pip) → weasyprint────────────────────────────────────────────All required checks passed. Run: opencodeRunning the AI Security Analyst
Section titled “Running the AI Security Analyst”Interactive Mode
Section titled “Interactive Mode”Launch opencode directly in your terminal:
opencodeTry natural language queries:
Read skills/triage.md and triage alerts from the last 2 hoursRead skills/onboard-host.md and protect 192.168.1.50Headless Execution Mode
Section titled “Headless Execution Mode”Run automated tasks non-interactively:
opencode run "Read skills/triage.md — triage last hour"Built-in Slash Commands
Section titled “Built-in Slash Commands”Use quick slash shortcuts inside opencode: /triage, /investigate, /onboard, /posture, /report, /update.
