Configuration Files

Beep.AI.Server uses a layered configuration system:

FilePurposePriority
.envEnvironment variables (secrets, overrides)Highest
config/app_config.jsonPersistent configuration (managed by UI)Medium
app/config_manager.pyDefault values and schemaLowest

Environment Variables

VariableDescriptionDefault
SQLALCHEMY_DATABASE_URIDatabase connection stringsqlite:///app.db
SECRET_KEYFlask session secret key(generated)
BEEP_JWT_SECRETJWT token signing key(generated)
BEEP_OAUTH2_CLIENT_SECRETOAuth2 client credentials—
BEEP_LDAP_BIND_PASSWORDLDAP bind password—
BEEP_AZURE_AD_CLIENT_SECRETAzure AD client secret—
BEEP_APP_DIROverride app directory (Docker)(auto-detected)
BEEP_SYNC_APP_SERVICESSynchronous bootstrapfalse
CELERY_ENABLEDEnable Celery task queuefalse
CELERY_BROKER_URLCelery broker URLredis://localhost:6379/0
REDIS_MANAGEDAuto-start Redis in-appfalse
REDIS_HOSTRedis hostlocalhost
REDIS_PORTRedis port6379
ASYNC_MODESocketIO async modethreading
PYTEST_CURRENT_TESTSet automatically during tests—

Database Configuration

SQLite (Default)

SQLALCHEMY_DATABASE_URI=sqlite:///app.db

PostgreSQL

SQLALCHEMY_DATABASE_URI=postgresql://user:password@localhost:5432/beep_ai

SQL Server

SQLALCHEMY_DATABASE_URI=mssql+pyodbc://user:password@localhost/beep_ai?driver=ODBC+Driver+17+for+SQL+Server

MySQL

SQLALCHEMY_DATABASE_URI=mysql+pymysql://user:password@localhost:3306/beep_ai

Auth Configuration

OAuth2 / OIDC

BEEP_OAUTH2_CLIENT_ID=your-client-id
BEEP_OAUTH2_CLIENT_SECRET=your-client-secret
BEEP_OAUTH2_PROVIDER_URL=https://provider.example.com

LDAP

BEEP_LDAP_SERVER=ldap://ldap.example.com
BEEP_LDAP_BIND_DN=cn=admin,dc=example,dc=com
BEEP_LDAP_BIND_PASSWORD=your-password

Azure AD

BEEP_AZURE_AD_TENANT_ID=your-tenant-id
BEEP_AZURE_AD_CLIENT_ID=your-client-id
BEEP_AZURE_AD_CLIENT_SECRET=your-client-secret

Environment Isolation

Each AI service uses its own Python virtual environment, managed automatically through the admin UI:

  • LLM — llm_requirements.txt, llm_env_config.json
  • RAG — rag_requirements.txt
  • Agents — agents_packages.json, agents_env_config.json
  • MCP — mcp_packages.json, mcp_env_config.json
  • Audio — audio_packages.json
  • Document Extraction — doc_extraction_packages.json
  • Vision — vision_env_config.json
  • Text-to-Image — text_to_image_env_config.json
  • Tooling — tooling_packages.json, tooling_env_config.json
  • Studio — studio_packages.json
Note

Environments are created on-demand through the admin UI. Each service's overview page shows environment status and handles package installation.