llm-tools-brave
A tool plugin for LLM that allows you to search the web using Brave Search API.
Installation
Install this plugin in the same environment as LLM:
llm install llm-tools-brave
Usage
Create an account at Brave Search API and get your API key. Add it to llm with llm keys set brave.
This plugin provides four search tools which can be bundled together or provided separately.
Use -T Brave to include all tools, or use individual tool names: -T web_search, -T image_search, -T news_search, -T video_search.
web_search
Search the web for high-quality, relevant results with descriptions and snippets:
llm -m claude-4-sonnet -T web_search "search the web to get today's weather in nyc"
image_search
Search for images with metadata and thumbnails:
llm -m claude-4-sonnet -T image_search "find images of golden retrievers"
news_search
Search for recent news articles with age and source information:
llm -m claude-4-sonnet -T news_search "latest news about AI developments"
video_search
Search for videos with duration, thumbnails, and source information:
llm -m claude-4-sonnet -T video_search "python programming tutorials"
Features
- Web Search: Get comprehensive web results with descriptions and extra snippets
- Image Search: Find images with metadata, dimensions, and thumbnail previews
- News Search: Access recent news articles with publication timing
- Video Search: Discover videos with duration and preview information
- Advanced Filtering: Support for country-specific results, language preferences, freshness filters, and domain inclusion/exclusion
- Error Handling: Robust error handling with informative error messages
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-brave
python -m venv venv
source venv/bin/activate
Install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Dependencies
Credits
Metadata
Release files for llm-tools-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_tools_brave-0.1.0.tar.gz | 7.1 kB | With provenance | Details for llm_tools_brave-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_tools_brave-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llm_tools_brave-0.1.0-py3-none-any.whl |
Total release size: 12.4 kB
Release files / llm_tools_brave-0.1.0.tar.gz
| Download URL | llm_tools_brave-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdf040494802288bc964c55db874787828c577a9eb88f42bcbef7bcdd231c789
|
|
BLAKE2b-256 checksum How to use checksums |
3d1f011a9f023362c0a385e9635ba636236815d5772431f4b1cd0278fc5c9ab3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 21, 2025.
Transparency logRelease files / llm_tools_brave-0.1.0-py3-none-any.whl
| Download URL | llm_tools_brave-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e168ce2b9770e40f947b0d6219289bb0663344fab5dbf97fd34c522d9dd0492d
|
|
BLAKE2b-256 checksum How to use checksums |
b358ad30b3413df804fcf43e971dd2a0686ee1308a7228c98c02bdb8ba6d6741
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 21, 2025.
Transparency logSecurity for llm-tools-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
Both files in this release have been uploaded with provenance metadata.
Attestation for llm_tools_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 Jun 21, 2025.
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.