freshcrate
Home > Developer Tools > llm-tools-searxng

llm-tools-searxng

SearXNG tool plugin for https://llm.datasette.io/

Description

SearXNG tool plugin for https://llm.datasette.io/

README

llm-tools-searxng

PyPI Changelog Tests License

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 keys set searxng_url --value 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 History

VersionChangesUrgencyDate
v0.1.1Added support for using `llm key set searxng_url` in addition to the `SEARXNG_URL` environment variable. **Full Changelog**: https://github.com/justyns/llm-tools-searxng/compare/v0.1.0...v0.1.1Low6/5/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

PromptDrifter🧭 PromptDrifter – one‑command CI guardrail that catches prompt drift and fails the build when your LLM answers change.main@2026-04-19
ossatureAn open-source harness for spec-driven code generation.master@2026-04-18
rjobsCLI tool to search and rank remote job opportunities0.0.0
OSATool that just makes your open source project better using LLM agentsv0.2.10
bibfixerA Python tool that automatically cleans, completes, and standardizes BibTeX entries using LLMs and web search.v0.3.0