freshcrate
Skin:/
Home > Developer Tools > llm-tools-searxng

llm-tools-searxng

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

Why this rank:Strong adoptionHealthy release cadence

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
v0.1.0Initial release of llm-tools-searxng with basic functionality to search searxng instances.Low5/31/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

ReNovel-AI✍️ Revise and enhance novels with ReNovel-AI, your smart tool for story reimagining and memory-driven writing assistance.main@2026-06-05
PromptDrifter🧭 PromptDrifter – one‑command CI guardrail that catches prompt drift and fails the build when your LLM answers change.main@2026-06-04
ossatureAn open-source harness for spec-driven code generation.master@2026-06-01
OSATool that just makes your open source project better using LLM agentsv0.2.11
rjobsCLI tool to search and rank remote job opportunities0.0.0

More in Developer Tools

mypyOptional static typing for Python
pipThe PyPA recommended tool for installing Python packages.
anthropicThe official Python library for the anthropic API
openinference-instrumentationOpenInference instrumentation utilities