# ============================================= # OmniGuard-Evolved-V2 Environment Configuration # Copy this to .env and fill in your secrets. # ============================================= # --- Server (HF Space-safe defaults) --- OMNIGUARD_HOST=0.0.0.0 OMNIGUARD_PORT=7860 OMNIGUARD_ENV_INSTANCES=2 OMNIGUARD_QUEUE_SIZE=128 OMNIGUARD_EPISODE_LENGTH=8 OMNIGUARD_MAX_LATENCY_STEPS=12 OMNIGUARD_UVICORN_WORKERS=1 OMNIGUARD_LOG_LEVEL=info OMNIGUARD_MAX_REQUEST_BYTES=4000000 OMNIGUARD_WORKER_TIMEOUT_SEC=120 OMNIGUARD_BASE_SEED=3407 # --- Data / Oracle --- OMNIGUARD_ORACLE_CACHE=2000 OMNIGUARD_DISABLE_ORACLE_BOOTSTRAP=1 # --- Curriculum Thresholds --- OMNIGUARD_PHASE1_THRESHOLD=0.20 OMNIGUARD_PHASE2_THRESHOLD=0.55 OMNIGUARD_MIN_EPISODES_PER_PHASE=50 # --- Embeddings (0 = lightweight hash, 1 = transformer model ~600MB) --- OMNIGUARD_EMBED_MODEL=sentence-transformers/all-MiniLM-L6-v2 OMNIGUARD_USE_TRANSFORMER_EMBEDDER=0 OMNIGUARD_EMBED_ON_GPU=0 # --- Redis (optional — server works without it) --- # OMNIGUARD_REDIS_URL=redis://redis_cache:6379/0 # OMNIGUARD_REDIS_STREAM_MAXLEN=50000 # --- Hugging Face --- HF_HOME=/tmp/hf-cache HF_TOKEN= # --- Weights & Biases --- WANDB_PROJECT=omniguard-openenv WANDB_MODE=online WANDB_API_KEY=