Skip to main content
All variables are read from .env in the repo root. If .env does not exist, pnpm local and node scripts/run-compose.mjs bootstrap create it from .env.example. If BETTER_AUTH_SECRET or INTERNAL_CRON_SECRET are blank or still set to replace-me, those startup paths generate secure values automatically before launch.

Core

Required for any setup path.
VariableRequiredDefaultDescription
DATABASE_URLYespostgresql://postgres:postgres@localhost:5432/oneglansePostgres connection string
CLICKHOUSE_URLYeshttp://localhost:8123ClickHouse HTTP endpoint
REDIS_HOSTYeslocalhostRedis hostname in .env; Docker self-hosting overrides this internally to redis
REDIS_PORTYes6379Redis port
REDIS_PASSWORDNoredisRedis auth password (set to redis in the local Docker setup)
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_MODENolocallocal 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 pnpm auth.

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. This is needed because most VPS providers use datacenter IP ranges, and those IPs are commonly blocked or challenged by AI chat products. OneGlanse uses the proxy only for provider website traffic from the VPS browser runtime. For ThorData on VPS, the recommended setup is to whitelist your VPS IP first, generate the endpoint with Whitelisted IPs + API Link, keep Sticky session enabled for prompt runs, and pick a valid country where the providers are supported and your audience is located.
VariableRequiredDefaultDescription
THORDATA_PROXY_API_URLNoThorData rotating proxy API endpoint
PROXY_SCHEMENohttpProxy protocol used for ThorData proxy URLs
If you are using ThorData, whitelist your VPS public IP in the ThorData dashboard before generating the proxy endpoint. That keeps authentication simpler and is the recommended setup for OneGlanse on VPS deployments. Use these ThorData endpoint generator settings:
  • Authentication method: Whitelisted IPs
  • Endpoint type: API Link
  • Session setting: Sticky session
  • Country: choose a valid country where the providers are available and where your target audience is located
Use the generated API link as THORDATA_PROXY_API_URL. Keep sticky sessions enabled for prompt runs so the provider flow stays on a stable residential IP long enough for sign-in and response collection to complete reliably. Recommended ThorData endpoint generator settings: Whitelisted IPs, API Link, Sticky session, and a valid supported country If you still run into proxy issues after using this setup, email aryamant20@gmail.com or open a pull request if you want support for additional proxy providers or authentication methods.

Agent / Runtime Overrides

Override the browser runtime defaults. Only needed if the pinned defaults aren’t working for your environment. OneGlanse uses Camoufox as its provider browser runtime. This is an anti-fingerprint Firefox-based browser chosen because standard Chrome / Chromium automation is less reliable for authenticated scraping against provider chat UIs.
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

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