Demo Sandbox Mode: Running with simulated ShopHelper fixture. Install RAVEN locally or configure a custom target to scan your live applications.
Runbook

Installation & Deployment

RAVEN is a bounded security regression engine designed to run 100% self-hosted on your infrastructure. Follow this guide to launch the API, the background evaluator worker, and the mission-control web frontend.

Default Web UI
http://localhost:3000
FastAPI Gateway
http://localhost:8000
Interactive OpenAPI
http://localhost:8000/docs

1. Pre-built Docker Image (Fastest)

Pull a pre-built image from GitHub Container Registry and run immediately without building.

bash
# 1. Pull pre-built images from GitHub Container Registry (ghcr.io)
docker pull ghcr.io/evinbrijesh/raven-web:latest
docker pull ghcr.io/evinbrijesh/raven-api:latest
docker pull ghcr.io/evinbrijesh/raven-worker:latest

# 2. Or run pre-built stack with docker compose
curl -sO https://raw.githubusercontent.com/evinbrijesh/RAVEN/main/infra/docker-compose.ghcr.yml
docker compose -f docker-compose.ghcr.yml up -d

# 3. Verify deployment health
curl http://localhost:8000/health
# {"status":"ok","database":"connected","version":"1.0.0"}

2. Docker Compose (Recommended)

Build from source for full control over the stack.

bash
# 1. Clone repository
git clone https://github.com/evinbrijesh/RAVEN.git
cd RAVEN

# 2. Copy environment template and add your API keys
cp .env.example .env

# 3. Launch the full stack (API, Background Worker, and Next.js Web UI)
docker compose up -d

# 4. Verify deployment health
curl http://localhost:8000/health
# {"status":"ok","database":"connected","version":"1.0.0"}

2. Local Source & Makefile

Best for contributors modifying attacks, evaluator rules, or UI components. Uses uv for fast Python dependency management.

bash
# 1. Clone repository
git clone https://github.com/evinbrijesh/RAVEN.git
cd RAVEN

# 2. Install Python dependencies (via uv) and Node modules
make setup

# 3. Run migrations and seed the ShopHelper sandbox
make db-migrate
make seed

# 4. Start API, Evaluator Worker, and Web UI concurrently
make dev

4. CI/CD Pipeline & Python CLI

Run automated regression gates in GitHub Actions or GitLab CI. Fails the build if newly introduced prompt tweaks regress historical deflection rates.

bash
# 1. Install RAVEN CLI via pip
pip install raven-ai-security

# 2. Configure target endpoint and model credentials
export OPENAI_API_KEY="sk-..."
export RAVEN_TARGET_URL="http://localhost:8000/chat"

# 3. Execute bounded regression scan with SARIF report output
raven scan \
  --target $RAVEN_TARGET_URL \
  --cases catalog/ecommerce_refund.json \
  --fail-on-regression \
  --format sarif > raven-report.sarif

5. Environment Configuration (.env)

Create a .env file in the project root with the following keys.

.env
# RAVEN Core Configuration
RAVEN_DATABASE_URL="sqlite:///./data/raven.db"
RAVEN_API_HOST="0.0.0.0"
RAVEN_API_PORT=8000
RAVEN_WORKER_CONCURRENCY=2

# Evaluator Model Keys (at least one required for LLM-assisted verification)
GEMINI_API_KEY="AIzaSy..."
# or
OPENAI_API_KEY="sk-..."

# Target Sandbox Configuration
TARGET_BASE_URL="http://127.0.0.1:8000"

6. Verification & Next Steps

Once running, check that all three core services respond.

Operational Health Checklist
  • • API Health: curl http://localhost:8000/health returns status: ok
  • • Worker Readiness: curl http://localhost:8000/api/readiness returns queue: ready
  • • Web Mission Control: Navigate to http://localhost:3000/dashboard to run your first scan.