This repository was archived by the owner on Aug 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
78 lines (61 loc) · 2.97 KB
/
Copy path.env.example
File metadata and controls
78 lines (61 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# DriftDetector v2 - LLM Provider Configuration
# Copy to .env and fill in your keys for the providers you use
# Core mode (local models) requires NO API keys
# ============================================================================
# LOCAL MODELS (No API keys needed - requires local installation)
# ============================================================================
# OpenClaw (Lightweight, fast local inference)
# Download: https://openclaw.io or use ollama run openclaw
OPENCLAW_HOST=http://localhost:8000
# Ollama (Multi-model local inference)
# Download: https://ollama.ai
# Models: llama2, mistral, neural-chat, etc.
OLLAMA_HOST=http://localhost:11434
# ============================================================================
# CLOUD PROVIDERS (Free tier available)
# ============================================================================
# Groq (Fast, free tier: 30 req/min, 12K tok/min)
# Get key: https://console.groq.com/keys
# Note: Groq keys start with "gsk_" (not "sk-"). Leave blank if unused.
GROQ_API_KEY=
# Cerebras (Fast inference, free tier: 30 req/min, 60K tok/min)
# Get key: https://api.cerebras.ai
CEREBRAS_API_KEY=
# Google Gemini (Long context, free tier: 5-15 req/min, 250K tok/min)
# Get key: https://aistudio.google.com/app/apikeys
GOOGLE_API_KEY=
# OpenRouter (Model diversity, free tier: 20 req/min)
# Get key: https://openrouter.ai/keys
OPENROUTER_API_KEY=
# ============================================================================
# UI/SERVER CONFIGURATION
# ============================================================================
UI_HOST=127.0.0.1
UI_PORT=8000
# CORS Origins (comma-separated)
# Default: restricted to localhost for safety. Expand to your real frontend
# origin(s) in production, e.g. CORS_ORIGINS=https://app.yourdomain.com
# Use "*" ONLY if the dashboard is on a private network behind auth.
CORS_ORIGINS=http://127.0.0.1:8000,http://localhost:8000
# ============================================================================
# DRIFT DETECTION THRESHOLDS
# ============================================================================
# Combined drift threshold (0-1, higher = more forgiving)
# Default: 0.6 = trigger alert at 60% drift
DRIFT_THRESHOLD=0.6
# Individual signal threshold (0-1)
# Default: 0.7 = signal counts if > 70% strength
SIGNAL_THRESHOLD=0.7
# ============================================================================
# SESSION PERSISTENCE (Optional - Default: disabled, in-memory only)
# ============================================================================
# Enable SQLite session storage (default: false = in-memory)
# If true, drift reports are saved to SQLite for historical analysis
PERSIST_SESSIONS=false
# SQLite database path (only if PERSIST_SESSIONS=true)
SESSION_DB_PATH=drift_sessions.db
# ============================================================================
# DEBUG & LOGGING
# ============================================================================
DEBUG=false
LOG_LEVEL=INFO