Skip to content

~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.

Merge pull request #1524 from LearningCircuit/feat/api-key-inputs-on-research-page

LearningCircuit924adfc1240c
diff --cc src/local_deep_research/web/templates/pages/research.html
index 2f167224c7,de3450355c..1c7239f385
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@@ -112,10 -111,74 +112,74 @@@
<!-- Context Window Size (for local providers, hidden by default) -->
<div class="ldr-form-group ldr-half" id="context_window_container" style="display: none;">
- <label for="context_window">Context Window Size</label>
+ <label for="context_window">{{ tooltip("Context Window Size", "How much text the model can 'see' at once. Too small: model forgets earlier info. Too large: uses more RAM/VRAM. Only adjust if you see 'context exceeded' errors.") }}</label>
<input type="number" id="context_window" name="context_window" class="ldr-form-control" min="512" max="131072" step="512" value="{{ settings.llm_local_context_window_size }}">
- <span class="ldr-input-help">Context window size in tokens (num_ctx)</span>
+ <span class="ldr-input-help">Context window size in tokens (512-131072)</span>
</div>
+
+ <!-- OpenAI API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="openai_api_key_container" style="display: none;">
+ <label for="openai_api_key">OpenAI API Key</label>
+ <input type="password" id="openai_api_key" name="openai_api_key" class="ldr-form-control"
+ placeholder="sk-..." autocomplete="off">
+ <span class="ldr-input-help">Get your key at platform.openai.com</span>
+ </div>
+
+ <!-- Anthropic API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="anthropic_api_key_container" style="display: none;">
+ <label for="anthropic_api_key">Anthropic API Key</label>
+ <input type="password" id="anthropic_api_key" name="anthropic_api_key" class="ldr-form-control"
+ placeholder="sk-ant-..." autocomplete="off">
+ <span class="ldr-input-help">Get your key at console.anthropic.com</span>
+ </div>
+
+ <!-- Google API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="google_api_key_container" style="display: none;">
+ <label for="google_api_key">Google API Key</label>
+ <input type="password" id="google_api_key" name="google_api_key" class="ldr-form-control"
+ placeholder="AIza..." autocomplete="off">
+ <span class="ldr-input-help">Get your key at aistudio.google.com</span>
+ </div>
+
+ <!-- OpenRouter API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="openrouter_api_key_container" style="display: none;">
+ <label for="openrouter_api_key">OpenRouter API Key</label>
+ <input type="password" id="openrouter_api_key" name="openrouter_api_key" class="ldr-form-control"
+ placeholder="sk-or-..." autocomplete="off">
+ <span class="ldr-input-help">Get your key at openrouter.ai</span>
+ </div>
+
+ <!-- xAI API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="xai_api_key_container" style="display: none;">
+ <label for="xai_api_key">xAI API Key</label>
+ <input type="password" id="xai_api_key" name="xai_api_key" class="ldr-form-control"
+ placeholder="xai-..." autocomplete="off">
+ <span class="ldr-input-help">Get your key at x.ai</span>
+ </div>
+
+ <!-- IONOS API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="ionos_api_key_container" style="display: none;">
+ <label for="ionos_api_key">IONOS API Key</label>
+ <input type="password" id="ionos_api_key" name="ionos_api_key" class="ldr-form-control"
+ placeholder="..." autocomplete="off">
+ <span class="ldr-input-help">Get your key from IONOS AI Model Hub</span>
+ </div>
+
+ <!-- OpenAI Endpoint API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="openai_endpoint_api_key_container" style="display: none;">
+ <label for="openai_endpoint_api_key">Endpoint API Key</label>
+ <input type="password" id="openai_endpoint_api_key" name="openai_endpoint_api_key" class="ldr-form-control"
+ placeholder="API key (if required)" autocomplete="off">
+ <span class="ldr-input-help">API key for your OpenAI-compatible endpoint</span>
+ </div>
+
+ <!-- Ollama API Key (hidden by default, optional for authenticated instances) -->
+ <div class="ldr-form-group ldr-half" id="ollama_api_key_container" style="display: none;">
+ <label for="ollama_api_key">Ollama API Key (Optional)</label>
+ <input type="password" id="ollama_api_key" name="ollama_api_key" class="ldr-form-control"
+ placeholder="Optional, for authenticated instances" autocomplete="off">
+ <span class="ldr-input-help">Only needed for authenticated Ollama instances</span>
+ </div>
</div>
<div class="ldr-form-row">