Skip to main content
Environment variables configure Panguard services at startup. Set them in your shell profile, .env file, or container orchestration system.

Panguard Guard

Guard uses a three-layer AI system. At minimum, configure OLLAMA_ENDPOINT for local analysis (Layer 1). Add ANTHROPIC_API_KEY or OPENAI_API_KEY for cloud-based analysis (Layer 2/3).

Panguard Threat Cloud

ALLOW_ANONYMOUS_UPLOAD=true enables users to submit threat data without an API key. Uploaded data still goes through validation and reputation scoring.

Docker / Production

Setting NODE_ENV=production:
  • Disables debug logging and stack traces in error responses
  • Enables response compression
  • Enables stricter security headers
  • Disables development-only routes

Precedence

Environment variables take precedence over configuration file values. The resolution order is:
  1. Environment variables (highest priority)
  2. Configuration file values (config.json)
  3. Built-in defaults (lowest priority)
For local development, create a .env file in the service directory and use a tool like dotenv to load it. Never commit .env files to version control.