An AI-powered research assistant that performs iterative, deep research on any topic by combining search engines, web scraping, and large language models. The
An AI-powered research assistant that performs iterative, deep research on any topic by combining search engines, web scraping, and large language models. The
An AI-powered research assistant that performs iterative, deep research on any topic by combining search engines, web scraping, and large language models.
The goal of this repo is to provide the simplest implementation of a deep research agent - e.g. an agent that can refine its research direction over time and deep dive into a topic. Goal is to keep the repo size at <500 LoC so it is easy to understand and build on top of.
If you like this project, please consider starring it and giving me a follow on X/Twitter. This project is created by Duet.
…npm install.env.local file:FIRECRAWL_KEY="your_firecrawl_key"
# If you want to use your self-hosted Firecrawl, add the following below:
# FIRECRAWL_BASE_URL="http://localhost:3002"
OPENAI_KEY="your_openai_key"To use local LLM, comment out OPENAI_KEY and instead uncomment OPENAI_ENDPOINT and OPENAI_MODEL:
OPENAI_ENDPOINT to the address of your local server (eg."http://localhost:1234/v1")OPENAI_MODEL to the name of the model loaded in your local server.Clone the repository
Rename .env.example to .env.local and set your API keys
Run docker build -f Dockerfile
Run the Docker image:
docker compose up -dnpm run docker in the docker service:docker exec -it deep-research npm run dockerRun the research assistant:
npm startYou'll be prompted to:
The system will then:
The final report will be saved as report.md or answer.md in your working directory, depending on which modes you selected.
If you have a paid version of Firecrawl or a local version, feel free to increase the ConcurrencyLimit by setting the CONCURRENCY_LIMIT environment variable so it runs faster.
If you have a free version, you may sometimes run into rate limit errors, you can reduce the limit to 1 (but it will run a lot slower).
Deep research performs great on R1! We use Fireworks as the main provider for the R1 model. To use R1, simply set a Fireworks API key:
FIREWORKS_KEY="api_key"The system will automatically switch over to use R1 instead of o3-mini when the key is detected.
There are 2 other optional env vars that lets you tweak the endpoint (for other OpenAI compatible APIs like OpenRouter or Gemini) as well as the model string.
OPENAI_ENDPOINT="custom_endpoint"
CUSTOM_MODEL="custom_model"Initial Setup
Deep Research Process
Recursive Exploration
Report Generation
Python: https://github.com/Finance-LLMs/deep-research-python
MIT License - feel free to use and modify as needed.
Dockerfile runtime is node:18-alpine, end-of-life since 2025-04-30
Add MCP Server for Agent Interoperability
Feature Request: Add serpbase.dev as an optional search backend for more reliable web retrieval
اكتب بحث فيما لا يقل عن 12 صفحة بالبنط 14 وبالتفصيل في احد الأمراض الوراثية موضحا التفصيل كل شيء عن المرض الوراثي ( اسبابه اعراضه - علاجه و.....)
Are current benchmarks enough to measure research agents?
New Feature Idea..
[Feature] Fully local integration
Visited URLs (0): (self hosted firecrawl)
Error 500 after 1 minute with ollama API
Free FireCrawl alternative