Skip to main content

Environment Variables Reference

For Docker and production deployments, override these variables instead of editing YAML files directly. Set them in your docker-compose.yml, .env file, or container orchestrator.


General

VariableDescriptionDefault
SPRING_PROFILES_ACTIVEActive profile (use dev to disable auth).empty
UXOPIAN_AI_PORTApplication server port.8080
APP_BASE_URLPublic base URL of the service.empty
CONTEXT_PATHServlet context path (e.g., /ai).empty

Security

VariableDescriptionDefault
APP_SECURITY_SECRET_KEYBase64-encoded AES key for encrypting LLM provider API secrets at rest.empty

LLM Providers

VariableDescriptionDefault
LLM_DEFAULT_PROVIDERDefault LLM provider.openai
LLM_DEFAULT_MODELDefault LLM model name.gpt-5.1
LLM_DEFAULT_PROMPTDefault base prompt ID.basePrompt
LLM_CONTEXT_SIZESliding window size (messages).10
LLM_DEBUGLog full LLM requests/responses (sensitive).false
OPENAI_API_KEYAPI Key for OpenAI.empty
ANTHROPIC_API_KEYAPI Key for Anthropic.none
AZURE_OPENAI_API_KEYAPI Key for Azure OpenAI.none
GEMINI_API_KEYAPI Key for Google Gemini.none
MISTRAL_API_KEYAPI Key for Mistral AI.none
HUGGINGFACE_API_KEYAPI Key for HuggingFace.none
BEDROCK_AWS_ACCESS_KEYAWS access key for Bedrock.none
BEDROCK_AWS_SECRET_KEYAWS secret key for Bedrock.none
Dynamic Provider Configuration

Since v2026.0.0-ft2, LLM API keys are primarily managed via the dynamic provider configuration stored in OpenSearch. The individual environment variables above (OPENAI_API_KEY, etc.) remain functional for bean initialization and YAML bootstrapping.

OpenSearch

VariableDescriptionDefault
OPENSEARCH_HOSTHostname of the OpenSearch instance.localhost
OPENSEARCH_PORTPort of the OpenSearch instance.9200
OPENSEARCH_SCHEMEConnection scheme (http or https).http
OPENSEARCH_USERNAMEOpenSearch username (if secure).empty
OPENSEARCH_PASSWORDOpenSearch password (if secure).empty
OPENSEARCH_FORCE_REFRESH_INDEXForce index refresh after writes (dev only, impacts perf).false

Integrations

VariableDescriptionDefault
FD_WS_URLFlowerDocs Core Web Services URL.null
RENDITION_BASE_URLARender Rendition Server base URL.null
MCP_SSE_URLMCP server SSE endpoint URL.http://localhost:8081/uxopian/ai/sse

Backup

VariableDescriptionDefault
PROMPTS_BACKUP_PATHPath to load/store prompt backups../prompts/
GOALS_BACKUP_PATHPath to load/store goal backups../goals/