gpt-researcher-webrouter
A GPT Researcher retriever plugin for WebRouter, an open-source library that puts one search interface in front of many web search providers.
It works with no API key: with none set, searches go to the free keyless tiers WebRouter supports, which are third-party services that receive your queries. Every provider key you add (Tavily, Exa, Brave, Perplexity, Linkup and others) gives WebRouter more providers to route to and fall back on, without changing anything in GPT Researcher.
Install
pip install gpt-researcher-webrouter
export RETRIEVER=webrouter
Install it in the same Python environment as GPT Researcher. It registers the
webrouter retriever under the gpt_researcher.retrievers entry point, so no
change to GPT Researcher is needed. Combine it with a built-in retriever, e.g.
RETRIEVER=webrouter,arxiv.
Configuration
| Variable | Default | What it does |
|---|---|---|
WEBROUTER_PROVIDER |
unset (auto) |
Pin one provider, e.g. tavily or exa; a pinned provider has no fallback. Unset, WebRouter tries every provider it holds a key for, then the keyless ones, and falls back on an error or an empty result. |
| Provider keys | none | Read from the environment, e.g. TAVILY_API_KEY, EXA_API_KEY, BRAVE_API_KEY. WebRouter's .env.example lists every variable. |
Behaviour
- Results are links with their title and a snippet (at most 500 characters),
and GPT Researcher scrapes each page (
requires_scraping = True). - Domains in
query_domainsare passed to WebRouter asinclude_domains. - Each search waits at most 30 seconds.
- On a failed search (no provider available, a timeout) it logs a warning and
returns no results, so one failing retriever does not stop a research run.
A misconfiguration, such as an unknown
WEBROUTER_PROVIDER, is logged as an error. - The package does not depend on
gpt-researcher, so installing it never changes your GPT Researcher version; install it next to GPT Researcher 0.16.1 or later.
Providers, their keys and the options each supports are listed in the WebRouter documentation.
Development
pip install -e ".[test]"
ruff check . && ruff format --check .
pytest
The tests replace WebRouter with a fake, so they run offline with no keys. With
gpt-researcher installed, one more test checks that GPT Researcher loads the
plugin by name.
License
Apache 2.0
Metadata
Release files for gpt-researcher-webrouter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpt_researcher_webrouter-0.1.0.tar.gz | 9.5 kB | With provenance | Details for gpt_researcher_webrouter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpt_researcher_webrouter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gpt_researcher_webrouter-0.1.0-py3-none-any.whl |
Total release size: 18.5 kB
Release files / gpt_researcher_webrouter-0.1.0.tar.gz
| Download URL | gpt_researcher_webrouter-0.1.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2604b4f7bb0bda55422dea92455bec5f21b3e12738c8987eb62e256fd016dbd
|
|
BLAKE2b-256 checksum How to use checksums |
3d39e89f8423da5e5785c7b26967fbfd62c7b1833e4ce22b1cfd86447e617636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / gpt_researcher_webrouter-0.1.0-py3-none-any.whl
| Download URL | gpt_researcher_webrouter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
983469f83da890bb256422acd0fb889e1d2f8ef2b660b153db317ee202eec8a5
|
|
BLAKE2b-256 checksum How to use checksums |
cb01df898c1df8e05327bf1953eebe8c33a9097421fc8406662d3b9d67ecef79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for gpt-researcher-webrouter 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gpt_researcher_webrouter-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.