-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
80 lines (68 loc) · 2.25 KB
/
Copy pathexample.env
File metadata and controls
80 lines (68 loc) · 2.25 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
79
80
# =====================================================
# Morphix — Environment Variables
# Copy this file to .env and configure the values
# =====================================================
# --- API Keys (at least one required) ---
DEEPSEEK_API_KEY=sk-xxxxxxxxxxx
OPENAI_API_KEY=sk-... (optional)
GROK_API_KEY= (optional)
GOOGLE_API_KEY= (optional, required for web_search)
GOOGLE_CX= (optional, search engine ID)
# --- HuggingFace (optional, speeds up model download) ---
# Without HF_TOKEN, anonymous rate limits apply (slower).
# Create one at https://huggingface.co/settings/tokens
HF_TOKEN=
# --- Database (required) ---
DATABASE_URL=postgresql://postgres:xxx@localhost:5432/morphix
DB_POOL_SIZE=5
DB_MAX_OVERFLOW=10
DB_POOL_PRE_PING=true
DB_POOL_RECYCLE=3600
# --- Ollama (optional, for offline / local mode) ---
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=phi3:mini
# --- Security ---
# Generate ENCRYPTION_KEY: python -c "import base64,os; print(base64.urlsafe_b64encode(os.urandom(32)).decode())"
ENCRYPTION_KEY=
# Generate PASSWORD_HASH: python -c "import bcrypt; print(bcrypt.hashpw(b'your_password', bcrypt.gensalt()).decode())"
PASSWORD_HASH=
# --- Workspace ---
ACTIVE_WORKSPACE=main
# --- General ---
DARK_MODE=true
OFFLINE_MODE=false
LLM_TIMEOUT=60
DEEPSEEK_API_BASE=https://api.deepseek.com # Override for proxies or self-hosted
GROK_API_BASE=https://api.x.ai/v1 # Override for proxies or self-hosted
DEEPSEEK_STRICT_MODE=false
MAX_CONTEXT_TOKENS=128000
DEFAULT_AGENT=developer
FALLBACK_AGENT=conversacional
DEFAULT_WORKFLOW=development
# --- Redis (optional, cache) ---
REDIS_URL=redis://localhost:6379/0
# --- Feature Flags ---
UNDERCOVER_MODE=true
DAEMON_MODE=true
SELF_HEAL_INTERVAL=120
VERBOSE_LOGGING=false
AUTO_FIX_LEVEL=2
CONTEXT_COMPRESSION=true
MAX_SUBTASKS=8
MAX_AGENT_ITERATIONS=8
TOOLS_ENABLED=true
ALLOW_CODE_EXECUTION=true
HOOKS_ENABLED=true
# --- Tool Settings ---
TOOL_MAX_TOKENS_PER_WORKFLOW=8000
TOOL_ENABLE_TOKEN_BUDGET=true
TOOL_MAX_RETRIES=3
TOOL_BACKOFF_BASE=1.5
AGENT_SELF_REFLECTION=false
# --- LLM Settings ---
LLM_MAX_RETRIES=3
LLM_TIMEOUT_SECONDS=60
LLM_BACKOFF_FACTOR=1.5
LLM_RATE_PER_MINUTE=20
LLM_RATE_PER_HOUR=200
# MORPHIX_ENV=production # Uncomment to enforce production safety net (ENCRYPTION_KEY required)