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

PromptDrifter🧭 PromptDrifter – one‑command CI guardrail that catches prompt drift and fails the build when your LLM answers change.main@2026-07-23
ossatureAn open-source harness for spec-driven code generation.master@2026-07-20
ai-powered-video-analyzerAn offline AI-powered video analysis tool with object detection (YOLO), image captioning (BLIP), speech transcription (Whisper), audio event detection (PANNs), and AI-generated summaries (LLMs via Ollmain@2026-06-14
ReNovel-AI✍️ Revise and enhance novels with ReNovel-AI, your smart tool for story reimagining and memory-driven writing assistance.main@2026-06-13
bibfixerA Python tool that automatically cleans, completes, and standardizes BibTeX entries using LLMs and web search.v0.3.1

More in Developer Tools

types-jinja2Typing stubs for Jinja2
mypyOptional static typing for Python
sagemakerOpen source library for training and deploying models on Amazon SageMaker.
mexPersistent project memory for AI coding agents. Structured scaffold + drift detection CLI.