Skip to main content

Environment Variables

All variables are read from .env in the repo root. The pnpm local and pnpm self-host scripts auto-generate a .env from .env.example if one doesn’t exist, filling in secrets automatically.

Core

Required for any setup path.
VariableRequiredDefaultDescription
DATABASE_URLYespostgresql://postgres:postgres@localhost:5432/oneglansePostgres connection string
CLICKHOUSE_URLYeshttp://localhost:8123ClickHouse HTTP endpoint
REDIS_HOSTYesredisRedis hostname (localhost for local mode)
REDIS_PORTYes6379Redis port
REDIS_PASSWORDNoRedis auth password
BETTER_AUTH_SECRETYesauto-generatedSession signing secret — auto-generated by setup scripts
INTERNAL_CRON_SECRETYesauto-generatedInternal cron auth token — auto-generated by setup scripts
ONEGLANSE_APP_MODENolocalcloud, local, or self-host — overridden automatically by scripts
APP_URLNohttp://localhost:3000Public-facing URL of the web app
API_BASE_URLNohttp://localhost:3000API base URL (used by tRPC client)

LLM / Response Analysis

At least one LLM key is required to run response analysis after prompt collection.
VariableRequiredDefaultDescription
OPENAI_API_KEYYes (if using OpenAI)OpenAI API key for response analysis
ANTHROPIC_API_KEYYes (if using Claude)Anthropic API key for response analysis
ANALYSIS_LLM_PROVIDERNoopenaiWhich LLM to use: openai or claude

Google OAuth

Required if you want users to sign in to the OneGlanse web app with Google.
VariableRequiredDefaultDescription
GOOGLE_CLIENT_IDNoGoogle OAuth client ID
GOOGLE_CLIENT_SECRETNoGoogle OAuth client secret
Note: these are for web app authentication only. Monitoring Google AI Overview uses a separate browser session captured via /providers.

VPS Auth Upload

Used when transferring local provider sessions to a self-hosted VPS.
VariableRequiredDefaultDescription
ONEGLANSE_VPS_IPNoVPS IP — enables pnpm upload:vps shorthand
AGENT_AUTH_UPLOAD_TOKENNoBearer token to authenticate the auth upload API

Proxy

Required on VPS deployments where direct connections to AI providers are blocked.
VariableRequiredDefaultDescription
THORDATA_PROXY_API_URLNoThorData rotating proxy API endpoint
PROXY_SCHEMENohttpProxy protocol used for ThorData proxy URLs

Agent / Runtime Overrides

Override the browser runtime defaults. Only needed if the pinned defaults aren’t working for your environment.
VariableRequiredDefaultDescription
DEBUG_ENABLEDNoSet to true to enable verbose agent logging
CAMOUFOX_HEADLESS_MODENovirtualBrowser display mode: virtual, headful, or headless
CAMOUFOX_PYTHON_BINNoPath to the Python 3 binary (e.g. /usr/bin/python3)
CAMOUFOX_PIP_SPECNocloverlabs-camoufox==0.5.5Camoufox pip package to install
CAMOUFOX_BROWSER_CHANNELNoofficial/stable/135.0.1-beta.24Browser channel to use

Self-Host Storage & Docker Images

VariableRequiredDefaultDescription
ONEGLANSE_STORAGE_ROOTNo/opt/oneglanse/storageHost path for persistent auth sessions and browser profiles
ONEGLANSE_WEB_IMAGENoGHCR published imageOverride the web app Docker image
ONEGLANSE_AGENT_IMAGENoGHCR published imageOverride the agent Docker image
ONEGLANSE_POSTGRES_IMAGENoGHCR published imageOverride the Postgres Docker image
ONEGLANSE_LANDING_IMAGENoGHCR published imageOverride the landing page Docker image

Database Services (Self-Host / Docker Compose)

These configure the Postgres and ClickHouse containers. Used by docker-compose.yml.
VariableRequiredDefaultDescription
POSTGRES_USERYes (self-host)postgresPostgres user
POSTGRES_PASSWORDYes (self-host)postgresPostgres password
POSTGRES_DBYes (self-host)oneglansePostgres database name
CLICKHOUSE_DBYes (self-host)oneglanseClickHouse database name
CLICKHOUSE_USERYes (self-host)defaultClickHouse user
CLICKHOUSE_PASSWORDYes (self-host)clickhouseClickHouse password