Skip to main content

librarian-brave

A Brave Search backend for librarian's research loop: Brave's independent web index through its official API, as a second web source beside SearXNG.

Every query goes to Brave under your account. That is the reason this is a separate, opt-in package, and why it does nothing until BRAVE_API_KEY is set: without a key a search returns no results, says why, and sends nothing.

Install

Install into the same environment as librarian, then route web to it:

uv pip install librarian-brave
# librarian's .env
BRAVE_API_KEY=...
RESEARCH_SEARCH_ROUTES=web: searxng, brave; video: searxng; science: searxng

Settings

Setting Default What it does
BRAVE_API_KEY empty Your Brave Search API key; without it nothing is sent
BRAVE_MONTHLY_QUOTA 1000 Requests a calendar month (UTC), counted locally; a search past it is refused before any request
BRAVE_MIN_INTERVAL_SECONDS 1.1 Seconds between requests (the free plan allows 1 a second)

The month's count lives in brave-v1/usage.json under librarian's search cache folder. Brave's own rate-limit headers are read too: when a capped monthly window has nothing left, requests stop until the reset it names. A window with a limit of 0 has no cap (a usage-billed plan's month reads x-ratelimit-limit: 50, 0), so BRAVE_MONTHLY_QUOTA is then the only monthly bound: set it to what you're willing to spend. A cached reply costs nothing and isn't counted. Refusals (no key, quota, 401/403, 429) come back to librarian as degraded, never as an error that fails the research task.

It answers web only. Brave's documentation, read on September 30, 2026, didn't confirm a video endpoint, so none is called.

License

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for librarian-brave 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for librarian-brave 0.1.0
File Size Uploaded Provenance Actions
librarian_brave-0.1.0.tar.gz 10.8 kB With provenance Details for librarian_brave-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for librarian-brave 0.1.0
File Interpreter ABI Platform Actions
librarian_brave-0.1.0-py3-none-any.whl Python 3 none any Details for librarian_brave-0.1.0-py3-none-any.whl

Total release size: 21.4 kB

Release files / librarian_brave-0.1.0.tar.gz

Download URL librarian_brave-0.1.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8599251cce6c62899f45a418db90c1c730346f0f8af5393b35cb2974d0cba604
BLAKE2b-256 checksum
How to use checksums
b18371446b64c1c9c2287e30424953205e87a82d2d2fff5bd83115eb8bbfff58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 2, 2026.

Transparency log

Release files / librarian_brave-0.1.0-py3-none-any.whl

Download URL librarian_brave-0.1.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7c55376e367aff71fea3e02e6b3c90cae4d7d6ecec390c84bdbfb840d8ad6c6
BLAKE2b-256 checksum
How to use checksums
89ab39f5a27d74c11649f9484c2b15959ced6ea45a201b2351f93eb3fd0077db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 2, 2026.

Transparency log

Security for librarian-brave 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for librarian_brave-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 Oct 2, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page