Skip to main content

Configuration

Core Environment Variables

VariableRequiredPurpose
DYNAMIC_AGENTS_URLYes for chatServer-side Dynamic Agents URL
MONGODB_URIYes for persistenceMongoDB connection string
MONGODB_DATABASENoMongoDB database name, default caipe
NEXTAUTH_URLYes when auth enabledPublic UI URL for auth callbacks
NEXTAUTH_SECRETYes when auth enabledSession encryption secret
SSO_ENABLEDNoEnable SSO flow
SKIP_AUTHNoLocal development auth bypass
RAG_SERVER_URLNoRAG backend URL

Local Development

cd ui
npm install

DYNAMIC_AGENTS_URL=http://localhost:8100 \
MONGODB_URI=mongodb://admin:changeme@localhost:27017/caipe?authSource=admin \
NEXTAUTH_URL=http://localhost:3000 \
NEXTAUTH_SECRET=development-secret-change-me \
SKIP_AUTH=true \
npm run dev

Docker Compose

COMPOSE_PROFILES=caipe-ui,dynamic-agents,caipe-mongodb docker compose -f docker-compose.dev.yaml up

The compose files wire DYNAMIC_AGENTS_URL and MONGODB_URI for the packaged services. Override them in .env only when pointing at external services.

Helm

caipe-ui:
config:
DYNAMIC_AGENTS_URL: http://ai-platform-engineering-dynamic-agents:8001
MONGODB_DATABASE: caipe
existingSecret: caipe-runtime-secrets

existingSecret or externalSecrets should provide sensitive values such as MONGODB_URI, OAuth client secrets, and NEXTAUTH_SECRET.