MrTechKing

7 min read

Local Deep Research: Private AI Research Reports With Citations (GitHub, Scanned)

A free self-hosted research assistant that searches the web, papers and your own files, then writes cited reports with local AI.

Local Deep Research logo
✅
Scan: safe. Nothing malicious, and no telemetry. Two things to know: the default setup lets anyone on your network sign up until you turn registrations off, and one critical advisory sits in a parser feature the code never uses. Scanned Nov 28, 2026; the full report is below.

Local Deep Research is a free, self-hosted research assistant: you ask a hard question in a web page on your own machine, and it searches the web, academic sources such as arXiv, PubMed and Semantic Scholar, and your own documents, then writes a report with citations. It works with a local model in Ollama or LM Studio, or with any cloud model you choose. In the first ten minutes, with Docker installed, one compose command starts it together with Ollama and a private SearXNG search engine; you pull a model, open localhost:5000, make an account and run a first quick summary.

It earns its place by going further than one search-and-summarise pass. Its LangGraph agent strategy lets the model choose which engines to query and when to stop, which is how the project reports about 95% on the SimpleQA benchmark with Qwen3.6-27B on a single RTX 3090. Sources it finds can be saved into an encrypted library that is indexed for later questions, so your knowledge base grows with each run, and topic subscriptions can send scheduled research digests. Each user's data sits in a separate SQLCipher database encrypted with their password, and an egress setting limits where a run may send traffic.

It is MIT-licensed and made by LearningCircuit with about 120 contributors, with about 9,700 stars since February 2025. It moves very fast, with 178 releases and over 1,300 open issues; version 2.0.5 came out on 28 November 2026.

Who it is for

Researchers, students, analysts and journalists who want cited answers while keeping control of their data, plus home-server and Unraid users. You need Docker, or Python 3.12 or newer with pip, a CPU with AVX, and for fully local research a GPU or Apple Silicon Mac that can run a mid-sized model; cloud models work too.

Getting started

1. Download the compose file and start Local Deep Research, Ollama and SearXNG (CPU only)

curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d

2. Pull a model into the bundled Ollama (the README's example; pick one your hardware can run)

docker exec ollama_service ollama pull gpt-oss:20b

3. Open the web app after about 30 seconds and create your account

http://localhost:5000

4. Or install with pip, running Ollama and SearXNG yourself

pip install local-deep-research
python -m local_deep_research.web.app

5. Stop it (your data stays in the Docker volume)

docker compose down

The compose file publishes port 5000 on every network interface and leaves sign-ups open, so anyone on your network can reach the page and create an account; after making yours, set LDR_APP_ALLOW_REGISTRATIONS=false, or change the port line to 127.0.0.1:5000:5000. Accounts, the library and settings live in a Docker volume, encrypted per user. A self-hosted SearXNG still forwards your queries to public search engines, cloud models see your prompts, and the journal-quality filter downloads public journal lists from OpenAlex, DOAJ and GitHub the first time it runs. The container starts as root only to fix volume ownership, then switches to an unprivileged user. Our scan covers the source, not the published Docker image.

Safety scan

We cloned LearningCircuit/local-deep-research at commit b5fcf28 on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 14 secret hits, all made-up test values: xoxb-SECRET-TOKEN in tests/notifications/test_manager.py (6), a shortened PEM header in tests/security/test_data_sanitizer_extended.py, ghp_ABCD... and github_pat_ placeholders plus xoxb-internal-doc in tests/security/test_log_sanitizer.py (5), and AKIAABCDEFGHIJKLMNOP in tests/security/test_secure_logging_writes.py (2). They check that the app scrubs keys from its logs. No committed binaries across 4,942 files and about 2 million lines, about 1.26 million of them tests.
  • 3 pattern hits. scripts/dev/restart_server.sh line 116 opens /dev/tcp to test whether a port is in use, in a developer restart script. The two Telegram hits are test files describing and checking how the notification code builds api.telegram.org URLs, which happens only if you set up Telegram alerts through Apprise.
  • No install hooks or install scripts in the package; the one script the scanner lists is a CI helper for pre-commit updates. Docker images are signed with Cosign and ship SBOMs and provenance, and the compose file drops all capabilities, sets no-new-privileges and pins the bundled Ollama and SearXNG images by digest.
  • 2 advisories in pdm.lock, both in unstructured 0.18.32, the document parser: 1 critical (GHSA-4mvj-m6j5-pmf7, server-side request forgery when partition() is handed a URL) and 1 moderate (XSS in its HTML output). The fixed releases do not install on Python 3.14, which the image uses. We checked the source: the app only calls partition(filename=...) on local files and keeps the extracted text, never imports the URL-taking loaders, and tests/security/test_unstructured_url_partition_tripwire.py fails the build if that changes. The 8 npm lockfiles (858 packages, front end and test tools) have none.
  • The code calls only the search engines and model provider you configure (SearXNG and Ollama by default) plus the academic sources you pick; we found no analytics, matching the README's no-telemetry statement, and the app even switches off unstructured's own usage ping. 92 workflows; 3 run on pull_request_target, and all 3 check out the base branch: the AI code reviewer runs only when a maintainer adds a label and reads the pull request as a diff, and none runs fork code. 251 of 326 third-party action uses are pinned to commits. Security policy, Dependabot and CodeQL present; OpenSSF Scorecard gives it 8.7 out of 10.

What the scanner counted

CheckResult
Secrets14 candidates found and read; see the notes above.
Suspicious code3 pattern hits found and read; every one is listed under the raw findings.
Install-time code1 installer script
Committed binariesNone.
CI workflows92 workflows. 5 use pull_request_target, 1 of which check out the pull request head. 75 of 326 third-party actions pinned to a tag rather than a commit.
Network hosts40 distinct hosts referenced from source; most often arxiv.org, a.com, example.test, github.com. 158 URLs to a bare IP address, listed under the raw findings.
Known vulnerabilities2 advisories across 813 pinned packages: 1 critical, 0 high, 1 moderate, 0 low. package-lock.json: 216 packages, 0 advisories; pdm.lock: 317 packages, 2 advisories; tests/accessibility_tests/package-lock.json: 287 packages, 0 advisories; tests/api_tests_with_login/package-lock.json: 54 packages, 0 advisories; tests/infrastructure_tests/package-lock.json: 91 packages, 0 advisories; tests/package-lock.json: 54 packages, 0 advisories; tests/puppeteer/package-lock.json: 126 packages, 0 advisories; tests/ui_tests/package-lock.json: 27 packages, 0 advisories; tests/ui_tests/playwright/package-lock.json: 3 packages, 0 advisories.
Project hygieneHas security policy, automated dependency updates, CodeQL, licence file, contributing guide.
OpenSSF Scorecard8.7 out of 10, as of Nov 28, 2026.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Secret candidates (14, redacted)
WhereRuleMatch
tests/notifications/test_manager.py:705slack-tokenxoxb-S…KEN (17 chars)
tests/notifications/test_manager.py:706slack-tokenxoxb-S…KEN (17 chars)
tests/notifications/test_manager.py:716slack-tokenxoxb-S…KEN (17 chars)
tests/notifications/test_manager.py:721slack-tokenxoxb-S…KEN (17 chars)
tests/notifications/test_manager.py:773slack-tokenxoxb-S…KEN (17 chars)
tests/notifications/test_manager.py:776slack-tokenxoxb-S…KEN (17 chars)
tests/security/test_data_sanitizer_extended.py:157private-key-----B…--- (31 chars)
tests/security/test_log_sanitizer.py:332github-tokenghp_AB…789 (40 chars)
tests/security/test_log_sanitizer.py:333github-tokenghp_AB…789 (40 chars)
tests/security/test_log_sanitizer.py:336github-tokengithub…dEf (62 chars)
tests/security/test_log_sanitizer.py:337github-tokengithub…dEf (62 chars)
tests/security/test_log_sanitizer.py:384slack-tokenxoxb-i…doc (17 chars)
tests/security/test_secure_logging_writes.py:269aws-access-keyAKIAAB…NOP (20 chars)
tests/security/test_secure_logging_writes.py:285aws-access-keyAKIAAB…NOP (20 chars)
Pattern hits (3)
WhereRuleMatch
scripts/dev/restart_server.sh:116raw-socket-shelllocal probe='exec 3<>"/dev/tcp/$1/$2"'
tests/notifications/test_tgram_notify_log_utils.py:4exfil-host (test/example)notifying (``telegram.py`` builds ``https://api.telegram.org/bot<token>/...``
tests/security/test_tgram_notification_security.py:124exfil-host (test/example)"https://api.telegram.org/bot123456789:Token_abc-123/sendMessage"
URLs to bare IP addresses (158)
WhereRuleMatch
tests/advanced_search_system/tools/test_fetch_cache_titles.py:27ip-literal-urlURL = "https://93.184.216.34/fixture-title"
tests/embeddings/test_ollama_embeddings.py:906ip-literal-url"http://100.100.100.200",
tests/embeddings/test_openai_embeddings_ssrf.py:14ip-literal-url"http://100.100.100.200/latest/meta-data",
tests/llm_providers/test_sampling_parameters.py:1660ip-literal-urlassert is_endpoint_local("http://100.101.102.103:8080/v1") is True
tests/llm_providers/test_sampling_parameters.py:1661ip-literal-urlassert is_endpoint_local("http://100.64.0.1:11434") is True
tests/llm_providers/test_sampling_parameters.py:1662ip-literal-urlassert is_endpoint_local("http://100.127.255.254:8080") is True
tests/research_library/downloaders/test_playwright_html_ssrf_guard.py:1851ip-literal-url("http://192.0.2.1/paper", "http://192.0.2.1/robots.txt"),
tests/research_library/downloaders/test_playwright_html_ssrf_guard.py:1851ip-literal-url("http://192.0.2.1/paper", "http://192.0.2.1/robots.txt"),
tests/research_library/downloaders/test_playwright_html_ssrf_guard.py:1853ip-literal-url"http://192.0.2.1:8080/paper?view=full",
tests/research_library/downloaders/test_playwright_html_ssrf_guard.py:1854ip-literal-url"http://192.0.2.1:8080/robots.txt",
tests/research_library/test_library_sync_contracts.py:2458ip-literal-urlrefused_url = "https://8.8.8.8/papers/refused.pdf"
tests/security/test_egress_elasticsearch_host_shapes.py:250ip-literal-urlnodes = [f"http://{other_host}:9200", "http://198.18.3.4:9200"]
tests/security/test_egress_elasticsearch_host_shapes.py:268ip-literal-urlnodes = ["http://10.0.0.42:9200", "http://93.184.216.34:9200"]
tests/security/test_egress_elasticsearch_host_shapes.py:597ip-literal-urlPUBLIC_URL = "http://93.184.216.34:9200"
tests/security/test_egress_elasticsearch_host_shapes.py:598ip-literal-urlFAKE_IP_URL = "http://198.18.3.4:9200"
tests/security/test_egress_engine_run_overrides.py:28ip-literal-url"search.engine.web.searxng.default_params.instance_url": "https://93.184.216.34",
tests/security/test_egress_fake_ip_classification.py:153ip-literal-url"http://198.18.3.4:9200",
tests/security/test_egress_fake_ip_classification.py:204ip-literal-urlassert evaluate_url("http://198.18.3.4:8000/api", ctx).allowed
tests/security/test_egress_fake_ip_classification.py:254ip-literal-urlassert evaluate_url("http://198.18.0.7/", ctx).allowed
tests/security/test_egress_fullsearch.py:62ip-literal-url_PUBLIC_URL = "http://93.184.216.34/page"
tests/security/test_egress_fullsearch.py:178ip-literal-urlsensitive_url = "http://93.184.216.34/secret/report?token=SUPERSECRET"
tests/security/test_egress_fullsearch.py:206ip-literal-urlassert logged_url == "http://93.184.216.34"
tests/security/test_egress_fullsearch.py:231ip-literal-url_PUBLIC_HOP = "http://93.184.216.34/next"
tests/security/test_egress_fullsearch.py:639ip-literal-url("198.18.0.7:8080", "http://198.18.0.7:8080"),
and 134 more
Installer scripts (1)
Worst known vulnerabilities (2 of 2)
AdvisorySeverityPackageSummary
GHSA-4mvj-m6j5-pmf7criticalunstructured@0.18.32unstructured: Server-Side Request Forgery in the URL-based partitioning
GHSA-v5mq-3xhg-98m9moderateunstructured@0.18.32unstructured: Stored XSS via unescaped HTML generation
Workflows worth a look

By the numbers

Stars9,685
Forks960
Contributors124
Commits8,966
Open issues1,385
Open pull requests640
Releases178
Latest releasev2.0.5
LicenceMIT
Main languagePython
Project age1 year
Last pushNov 28, 2026
Tracked files4,942
Lines of code2M
Checkout size81 MB

Lines by language: Python 1.6M, JavaScript 249.5K, Markdown 44.7K, JSON 25.9K, CSS 25.2K, YAML 24.4K.

Questions

Is Local Deep Research free?

Yes. It is MIT-licensed and free, with no paid tier. Costs come only from what you plug in: a cloud model or premium search APIs such as Tavily or SerpAPI bill you directly, while Ollama and SearXNG cost nothing.

Local Deep Research or GPT Researcher?

Local Deep Research for a full web app with accounts, an encrypted library of saved sources and a strong focus on local models and privacy. GPT Researcher, also on this list, for a lighter Python library and CLI that is quicker to drop into your own code.

Does Local Deep Research send my data anywhere?

Only where you point it. There is no telemetry; searches go to the engines you enable and prompts to the model you choose. With Ollama and only local sources under the Private only scope, a run stays on your machine, although SearXNG itself still queries public search engines.

What hardware do I need?

A CPU with AVX and Docker is enough with a cloud model. For fully local research, a GPU with 16 GB or more, or an Apple Silicon Mac with plenty of memory, runs the mid-sized models that give good reports; the headline benchmark used one RTX 3090.

Do I need to know how to code?

No coding, but you need to be comfortable running Docker commands. After that everything happens in the web page.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.