Configuration

OpenVibely is configured primarily with environment variables. start.sh loads .env when present, then starts the server.

Runtime Variables

VariableDefaultPurpose
PORT3001 in server mode, 0 in desktop modeHTTP port; desktop uses ephemeral by default
DATABASE_PATH~/.openvibely/openvibely.db (both modes)SQLite database path
DATABASE_URLemptyLoaded but not used by server startup
ENVIRONMENTdevelopmentRuntime label
PROJECT_REPO_ROOT~/.openvibely/repos (both modes)Managed clone root
OPENVIBELY_APP_DATA_DIRmode-specificOverrides app-data root and changes DB/repo defaults
OPENVIBELY_ENABLE_LOCAL_REPO_PATHfalse in server, true in desktopEnables local path project source mode

Auth Variables

VariablePurpose
AUTH_ENABLEDExplicit built-in login toggle
AUTH_USERNAMELogin username
AUTH_PASSWORDLogin password
AUTH_SESSION_SECRETHMAC secret for ov_session cookie
AUTH_SESSION_TTLSession lifetime, default 24h

If AUTH_ENABLED is unset, auth is inferred enabled when both username and password are present. If auth is enabled, username, password, and session secret are required.

Model Provider Configuration

Most model setup happens in the Models UI, not environment variables. Use that screen to configure provider auth, default models, OpenAI-compatible base URLs, gateway headers, and model discovery/manual model IDs. Environment variables are mainly for bootstrap secrets and deployment-wide OAuth settings.

Integration Variables

Email IMAP/SMTP settings, channel Authorized Users/Senders, Outbound Message Targets, and the explicit-unsaved-target policy are configured in the Channels UI. Inbound allowlists are system-level; outbound targets and policy are stored per project.

Deployment Variables