概要
OpenAIとGeminiのDeep Researchに代わるオープンソースの選択肢。
AI・機械学習できること
- Recursive multi-hop research: Generates SERP queries, scrapes pages with Firecrawl, extracts concrete learnings and follow-up questions, and recurses with halved breadth until reaching the configured depth.
- Bounded parallel execution: Runs search and extraction queries concurrently via p-limit (configurable with CONCURRENCY_LIMIT) while streaming live progress over Server-Sent Events (SSE).
- OpenAI-compatible providers: Works out of the box with OpenAI (gpt-5-mini, gpt-5, gpt-4.1-mini, o4-mini) or any OpenAI-compatible API via OPENAI_BASE_URL and OPENAI_MODEL (OpenRouter, Ollama, vLLM, Azure OpenAI).
- Markdown export: Renders reports with GitHub Flavored Markdown and exports directly to research_report.md.
計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルOpen Deep Research
An open-source web interface for recursive web research, built with Next.js, the Vercel AI SDK, and Firecrawl. Give it a topic, answer a few clarifying questions, and it plans search queries, crawls sources in parallel, recurses into follow-up questions across configurable breadth and depth, and outputs a cited Markdown report.
Based on the original dzhng/deep-research CLI.
Architecture
flowchart TD
A["User Query"] --> B["/api/feedback: Clarifying Questions"]
B --> C["Combined Research Brief"]
C --> D["/api/research (SSE Stream)"]
D --> E["Generate SERP Queries (up to breadth)"]
E --> F["Parallel Firecrawl Search (p-limit concurrency)"]
F --> G["Extract Learnings & Follow-up Questions"]
G --> H{"depth > 1 and follow-ups?"}
H -- "Yes (depth - 1, ceil(breadth / 2))" --> E
H -- "No" --> I["Deduplicate Learnings & Source URLs"]
I --> J["Synthesize Markdown Report"]
J --> K["Render in UI & Export .md"]
Features
- Recursive multi-hop research: Generates SERP queries, scrapes pages with Firecrawl, extracts concrete learnings and follow-up questions, and recurses with halved breadth until reaching the configured depth.
- Bounded parallel execution: Runs search and extraction queries concurrently via
p-limit(configurable withCONCURRENCY_LIMIT) while streaming live progress over Server-Sent Events (SSE). - OpenAI-compatible providers: Works out of the box with OpenAI (
gpt-5-mini,gpt-5,gpt-4.1-mini,o4-mini) or any OpenAI-compatible API viaOPENAI_BASE_URLandOPENAI_MODEL(OpenRouter, Ollama, vLLM, Azure OpenAI). - Markdown export: Renders reports with GitHub Flavored Markdown and exports directly to
research_report.md. - Optional bring-your-own-keys mode: Supports server-side
.env.localkeys for self-hosting or HTTP-only cookie key entry for shared deployments.
Quickstart
Prerequisites
- Node.js 20 or later (Node 22 recommended)
- An OpenAI (or OpenAI-compatible) API key
- A Firecrawl API key (or a self-hosted Firecrawl instance)
Setup
Clone the repository and install dependencies:
git clone https://github.com/fdarkaou/open-deep-research.git cd open-deep-research npm installCopy
.env.exampleto.env.localand fill in your keys:cp .env.example .env.localOPENAI_API_KEY=sk-... FIRECRAWL_KEY=fc-... NEXT_PUBLIC_ENABLE_API_KEYS=falseStart the development server:
npm run devOpen http://localhost:3000.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
OPENAI_API_KEY |
Yes* | - | API key for OpenAI or an OpenAI-compatible endpoint (OPENAI_KEY is also supported as a fallback). |
OPENAI_BASE_URL |
No | OpenAI default | Custom base URL for OpenRouter, Ollama, vLLM, or Azure OpenAI gateways. |
OPENAI_MODEL |
No | UI selection (gpt-5-mini) |
Forces a specific model ID for all server requests (useful with custom providers). |
FIRECRAWL_KEY |
Yes* | - | Firecrawl API key used for web search and Markdown scraping. |
FIRECRAWL_BASE_URL |
No | Firecrawl Cloud | Base URL for a self-hosted Firecrawl instance (for example, http://localhost:3002). |
CONCURRENCY_LIMIT |
No | 2 |
Maximum number of concurrent search and extraction tasks across recursion levels. |
NEXT_PUBLIC_ENABLE_API_KEYS |
No | false |
Set to true to show the browser API key modal and store user-supplied keys in HTTP-only cookies. |
* Not required in .env.local when NEXT_PUBLIC_ENABLE_API_KEYS=true.
Self-Hosting & Custom Providers
OpenRouter
OPENAI_API_KEY=sk-or-v1-...
OPENAI_BASE_URL=https://openrouter.ai/api/v1
OPENAI_MODEL=anthropic/claude-sonnet-4
Local Models (Ollama / vLLM)
OPENAI_API_KEY=ollama
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_MODEL=qwen3:14b
Make sure the model you select supports structured JSON outputs for query planning and learning extraction.
Self-Hosted Firecrawl
Point FIRECRAWL_BASE_URL at your own Firecrawl deployment:
FIRECRAWL_BASE_URL=http://localhost:3002
FIRECRAWL_KEY=local
Development & Verification
npm run typecheck # TypeScript strict type check
npm test # Unit tests (Vitest)
npm run build # Production Next.js build
License
MIT. See LICENSE.
Acknowledgements
- Original research loop: dzhng/deep-research
- Built with Next.js, Vercel AI SDK, Firecrawl, and shadcn/ui
関連プロジェクトを探す
読み込み中…