AI/TLDR

GPT Researcher

Autonomous research agent that writes long, cited reports from web and local sources

Overview

GPT Researcher is an open-source autonomous agent designed to conduct in-depth research on any topic, then return a long-form report with citations. Instead of asking the LLM to answer from memory, it plans the research, scrapes and reads a set of sources, and synthesises them into a structured document — addressing common LLM problems like outdated training data and hallucinated facts.

Under the hood the agent runs multiple sub-agents in parallel to speed up gathering and improve coverage. It can pull from the open web (with JavaScript-enabled scraping and image filtering) and from local documents in formats like PDF, DOCX, CSV, Markdown and PowerPoint, and exports the final report to PDF, Word or Markdown. A Deep Research mode explores a topic as a tree of sub-questions, and an MCP integration lets the agent reach domain-specific data sources.

GPT Researcher works with hosted models such as OpenAI and Google Gemini, but also with local runtimes via Ollama, so the same agent loop can run end-to-end on a developer machine. The project ships with both a lightweight HTML/CSS/JS frontend and a production-grade Next.js frontend on top of the Python core.

What it does

  • Plans the research, fans out parallel sub-agents, and aggregates 20+ sources per task
  • Generates 2,000+ word reports with inline citations and exports to PDF, DOCX or Markdown
  • Reads local files: PDF, text, CSV, Excel, Markdown, PowerPoint and Word
  • JavaScript-enabled web scraping with smart image filtering
  • Deep Research mode that recursively explores a topic as a tree of sub-questions
  • Works with OpenAI, Google Gemini, Ollama and other LLM providers via a pluggable config

Getting started

Install the Python package, set the LLM and search API keys it needs, then call the GPTResearcher class to plan, research and write a report.

Install the package

Available on PyPI as gpt-researcher.

bashbash
pip install gpt-researcher

Configure your API keys

Export the model and search provider keys the agent should use (the README walks through each provider).

bashbash
export OPENAI_API_KEY=sk-...
export TAVILY_API_KEY=tvly-...

Run a research task

Instantiate GPTResearcher with a query, call conduct_research to gather sources, then write_report to produce the final document.

pythonpython
import asyncio
from gpt_researcher import GPTResearcher

async def main():
    researcher = GPTResearcher(query="State of small language models in 2026")
    await researcher.conduct_research()
    report = await researcher.write_report()
    print(report)

asyncio.run(main())

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Generate a long, cited report on a fast-moving topic (markets, technology, policy) instead of getting a paragraph from a chatbot
  • Run research over your own corpus of PDFs and spreadsheets without sending them to a third-party service
  • Stand up a self-hosted research assistant for a team using local models via Ollama
  • Use Deep Research mode to map out an unfamiliar field as a tree of sub-questions before deciding what to read

How GPT Researcher compares

GPT Researcher alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
AutoGPT★ 186kOne of the earliest autonomous agent projects, now a platform for building and running agents from reusable blocks and workflows.
Agno★ 41.6kA fast Python framework (formerly Phidata) for building agents with memory, tools, and multimodal inputs, plus a runtime for deploying them in production.
LangGraph★ 38.8kA library from the LangChain team for building stateful, graph-based agent workflows with explicit control over steps, memory, and human-in-the-loop checkpoints.
AgentGPT★ 36.3kAgentGPT lets you name a custom AI, give it a goal, and watch it plan tasks, run them, and learn from the results, all from a web browser.
STORM★ 30.8kStanford OVAL's LLM-powered knowledge curation system that researches a topic and generates a Wikipedia-style article with citations.
Composio★ 29.5kComposio is an open-source SDK for Python and TypeScript that gives AI agents ready-made tools to act on real apps and APIs across many agent frameworks.
GPT Researcher★ 28.8kAutonomous research agent that writes long, cited reports from web and local sources
smolagents★ 28.7kA minimal agent library from Hugging Face where the model writes and runs Python code to call tools and complete tasks.