Skip to content

Configuration Reference

All configuration is done via environment variables in a .env file.

VariableDefaultDescription
LLM_BASE_URLhttps://openrouter.ai/api/v1OpenAI-compatible API base URL
LLM_API_KEY(empty)API key. Leave empty for local servers that don’t require auth
LLM_MODELmoonshotai/kimi-k2-thinkingModel identifier sent in API requests
LLM_TIMEOUT120Request timeout in seconds
LLM_TIMEOUT_RETRIES1Number of times to retry the LLM call if it times out. On timeout, the runtime sends a continue prompt to resume generation
ProviderBase URL
llama.cpphttp://localhost:8080/v1
Ollamahttp://localhost:11434/v1
vLLMhttp://localhost:8000/v1
OpenRouterhttps://openrouter.ai/api/v1
OpenAIhttps://api.openai.com/v1

Settings for the isolated Docker container used by the runpy and bash tools. The sandbox image is built from docker/tools/Dockerfile. See Docker Setup for build instructions.

VariableDefaultDescription
SANDBOX_IMAGEevonic-sandbox:latestDocker image used for the sandbox container
SANDBOX_MEMORY_LIMIT512mMemory limit per container
SANDBOX_CPU_LIMIT1CPU limit per container
SANDBOX_NETWORKnoneNetwork mode — none or bridge
SANDBOX_MAX_CONTAINERS10Maximum number of containers in the pool (LRU eviction)
SANDBOX_IDLE_TIMEOUT1800Idle timeout in seconds before container is destroyed (30 min)
SANDBOX_WORKSPACE(project root)Host path mounted at /workspace inside the container
VariableDefaultDescription
TWO_PASS_ENABLED1Enable two-pass answer extraction (1 or 0)
TWO_PASS_TEMPERATURE0.0Temperature for the extraction pass. Low values improve consistency
VariableDefaultDescription
HOST0.0.0.0Server bind address
PORT8080Server port
DEBUG1Enable Flask debug mode (1 or 0)
SECRET_KEYdev-secret-key-...Flask session secret. Change in production
VariableDefaultDescription
LOG_FULL_THINKING0Include full LLM thinking content in live log output
LOG_FULL_RESPONSE0Include full LLM response in live log output

Settings for the Evonet WebSocket relay server that enables Cloud Workplaces.

VariableDefaultDescription
CONNECTOR_WS_HOST0.0.0.0Bind address for the Evonet relay server
CONNECTOR_WS_PORT8081Port for the Evonet relay server
CONNECTOR_PING_INTERVAL30WebSocket keepalive ping interval in seconds
CONNECTOR_PING_TIMEOUT10Ping timeout in seconds before marking connector offline
CONNECTOR_PAIRING_CODE_TTL300Pairing code validity window in seconds (default: 5 minutes)

The relay server starts automatically on application boot. Ensure port 8081 (or your configured port) is reachable by devices running Evonet.

VariableDefaultDescription
ANTHROPIC_API_KEY(empty)Anthropic API key for the improver module

Override the default evaluator strategy for specific domains:

EVALUATOR_MATH=keyword
EVALUATOR_CONVERSATION=two_pass
EVALUATOR_SQL=sql_executor

The environment variable format is EVALUATOR_<DOMAIN_UPPERCASE>. Available types: two_pass, keyword, sql_executor, tool_call.

These are configured in config.py (not via .env):

SettingDefaultDescription
DB_PATHevonic.dbMain SQLite database
TEST_DB_PATHseed/test_db.sqliteSQLite database used for SQL evaluation tests