llm-tools-searxng
A tool to search the web using SearXNG search engines.
Installation
Install this plugin in the same environment as LLM.
llm install llm-tools-searxng
Configuration
By default, the tool does not have a default SearXNG URL set. You can configure it in one of two ways:
Using environment variables
export SEARXNG_URL=https://your-searxng-instance.com
export SEARXNG_METHOD=GET # or POST (default)
Using LLM's built-in key management
llm key set searxng_url https://your-searxng-instance.com
Note: Public SearXNG instances typically don't allow API access or JSON output.
Usage
Simple search function
Use the searxng_search function for basic web searches:
llm --tool searxng_search "latest developments in AI" --tools-debug
With LLM chat
This plugin works well with llm chat:
llm chat --tool searxng_search --tools-debug
Python API usage
import llm
from llm_tools_searxng import SearXNG, searxng_search
# Using the simple function
model = llm.get_model("gpt-4.1-mini")
result = model.chain(
"What are the latest developments in renewable energy?",
tools=[searxng_search]
).text()
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-searxng
uv sync --all-extras
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
uv run python -m pytest
Release files for llm-tools-searxng 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 | |
|---|---|---|---|
| llm_tools_searxng-0.1.1.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_tools_searxng-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / llm_tools_searxng-0.1.1.tar.gz
| Download URL | llm_tools_searxng-0.1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
560aedebf8fbc9f5ffccb044cd2a4c481cf1e48bf5088fd9e741d4658f0b53c3
|
|
BLAKE2b-256 checksum How to use checksums |
f9c9a074497d499f6d7dc469aaa6b0334562ab203d5c8a1ea34bf265cb29abc3
|
| 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 5, 2025.
Transparency logRelease files / llm_tools_searxng-0.1.1-py3-none-any.whl
| Download URL | llm_tools_searxng-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f2b1902649157c0bd5c2d0f415cdd1630a3d1c1dc223ad26401dc26b657dcff
|
|
BLAKE2b-256 checksum How to use checksums |
30a38b292bc4102d0a16a4bbb8fde8bf0af53ec3ca2d6838a992065797af7344
|
| 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 5, 2025.
Transparency log