-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
106 lines (91 loc) · 3.59 KB
/
Copy pathexample.env
File metadata and controls
106 lines (91 loc) · 3.59 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# =====================================================
# 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
# MCP server tuning (línea máx. por request, timeout de request y de handshake)
# MCP_MAX_LINE_BYTES=4194304
# MCP_REQUEST_TIMEOUT=120
# MCP_INIT_TIMEOUT=15
# Embeddings (e5). En entornos air-gapped, pre-descarga el modelo
# intfloat/multilingual-e5-large y apunta HF_HOME a la caché local:
# HF_HOME=/ruta/a/hf_cache
# EMBED_NORMALIZE=true
# Backend de embeddings seleccionable.
# EMBED_BACKEND=local # local | ollama | openai | auto
# EMBED_MODEL=intfloat/multilingual-e5-large
# EMBED_DEVICE=auto # auto | cpu | cuda | mps
# EMBED_BATCH_SIZE=32
# EMBED_PRELOAD=false # precalienta en arranque
# EMBED_INDEX_POLICY=auto_rebuild # ante mismatch de stamp: auto_rebuild | strict
# Provisioning de workspaces desde templates/ (novuscv, contentflow).
# OFF por defecto: los workspaces personales no se imponen a otros clones.
# AUTO_PROVISION_WORKSPACES=true
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
# No hay caché Redis en el proyecto: REDIS_URL no existe como setting.
# Si algún día se cablea una caché real, su variable volverá aquí.
# --- 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
# Límite RLIMIT_AS (MB) del sandbox de code_exec (0 = sin límite; no recomendado).
# Se omite automáticamente si la memoria virtual del proceso ya excede el valor.
# SANDBOX_MEMORY_MB=512
# --- Tool Settings ---
TOOL_MAX_TOKENS_PER_WORKFLOW=80000
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_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)
# PATH para procesos hijos (bash/MCP/git) — amplíalo si tus herramientas
# viven en venvs o ~/.local/bin (default: /usr/local/bin:/usr/bin:/bin)
#MORPHIX_CHILD_ENV_PATH=/opt/venvs/morphix/bin:/usr/local/bin:/usr/bin:/bin