To install GPT Researcher, clone the official repository, copy .env.example to .env with your LLM and search API keys, then run docker compose up --build. Open http://localhost:3000 for the web app, or http://localhost:8000 for the Python server. GPT Researcher is free under the Apache-2.0 licence. A standard research report costs about $0.08 in LLM usage with the default models, plus search credits.
Market research used to mean twenty open tabs, three half-read PDFs, and a notes file you no longer trust. GPT Researcher does that legwork for you: it plans the questions, searches many sources in parallel, and writes a cited report you can check.
This guide shows how to install GPT Researcher for AI research reports with Docker or Python. You will set up your model and search keys, run your first report, research your own documents, secure the instance, and fix the errors that stop most first installs.
Quick Answer
To install GPT Researcher, clone the official repository, copy .env.example to .env with your LLM and search API keys, then run docker compose up --build. Open http://localhost:3000 for the web app, or http://localhost:8000 for the Python server. GPT Researcher is free under the Apache-2.0 licence. A standard research report costs about $0.08 in LLM usage with the default models, plus search credits.
In this article
- How we checked this guide
- What GPT Researcher replaces, and what it does not
- Docker, Python, or pip: which route fits your business
- Requirements before you install GPT Researcher
- Step 1: get your LLM and search keys
- Step 2: install GPT Researcher with Docker
- Step 3: run your first research report
- Step 4: research your own documents
- First-run security steps you must not skip
- Make GPT Researcher useful for real work
- Backup and update routine
- Common errors and fixes
- Tips and tricks that save money
- The real cost maths: GPT Researcher versus ChatGPT Plus
- When not to self-host GPT Researcher
- Pros and cons
- Our verdict
- FAQ
- Strategic Pivot: price the whole stack before you switch
- Sources
How we checked this guide
We checked the licence, install steps, Docker route, pip package, and local-document support in the official GPT Researcher GitHub repository. We checked report costs, search costs, and cost-saving settings on the official GPT Researcher Costs documentation page, measured November 22–23, 2026. We checked the search prices on Tavily’s official pricing page.
The paid comparison uses OpenAI’s official Help Center page. That page lists ChatGPT Plus at $20 a month, billed monthly. It also states that API usage is separate and billed independently. Every command in this guide comes from those official sources, checked on December 2, 2026.
What GPT Researcher replaces, and what it does not

GPT Researcher replaces the tab-hunting. Instead of opening twenty pages yourself, you give it one research task. A planner agent breaks the task into focused sub-questions. Execution agents search for each sub-question in parallel, scrape the sources, and keep only the passages that answer the question. A publisher step then aggregates the findings into one report with citations.
That structure is the point. A single chat answer can sound confident while resting on one weak source. GPT Researcher reads many sources per task, tracks where each claim came from, and writes reports that can exceed 2,000 words, with PDF and Word export.
GPT Researcher does not replace the model. It is an agent layer that calls an LLM provider and a search retriever through your own API keys. OpenAI is the default LLM provider in the install guide, and Tavily is the default retriever. You can point it at other providers, including local models through Ollama, but some model and some search source must answer every run.
GPT Researcher also does not replace your judgement. The project calls itself experimental and provided as-is. Treat every report as a cited first draft, and open the sources behind any claim you plan to spend money on.
The licence needs plain words. GPT Researcher uses the Apache License 2.0. You may use, copy, modify, and distribute the software, including for commercial work, if you keep the licence and copyright notices and state significant changes. Apache-2.0 also includes a patent grant from contributors. Your LLM usage, search credits, hosting, and hardware still bill separately.
Best for: a small-business owner, freelancer, or agency operator who needs repeatable, cited research reports on markets, competitors, suppliers, or topics, and wants to choose the model and search provider. Skip if: you want a hosted chat product with zero setup, or you need finished research with no fact-checking step.
GPT Researcher sits beside our other research and document guides, not on top of them. Our guide to install PrivateGPT for offline document chat covers private questions over your own files. Our guide to install AnythingLLM to chat with business documents covers ready-made document workspaces. Choose GPT Researcher when the job is a written report with sources, not a chat over files.
Our wider local-AI series covers the model layer underneath. Our guide to install Ollama on Ubuntu covers the local model runner you can pair with GPT Researcher to remove the LLM bill. Our guide to install Open WebUI with Ollama covers a general chat front end for the same models.
Docker, Python, or pip: which route fits your business
Docker is the cleanest first route for most small businesses. The official Docker flow builds the project from its docker-compose.yml file and starts two processes by default: the Python server on localhost:8000 and the React web app on localhost:3000. Docker keeps Python, dependencies, and system libraries inside containers. Your host machine only needs Docker and your API keys.
The Python repository route fits operators who want the server under direct control. You clone the repository, install dependencies with pip install -r requirements.txt, and start the FastAPI server yourself. This route makes logs, settings, and upgrades easy to inspect. It also makes Python version and dependency care your job.
The pip package route fits developers building research into their own product or scripts. One command, pip install gpt-researcher, installs the library. Your code then creates a GPTResearcher object, runs the research, and writes the report. There is no web interface to click through, because your code is the interface.
Choose Docker for a browser interface with the least host setup. Choose Python for full server control. Choose pip when reports belong inside another tool or scheduled job. Best for Docker: a first pilot or spare office machine. Skip Docker if nobody will manage containers. Best for pip: a developer adding cited research to an app. Skip pip if the report runner does not write code.
Requirements before you install GPT Researcher
You need four things before the first command. First, an LLM provider account and API key, or a local model setup. Second, a search retriever key, or a free retriever you configure yourself. Third, Docker, or Python 3.12 or later for the repository route. Fourth, an internet connection for web research, because the agent searches and scrapes live sources.
Python version is not flexible on the repository route. The official installation guide states Python 3.12 or later. Check your version before you clone anything. A failed dependency install on an old Python version wastes an hour that a ten-second version check prevents.
Hardware needs stay modest when the model runs in the cloud. GPT Researcher plans, searches, scrapes, and assembles reports, while the heavy model work happens at your provider. A normal laptop or small server can run the agent. With local Ollama models, model size drives the hardware bill instead. Plan disk space for the install, your document folder, generated reports, and one backup copy.
Budget for two metered services. The LLM provider bills token usage per run, and the search provider bills credits per search. With the default models, a standard report costs about $0.08 in LLM usage, with search priced separately below.
Step 1: get your LLM and search keys

Create your LLM key first. The default setup uses OpenAI, so the guide sets OPENAI_API_KEY. Keep the key in a private place from the moment you copy it. This key bills your account for every run, so treat it like a payment credential, not a settings value.
Create your search key second. The default retriever is Tavily, so the guide sets TAVILY_API_KEY. Tavily’s official pricing page lists a free Researcher plan with 1,000 API credits a month and no credit card required. A basic search costs 1 credit. That free allowance covers roughly 200 standard research reports a month at five searches each, before any pay-as-you-go billing.
Store both keys in a .env file. Copy the project’s .env.example file, rename the copy to .env, and fill in your keys. The Docker flow reads this file at startup. Never commit .env to a shared repository, never paste it into a chat, and never screenshot it. A leaked key spends your money at machine speed.
Custom providers fit the same file. For a custom OpenAI-compatible API, including local models, the guide sets OPENAI_BASE_URL to your endpoint. Change one provider at a time, then run a small test report.
Set spending guardrails at the provider. Cap monthly usage or set alerts you can afford during the pilot month. GPT Researcher tracks each run’s LLM cost, exposed in the pip route with get_costs(). Check that number after your first reports, not after your first invoice.
Step 2: install GPT Researcher with Docker
Clone the official repository and enter the folder. Then copy the example environment file and add your keys.
git clone https://github.com/assafelovic/gpt-researcher.git
cd gpt-researcher
cp .env.example .envOpen .env in a text editor and set your keys. At minimum, the default setup needs your LLM key and your Tavily key.
OPENAI_API_KEY=your_openai_key_here
TAVILY_API_KEY=your_tavily_key_hereBuild and start the services. The guide uses the Compose command with a space. Older Docker installs use the hyphen form. If the first command fails, try the second before you change anything else.
docker compose up --builddocker-compose up --buildWait for both processes to start. By default, the Python server runs on localhost:8000 and the React app runs on localhost:3000. Open http://localhost:3000 in your browser for the web interface. The lightweight frontend served by FastAPI answers at http://localhost:8000.
If a service fails to start, read the container logs before you rebuild. A missing key, a malformed .env line, or a port clash each leaves a clear log line. Fix the named cause, then run the Compose command again.
Prefer the Python route instead? Install Python 3.12 or later, clone the repository, set the same keys, install dependencies, and start the server.
pip install -r requirements.txt
python -m uvicorn main:app --reloadThen visit http://localhost:8000. Prefer the library route? Install the package and run research from your own code.
pip install gpt-researcherfrom gpt_researcher import GPTResearcher
researcher = GPTResearcher(query="your research question here")
await researcher.conduct_research()
report = await researcher.write_report()
print(researcher.get_costs())Step 3: run your first research report
Start with a question you can judge. Pick a topic where you already know the good sources, such as your own market, a supplier category, or a competitor set. A known-topic test separates research quality from topic difficulty in one run.
Write the task like a brief, not a keyword. “Compare three invoicing tools for a five-person plumbing company, with pricing and limits” gives the planner real sub-questions to build. A one-word topic gives the planner nothing to aim at. Specific briefs produce specific reports.
Watch the run, then read the citations first. A standard report reads roughly 12–19 sources across five searches and writes about 2,000 words in about a minute. Open two or three cited sources and confirm the passages support the sentences that cite them.
Choose the report type to match the job. A research report suits everyday questions. A detailed report reads 52–68 sources and writes 5,200–6,000 words, at about $0.34 in LLM cost. Deep research explores recursively for 7–12 minutes at about $1.30. Use the smallest type that answers the question, because depth bills by the branch.
Export the result where your team will read it. GPT Researcher exports to PDF, Word, and other formats. Save each export with its brief and date, so later readers know what question produced it. Keep three test briefs with known good sources, and rerun them after every model, retriever, or version change.
Step 4: research your own documents
Point GPT Researcher at a folder of your files. Set the DOC_PATH environment variable to the folder holding your documents. Supported formats include PDF, plain text, CSV, Excel, Markdown, PowerPoint, and Word documents.
export DOC_PATH="./my-docs"In the web interface, select “My Documents” from the Report Source options. In the pip route, pass report_source="local" when you create the researcher. The agent then plans and searches over your documents instead of the open web.
Start with one clean folder, not your whole archive. Pick current price lists, policies, or product documents whose answers you know. Duplicate drafts and outdated files produce confident wrong answers, because the agent can only cite what the folder contains.
Local research still calls your LLM provider. The documents stay in your folder, but passages travel to the model that writes the report. For sensitive files, pair local documents with a local Ollama model. Our guide to install Khoj AI personal assistant self hosted covers a personal second brain over notes and files.
First-run security steps you must not skip
Keep the first install on localhost. GPT Researcher spends your API credits on every run. Anyone who can reach the interface can spend your money, read your reports, and research your local documents if you configured them. Treat the web app like a billing console, not a public page.
Protect the .env file like a payment card. It holds keys that bill your accounts. Restrict file permissions, keep it out of shared folders and repositories, and store a backup copy in your password manager or secrets store. Rotate a key the moment it appears in a log, a screenshot, or a chat.
Put access control in front of any shared instance. Use your VPN, internal network rules, or a reverse proxy with authentication to decide who can reach ports 8000 and 3000. Add HTTPS before any traffic crosses a network you do not control. A research tool with open access is an open wallet.
Set provider-side limits before you share the address. Cap monthly spend or set billing alerts at both providers, so a runaway script hits a provider cap, not your bank account.
Be careful with local documents. DOC_PATH decides which folder the agent can read. Point it at a research folder you curated, not at a drive holding contracts, payroll, and client records. Copy the files a report needs into the research folder. Narrow folders make narrow mistakes.
Remember what leaves the machine. Web research sends queries to your search provider, and report writing sends passages to your LLM provider. For work that must stay offline, run a local model.
Make GPT Researcher useful for real work
Brief like a manager, not a search box. Name the decision the report supports, the options to compare, and the facts that matter: price, limits, region, contract terms. The planner builds sub-questions from your brief. A sharp brief is the cheapest quality upgrade you own.
Use report types as budget levels. Run a standard research report for weekly questions. Reserve detailed reports for decisions with money attached. Reserve deep research for the few questions where breadth and depth change the answer. Matching type to stakes keeps the monthly bill boring.
Build a source habit. After each report, open the citations behind the three claims you will act on. If a claim matters, read the passage yourself. GPT Researcher reduces the hunting. It does not remove the reading.
Save briefs that work: competitor scan, supplier comparison, market entry, tool shortlist. Reuse the structure and change the names and constraints, so reports stay comparable across months. Pair web research with your own documents where it helps, and keep the document folder current.
Watch the cost per report, not just the total. Report writing is about 89% of a standard report’s LLM cost, so the writing model drives the bill. If costs creep up, check that model first.
Backup and update routine
Back up the settings, the documents, and the reports. Your .env file holds the keys and provider choices, so back it up securely and separately from the code. Your DOC_PATH folder holds the research documents. Your exported reports hold the work product. Losing any one of the three hurts differently.
Keep a settings note with the backup. Record the model names, the retriever, the report types you use, and where each key lives. Never write raw keys into the note. A restore should rebuild the setup without a secret hunt.
Stop the services before you copy state, then run one test brief after the restore. A backup you have never restored is a hope, not a backup.
Update on a schedule, not on impulse. For a cloned install, pull the latest code and rebuild the Docker services. For the pip route, upgrade the package with pip. Then run your three-brief test set and check one report’s citations by hand.
git pull
docker compose up --buildpip install -U gpt-researcherPin versions when stability matters more than novelty. Upgrade in a quiet week, test, then roll the change to the team, because research quality can shift with model and dependency changes.
Common errors and fixes
A key error at startup points at .env. Confirm the file exists beside docker-compose.yml, confirm the variable names match the guide, and confirm no spaces or quotes corrupt the values. Restart the services after any .env edit, because running containers keep the old environment.
A Python version error points at the repository route. The guide requires Python 3.12 or later. Check your version, install a current Python, and reinstall dependencies in a clean environment. Docker users skip this class of error entirely, which is one reason Docker is the calmer first route.
A Compose command error points at your Docker version. The guide gives both forms: docker compose up --build and docker-compose up --build. Use the form your Docker accepts. If neither works, confirm Docker is installed and running before you change project files.
A port clash points at 8000 or 3000 already in use. Another service owns the port. Stop the other service, or change the published port in the Compose file and use the new address. Update your bookmarks to match. Two services cannot share one port.
An empty or shallow report points at the brief or the retriever. A vague brief gives the planner little to aim at, so rewrite it with the decision, options, and constraints named. Then confirm the retriever key works and credits remain. A standard report runs five searches, so an exhausted free allowance stops the research early.
A cost surprise points at the writing model or the report type. Check the run total with get_costs(). Detailed and deep reports cost multiples of a standard report by design. If a standard report costs far above the measured $0.08 range, check which models your settings name, especially the writing model.
A local-document miss points at DOC_PATH. Confirm the path points at the folder you curated, confirm the file formats are supported, and confirm you selected My Documents as the report source. Test with one known document before you blame the model.
A slow deep run is usually the design, not a fault. Deep research explores branches recursively and takes 7–12 minutes in the official measurements. Use standard reports for everyday questions. Save deep runs for questions where the extra breadth changes a decision.
Tips and tricks that save money
Use a cheaper writing model for everyday reports. The official cost measurements found that smaller models averaged about $0.056 per research report, roughly 30% below the defaults, in about the same time. Keep the stronger model for reports that carry a decision. The writing model is the bill, so shop there first.
Keep the context filter on. The filter decides which scraped passages reach the writer. Turning it off cost 65% more per report in the official benchmark. The default filter needs no extra key, because it falls back to local keyword ranking. Free and cheaper is a rare combination. Take it.
Ask for less when less answers the question. Report length and search results per query are configurable, and deep research breadth and depth multiply the work. A short report on a narrow question beats a long report on a vague one, at a fraction of the cost.
Run models locally to remove the LLM bill. With Ollama, there is no LLM bill at all, only your search API. Pair a local model with the free Tavily allowance, or with a free retriever such as DuckDuckGo or a self-hosted SearX, and the running cost approaches zero. Judge the trade honestly: local model quality decides report quality.
Track every run during the pilot. get_costs() returns the run total, and get_step_costs() splits it by step. Ten tracked runs tell you your real cost per report. That number, not a pricing page, decides whether self-hosting saves your business money.
The real cost maths: GPT Researcher versus ChatGPT Plus

GPT Researcher charges no licence fee. Apache-2.0 lets you run it for business work at $0 in licence cost. The running costs are the LLM usage and the search credits. The official measurements, taken November 22–23, 2026 with the default configuration, put a standard research report at about $0.08 in LLM cost, a detailed report at about $0.34, and a deep research run at about $1.30.
Search bills separately. Tavily’s official pricing page lists a free Researcher plan with 1,000 API credits a month and no credit card required, then pay-as-you-go at $0.008 per credit. A basic search costs 1 credit. A standard report runs five searches, so search adds about $0.04 per report once you pass the free allowance. Detailed reports add about $0.14, and deep runs about $0.37.
ChatGPT Plus is the hosted comparison. OpenAI’s Help Center lists Plus at $20 a month, billed monthly. That is $240 a year for one person. Plus includes the hosted web app and its research features, so there is no server to run and no keys to manage. It also means one subscription per person, with usage governed by the hosted product.

| Option | Licence or subscription | Cost per standard report | Best for |
|---|---|---|---|
| GPT Researcher with default cloud models | $0 under Apache-2.0 | About $0.08 LLM plus about $0.04 search beyond the free allowance | Repeatable cited reports with your choice of model and retriever |
| GPT Researcher with a local model | $0 under Apache-2.0 | $0 LLM bill with Ollama, plus search | The leanest running cost on hardware you own |
| ChatGPT Plus | $20/month, billed monthly | Included in the subscription for the web app | A hosted assistant with zero setup |
Run the freelancer scenario first. Forty standard reports a month is 480 reports a year. LLM cost is 480 × $0.08 = $38.40 a year. Search is 480 × 5 = 2,400 credits a year, which is 200 credits a month, well inside Tavily’s free 1,000 credits a month. The yearly total is about $38.40, against $240 for one ChatGPT Plus seat. The saving is about $202 a year, before hosting and admin time.
Run the heavier scenario next. Ten detailed reports a month is 120 a year, at 120 × $0.34 = $40.80 in LLM cost, with 170 search credits a month inside the free allowance. Four deep runs a month add 48 × $1.30 = $62.40 a year. A researcher mixing all three types still lands near $100 a year in usage, because the free search allowance absorbs most small-business volume.
Run the full-stack scenario last, because it flips the answer. One hundred standard reports, twenty detailed reports, and eight deep runs a month cost $8.00 + $6.80 + $10.40 = $25.20 a month in LLM usage, or about $302 a year. Search reaches 1,208 credits a month, so about 208 credits bill at $0.008, roughly $20 a year. The total passes $320 a year, above one Plus seat. Heavy cloud research is a usage bill, not a free lunch.
Add hosting and admin time honestly. A machine you own adds $0 in hosting, while a rented server, backups, updates, and report checking cost money or hours. GPT Researcher wins on total cost only when volume, model choice, and maintenance fit the scenarios above. Meter the first month before you claim a saving.
When not to self-host GPT Researcher
Do not self-host GPT Researcher when nobody owns the instance. Updates, backups, key rotation, and spend checks need a named person. An unowned research tool becomes an unmonitored billing account. A hosted subscription fits that business better.
Do not self-host GPT Researcher when you need answers with no checking step. The project calls itself experimental and provided as-is. Reports carry citations so you can verify them. If your workflow has no room to open sources, the citations cannot protect you.
Do not self-host GPT Researcher when your questions are rare. Two reports a month cost about $0.16 in usage, but the setup, keys, and updates still take your time. A hosted assistant you already pay for may answer rare questions more cheaply in hours.
Do not self-host GPT Researcher when a local model cannot write well enough. Test with real briefs and read the citations. A weak report on a client decision costs more than either route. Cloud models raise quality and raise the bill, so price the pair together.
Do not expose GPT Researcher publicly to save setup time. An open interface spends your credits and can read your research folder. Finish the security steps first, then share the address inside your network.
Pros and cons
Pros:
- Free under Apache-2.0, including commercial use, with no licence fee.
- Cited reports from many sources, planned as sub-questions and researched in parallel.
- Web research and local-document research in one agent.
- Your choice of LLM provider and search retriever, including local models.
- Measured running costs, with per-run cost tracking built in.
- Docker, Python, and pip routes, with PDF and Word export.
Cons:
- Needs your own LLM and search API keys, billed by usage.
- Setup and updates need a named owner with basic server skills.
- Report quality depends on the model, the retriever, and the brief.
- Experimental software provided as-is, so citations still need checking.
- Heavy cloud usage can cost more than a hosted subscription.
- Local documents with a cloud model still send passages to the provider.
Our verdict
Install GPT Researcher if research reports repeat in your business: competitor scans, supplier comparisons, market checks, and tool shortlists. Start with Docker on localhost, the default models, the free Tavily allowance, and one brief you can judge. Track the cost of the first ten reports before you widen the rollout.
Skip GPT Researcher if you want a hosted assistant with no keys and no server care. Skip it if nobody will check citations. For an owner, freelancer, or agency operator who wants cited reports with control over models and costs, GPT Researcher earns its place beside your other research tools.
FAQ
Is GPT Researcher free for business use?
Yes. GPT Researcher uses the Apache-2.0 licence, which permits commercial use, modification, and distribution. Keep the licence and copyright notices in copies, and state significant changes. LLM usage, search credits, hosting, and hardware still bill separately.
How do I install GPT Researcher with Docker?
Clone the official repository, copy .env.example to .env, and add your LLM and Tavily API keys. Run docker compose up --build, or docker-compose up --build on older Docker installs. Open http://localhost:3000 for the web app.
How much does one GPT Researcher report cost?
With the default models, a standard research report costs about $0.08 in LLM usage and takes about a minute. Search is separate: five basic Tavily searches cost about $0.04 beyond the free monthly allowance. Detailed reports cost about $0.34, and deep research about $1.30.
Can GPT Researcher use local models?
Yes. GPT Researcher supports custom OpenAI-compatible endpoints through OPENAI_BASE_URL, and the official cost guide notes that with Ollama there is no LLM bill at all, only your search API. Local model quality decides report quality, so test with real briefs.
Can GPT Researcher research my own documents?
Yes. Set DOC_PATH to your document folder, then select My Documents as the report source in the interface, or pass report_source="local" in the pip route. Supported formats include PDF, plain text, CSV, Excel, Markdown, PowerPoint, and Word documents.
Strategic Pivot: price the whole stack before you switch
GPT Researcher removes the licence fee. It does not remove model, search, or admin costs. Before you move research work onto any self-hosted stack, price the full year, not the first report. Our free AI Cost Calculator helps you compare a lean local setup against a full paid stack with your own numbers.
Sources
- Official GPT Researcher GitHub repository: Apache-2.0 licence, install steps, Docker route, pip package, and local-document support.
- Official GPT Researcher Costs documentation: measured report costs, search costs, and cost-saving settings.
- Official Tavily pricing page: free Researcher plan with 1,000 credits a month, pay-as-you-go at $0.008 per credit, and Project at $30 a month.
- OpenAI Help Center, What is ChatGPT Plus: $20/month billed monthly, with API usage separate and billed independently.
Price note — updated December 2, 2026: Prices in this post were checked on December 2, 2026. When you are reading this, the price may be lower or higher — always check the official pricing page before you buy.
Pros
- Free under Apache-2.0, including commercial use, with no licence fee.
- Cited reports from many sources, planned as sub-questions and researched in parallel.
- Web research and local-document research in one agent.
- Your choice of LLM provider and search retriever, including local models.
- Measured running costs, with per-run cost tracking built in.
- Docker, Python, and pip routes, with PDF and Word export.
Cons
- Needs your own LLM and search API keys, billed by usage.
- Setup and updates need a named owner with basic server skills.
- Report quality depends on the model, the retriever, and the brief.
- Experimental software provided as-is, so citations still need checking.
- Heavy cloud usage can cost more than a hosted subscription.
- Local documents with a cloud model still send passages to the provider.
Install GPT Researcher if research reports repeat in your business: competitor scans, supplier comparisons, market checks, and tool shortlists. Start with Docker on localhost, the default models, the free Tavily allowance, and one brief you can judge. Track the cost of the first ten reports before you widen the rollout.
