~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
fix: Remove environment variable checks for LLM API keys
LearningCircuit458c46b8db03
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.pyindex 198f592a59..962f2d2826 100644--- a/src/local_deep_research/config/llm_config.py+++ b/src/local_deep_research/config/llm_config.py@@ -317,24 +317,18 @@ def get_llm(if ((provider == "openai"- and (- get_setting_from_snapshot(- "llm.openai.api_key",- default=None,- settings_snapshot=settings_snapshot,- )- or os.environ.get("LDR_LLM_OPENAI_API_KEY")+ and get_setting_from_snapshot(+ "llm.openai.api_key",+ default=None,+ settings_snapshot=settings_snapshot,))or (provider == "anthropic"- and (- get_setting_from_snapshot(- "llm.anthropic.api_key",- default=None,- settings_snapshot=settings_snapshot,- )- or os.environ.get("LDR_LLM_ANTHROPIC_API_KEY")+ and get_setting_from_snapshot(+ "llm.anthropic.api_key",+ default=None,+ settings_snapshot=settings_snapshot,))or (@@ -461,14 +455,9 @@ def get_llm("llm.anthropic.api_key", settings_snapshot=settings_snapshot)- # Check LDR-prefixed environment variable- if not api_key:- api_key = os.environ.get("LDR_LLM_ANTHROPIC_API_KEY")-if not api_key:logger.warning(- "Anthropic API key not found in settings or LDR_LLM_ANTHROPIC_API_KEY environment variable. Falling back to default model."-+ "Anthropic API key not found in settings. Falling back to default model.")return get_fallback_model(temperature)@@ -490,7 +479,7 @@ def get_llm(if not api_key:logger.warning(- "OpenAI API key not found in settings or LDR_LLM_OPENAI_API_KEY environment variable. Falling back to default model."+ "OpenAI API key not found in settings. Falling back to default model.")return get_fallback_model(temperature)@@ -571,13 +560,9 @@ def get_llm("llm.openai_endpoint.api_key", settings_snapshot=settings_snapshot)- # Check LDR-prefixed environment variable- if not api_key:- api_key = os.environ.get("LDR_LLM_OPENAI_ENDPOINT_API_KEY")-if not api_key:logger.warning(- "OpenAI endpoint API key not found in settings or environment. Falling back to default model."+ "OpenAI endpoint API key not found in settings. Falling back to default model.")return get_fallback_model(temperature)