Skip to content

Environment Variables

ThreadLens preserves existing runtime environment variable names even when public docs use the ThreadLens brand. Do not rename these variables as part of documentation updates.

Docker reads values from the repository root .env unless an embedding repository or command overrides the env file. Docker containers can start before credentials are configured, but scouting capabilities depend on the variables available to the runtime.

VariableDefaultCapability unlockedPurpose
PORT4749Optional runtime overrideGo API HTTP port.
SCOUT_DB_PATH../../scout.db from the API working directoryOptional runtime overrideSQLite database path. Docker sets this to /data/scout.db.
SCOUT_FRONTEND_DIST../web/dist from the API working directoryOptional runtime overrideStatic web build directory served by the Go API.
ANTHROPIC_API_KEYEmptyAI scoring, analysis, and reports through Anthropic-backed callsAnthropic-backed AI workflows. How to get →
GEMINI_API_KEYEmptyAI scoring, analysis, and reports through Gemini-compatible callsGemini provider path. How to get →
PARALLEL_API_KEYEmptyGoogle scouting through the configured search providerParallel.ai Search provider for Google scouting. How to get →
BLUESKY_HANDLEEmptyBluesky scoutingBluesky API account handle (e.g. yourname.bsky.social). How to get →
BLUESKY_APP_PASSWORDEmptyBluesky scoutingBluesky App Password (not your login password). How to get →
SCOUT_ENV_FILEEmptyOptional Docker env-file overrideDocker env-file override for embedding repositories.
SCOUT_INIT_DEMOEmptyOptional local demo seedSeeds demo data when set to 1.
SCOUT_AI_BRIDGE_MODEEmptyOptional local host CLI bridgeSet to local to enable local bridge config-file discovery for desktop, Docker development, or self-hosted host-bridge reuse. Leave empty for production if you do not want bridge discovery.
SCOUT_AI_BRIDGE_URLEmptyOptional local host CLI bridgeExplicit local bridge URL, usually generated by pnpm run docker:dev as http://host.docker.internal:4761, but also usable by a self-hoster who runs the bridge on the same machine.
SCOUT_AI_BRIDGE_TOKEN_FILEEmptyOptional local host CLI bridgeToken file readable by the API process, usually /run/secrets/scout-ai-bridge-token in Docker dev or another local path when self-hosting with a host bridge.
SCOUT_AI_BRIDGE_HOST_TOKEN_FILEEmptyOptional Docker dev bridge mountHost token path used only by Docker dev Compose for the read-only token bind mount.
SCOUT_AI_BRIDGE_DISABLEEmptyOptional local host CLI bridge opt-outSet to 1 to disable bridge discovery, health checks, and generation calls for this runtime.
THREADLENS_RUNTIME_MODEself-hostedOptional runtime mode selectionSelects self-hosted or hosted.
SCOUT_ONBOARDING_MODEEmptyOptional Docker onboarding persistenceSet to docker in container environments so the onboarding wizard persists completed configuration to /data/.env. Leave unset for non-containerised installs.
SCOUT_ONBOARDING_ENV_FILE/data/.env when onboarding Docker mode is activeOptional Docker onboarding persistence overrideWritable env-file path used by the backend onboarding service when SCOUT_ONBOARDING_MODE=docker.
SCOUT_ONBOARDING_DISABLEEmptyOptional onboarding skipSet to 1 to skip the onboarding wizard entirely. Useful for automated or pre-configured deployments where all required env vars are already supplied.
SCOUT_TELEMETRY_OPT_INEmptyOptional anonymous telemetrySet to 1 to enable anonymous usage telemetry. Telemetry is off by default and requires a separate UI consent choice. See Telemetry for details.
  • Configure at least one AI provider path, such as ANTHROPIC_API_KEY, before expecting useful scoring, analysis, or reports.
  • Add PARALLEL_API_KEY only when you plan to scout Google Search through the configured search provider.
  • Add both BLUESKY_HANDLE and BLUESKY_APP_PASSWORD before relying on Bluesky scouting.
  • Leave optional runtime overrides unchanged for the first Docker walkthrough unless you already know you need a custom port, database path, frontend dist path, env file, demo seed, or runtime mode.

Use obviously fake values in docs, examples, and bug reports. Do not commit real provider keys, private URLs, hosted credentials, billing tokens, or customer data.

For step-by-step instructions on obtaining each credential, see Credential Setup. For guided setup, see Configuration Basics. For Docker command behavior, see Docker Commands and Profiles. For advanced host bridge usage, see Local AI Bridge. For support resets, POST /api/onboarding/reset resets onboarding progress without deleting env values, projects, queries, posts, reports, or the database.