Aelio
Server

Environment Variables

Complete reference of Aelio server and SDK environment variables.

Server environment variables

VariablePurposeDefault
AELIO_SDK_SECRETShared SDK↔server secretRequired
AELIO_CONFIGPath to config YAMLconfig.yaml
AELIO_PORT / AELIO_SERVER_PORTHTTP port3010
AELIO_MIGRATIONS_PATHDrizzle migrations directoryAuto-detected
AELIO_PUBLIC_PATHStatic files directory (widget.js)Auto-detected
AELIO_TEST_MODE=1Enable /__test__/* endpointsOff
AELIO_DIAGNOSTICS=1Enable /diagnostics endpointOff
AELIO_REQUIRE_LLM_KEY=1Hard-fail without LLM API keyOff
AELIO_TRUST_PROXY=1Trust x-forwarded-for for rate limitingOff
AELIO_VERSIONVersion string in /healthAuto
NODE_ENV=productionStricter production behavior

LLM provider keys

VariableProvider
OPENAI_API_KEYOpenAI LLM + embeddings
ANTHROPIC_API_KEYAnthropic LLM
GEMINI_API_KEYGoogle Gemini
GROQ_API_KEYGroq
VOYAGE_API_KEYVoyage embeddings (Anthropic profile)

WhatsApp (Meta adapter)

VariablePurpose
WA_PHONE_IDMeta phone number ID
WA_TOKENMeta access token
WA_VERIFY_TOKENWebhook verification token
WA_APP_SECRETHMAC signature verification

Sunjet (optional storage engine)

VariablePurpose
SUNJET_API_KEYSunjet ll-server auth
SUNJET_URLSunjet ll-server URL

SDK environment variables

VariablePurposeAlias
AELIO_SDK_SECRETSDK auth secretAELIO_SECRET
AELIO_SERVER_URLWebSocket URL of Aelio server

Frontend (widget) environment variables

VariablePurpose
NEXT_PUBLIC_AELIO_SERVER_URLAelio server HTTP URL (safe for frontend)
VITE_AELIO_SERVER_URLSame, for Vite apps

Only expose the server HTTP URL to the frontend. Never expose AELIO_SDK_SECRET.

Demo project variables (Shopping Testbed)

VariableExamplePurpose
DATABASE_URLpostgres://aelio:aelio@127.0.0.1:55432/aelio_shopPostgres connection
PORT4173App HTTP port
HOST127.0.0.1Bind address
AELIO_SERVER_URLws://127.0.0.1:3010Aelio runtime WebSocket URL
AELIO_SECRETchange-me-in-productionSDK auth secret
AELIO_WIDGET_FILE/path/to/widget.jsOverride widget bundle path

On this page