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.
Version 0.1.1 defaults to keyless search.
It requires WebRouter 0.17 or later and passes use_environment=False, so ordinary
provider variables such as EXA_API_KEY and TAVILY_API_KEY are ignored. Keyless
backends are third-party services that receive your queries.
Version 0.1.0 discovers provider credentials from the process environment. The isolated behavior below applies to 0.1.1 and later.
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. exa or you-mcp; a pinned provider has no fallback. Unset, only keyless backends are eligible. |
WEBROUTER_API_KEY |
unset | Explicitly opt in to the selected provider using this plugin-specific key. Requires a specific WEBROUTER_PROVIDER (not auto). Other provider environment keys are never imported. |
For credentialed search, set WEBROUTER_PROVIDER=exa and supply your Exa key as
WEBROUTER_API_KEY through your deployment's secret configuration. Only that
provider receives the key, via provider_config. This is an operator-wide
setting, not a per-user secret store. Without this explicit configuration,
search remains keyless; pinning a keyed provider without its key fails rather
than using server credentials.
Upgrading from 0.1.0: ambient provider keys no longer enable paid backends. Operators who want one must configure the two plugin-specific settings above.
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
Offline tests cover result shaping with a fake and credential isolation against
the released WebRouter library using synthetic keys and intercepted HTTP. 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.1
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.1.tar.gz | 10.8 kB | With provenance | Details for gpt_researcher_webrouter-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpt_researcher_webrouter-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gpt_researcher_webrouter-0.1.1-py3-none-any.whl |
Total release size: 20.2 kB
Release files / gpt_researcher_webrouter-0.1.1.tar.gz
| Download URL | gpt_researcher_webrouter-0.1.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0347e3e9de401924385d396b7b1ae7c0bcbab37b3b89cc88475ee3e253a36c3e
|
|
BLAKE2b-256 checksum How to use checksums |
5b835d1dd6cd433695ec62d9a2e62ca49b148eb779e2357a729399ee97846204
|
| 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 30, 2026.
Transparency logRelease files / gpt_researcher_webrouter-0.1.1-py3-none-any.whl
| Download URL | gpt_researcher_webrouter-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea1209348005325a01955594dacdbec006b08087f1e09eb676073ea22e136d50
|
|
BLAKE2b-256 checksum How to use checksums |
ae734cc273fae689e824c3ea89287f5badef7eb3bb5480d274cc0bd76345ccf9
|
| 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 30, 2026.
Transparency logSecurity for gpt-researcher-webrouter 0.1.1
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.1.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 30, 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.