~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
# Local Deep Research - Environment Variables
# Full Configuration Reference: https://github.com/LearningCircuit/local-deep-research/blob/main/docs/CONFIGURATION.md
#
# Environment variables OVERRIDE web UI settings and LOCK them (read-only in UI).
# Format: LDR_ + setting key with dots replaced by underscores, UPPERCASED
# Example: app.debug -> LDR_APP_DEBUG
#
# IMPORTANT — how these variables reach LDR: this file is a REFERENCE of
# available names. LDR's own code never loads a .env file into its settings;
# it reads only the environment of the server process. (Two things can still
# involve a .env: the bundled slowapi library reads its own RATELIMIT_* keys
# from a .env in the server's working directory, and LDR looks up the legacy
# rate-limit storage URL key there the same way, only to report and redact
# it; and a dependency can put a stray .env's keys into the process
# environment, see docs/env_configuration.md.) To keep your
# values in a file, hand the file to whatever STARTS LDR rather than to LDR:
# - docker compose: put them under the service's `environment:` section,
# or point the service's `env_file:` at your copy
# - docker run: pass them with -e NAME=value, or load the whole file
# with --env-file <file>
# - pip/bare metal: `export NAME=value` before ldr-web (ephemeral), or
# make it persistent via your shell profile or a
# systemd unit's `EnvironmentFile=` pointing at a
# root-owned copy of this file
#
# For most users, configure settings through the web UI at http://localhost:5000/settings
# LLM API Keys
# LDR_LLM_OPENAI_ENDPOINT_API_KEY=your-api-key-here
# LDR_LLM_ANTHROPIC_API_KEY=your-api-key-here
# LDR_LLM_OPENAI_API_KEY=your-openai-key-here
# Search Engine API Keys
# LDR_SEARCH_ENGINE_WEB_BRAVE_API_KEY=
# LDR_SEARCH_ENGINE_WEB_SERPAPI_API_KEY=your-api-key-here
# LDR_SEARCH_ENGINE_WEB_GUARDIAN_API_KEY=your-api-key-here
# LDR_SEARCH_ENGINE_WEB_GOOGLE_PSE_API_KEY=your-google-api-key-here
# LDR_SEARCH_ENGINE_WEB_GOOGLE_PSE_ENGINE_ID=your-programmable-search-engine-id-here
# SearXNG Configuration
# Setting the instance URL here env-locks it (read-only in the web UI) and marks
# it operator-provisioned, which also permits a private/localhost address:
# LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL=http://localhost:8080
# LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_DELAY_BETWEEN_REQUESTS=2.0
#
# Self-hosted SearXNG on localhost/LAN, configured via the web UI instead:
# private / loopback / link-local engine URLs are blocked by default (SSRF
# protection) and need operator approval (see docs/SearXNG-Setup.md).
# Recommended: allowlist only the exact URL origins you use, comma-separated:
# LDR_SEARCH_PRIVATE_ENGINE_URL_ALLOWLIST=http://localhost:8080
# Or (broadest) allow all private engine URLs:
# LDR_SEARCH_ALLOW_PRIVATE_ENGINE_URLS=true
#
# The approvals above cover the instance URL only. Fetching full content from
# private RESULT URLs (e.g. an internal wiki your SearXNG indexes) needs this
# separate opt-in on top of one of them, AND it takes effect only for research
# run under the "unprotected" egress scope (which itself needs the operator
# gate LDR_POLICY_ALLOW_UNPROTECTED_EGRESS=true). Under every other scope, the
# default "adaptive" included, private result URLs stay blocked even with this
# set (LDR logs an INFO line naming the scope). Link-local and cloud-metadata
# addresses stay blocked either way. See docs/SearXNG-Setup.md.
# LDR_SEARCH_ALLOW_PRIVATE_RESULT_FETCH=true