# ──────────────────────────────────────────────────────────────────
# SICRY — Environment Configuration
# Copy this to .env and fill in your values
# ──────────────────────────────────────────────────────────────────

# ── TOR ───────────────────────────────────────────────────────────
TOR_SOCKS_HOST=127.0.0.1
TOR_SOCKS_PORT=9050
TOR_CONTROL_HOST=127.0.0.1
TOR_CONTROL_PORT=9051
# TOR_CONTROL_PASSWORD=your_password_here  # only if you set one in torrc
# TOR_DATA_DIR=/tmp/tor_data              # path to Tor DataDirectory (for cookie auth)
TOR_TIMEOUT=45

# ── LLM PROVIDER ─────────────────────────────────────────────────
# Which backend to use: openai | anthropic | gemini | ollama | llamacpp
LLM_PROVIDER=openai

# ── OpenAI ────────────────────────────────────────────────────────
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-4o

# ── Anthropic / Claude ────────────────────────────────────────────
ANTHROPIC_API_KEY=sk-ant-...
ANTHROPIC_MODEL=claude-opus-4-5

# ── Google Gemini ─────────────────────────────────────────────────
GEMINI_API_KEY=AIza...
GEMINI_MODEL=gemini-2.5-flash

# ── Ollama (local, no key needed) ─────────────────────────────────
# Run: OLLAMA_HOST=0.0.0.0 ollama serve &
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=llama3.2

# ── llama.cpp server (local, no key needed) ───────────────────────
LLAMACPP_BASE_URL=http://127.0.0.1:8080

# ── SICRY BEHAVIOUR ───────────────────────────────────────────────
# Max characters of scraped content to pass to the LLM
SICRY_MAX_CHARS=8000
# TTL for the fetch() result cache (seconds). 0 = disable caching.
SICRY_CACHE_TTL=600

# ── SICRY v2.0.0 NEW SETTINGS ────────────────────────────────────
# Path to the SQLite database (replaces JSON cache files)
SICRY_DB_PATH=~/.sicry/sicry.db
# TTL for search() result cache (seconds)
SICRY_SEARCH_CACHE_TTL=1800
# TTL for engine health check cache (seconds)
SICRY_ENGINE_CACHE_TTL=3600
# TorPool circuit count (0 = disabled, use single Tor)
# Recommended: 2–4 circuits; each uses ~50 MB RAM and one Tor entry guard.
# Example: SICRY_POOL_SIZE=3  ← good starting point for most investigations.
SICRY_POOL_SIZE=0
# Base SOCKS port for TorPool circuits (9060, 9061, …)
SICRY_POOL_BASE_PORT=9060
# Watch/alert default re-check interval (hours)
SICRY_WATCH_INTERVAL=6
