Environment Variables
All environment variables supported by Mosaic Stack.
Environment Variables#
Mosaic Stack is configured primarily through environment variables. Below is a reference of all supported variables.
Core Variables#
bash
# Database (use container name + internal port)
DATABASE_URL=postgresql://mosaic:mosaic@postgres:5432/mosaic
# Queue (use container name + internal port)
VALKEY_URL=redis://valkey:6379
# Gateway
GATEWAY_PORT=14242
GATEWAY_CORS_ORIGIN=http://localhost:3000
# Auth
BETTER_AUTH_SECRET=<openssl rand -base64 32>
BETTER_AUTH_URL=http://localhost:14242Provider Keys#
Each provider requires its own API key set via environment variables:
bash
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
ZAI_API_KEY=...
OLLAMA_BASE_URL=http://localhost:11434