pi-lean-search
v0.2.3
Published
Pi extension. SearXNG search tool for Pi — pairs with pi-lean-portal's /web toggle; search-only installs are valid, or add it to a portal install for the full web-tools suite.
Maintainers
Readme
pi-lean-search
SearXNG search tool for Pi. Pairs with pi-lean-portal's
/webtoggle — search-only installs are valid, or add it to a portal install for the full web-tools suite. Part of the pi-lean-dimension web-tools suite.
Quick start
pi install npm:pi-lean-portal # recommended: browser + /web toggle
pi install npm:pi-lean-search # adds web-search to /web on|offOr get the full suite in one command:
pi install npm:pi-lean-dimension # portal + search, requires SearXNG serverUsage
| Command / Tool | Description |
|---|---|
| web-search tool | Search the web via your SearXNG instance. Supports count (1–100) and pageno (1-indexed) for deeper result pagination. Agents use this automatically. |
| /searxng-status | Test and diagnose the SearXNG connection. |
The web-search tool is automatically included in /web on / /web off toggling
when pi-lean-portal is also installed. The status bar shows a ● searxng glyph
(colored accent/blue when healthy, yellow when degraded, red when unreachable).
Configuration
Set the URL of your SearXNG instance in your Pi settings file:
~/.pi/agent/settings.json (global) or .pi/settings.json (project-local):
{
"searxng": {
"url": "http://localhost:8888"
}
}- Self-hosted SearXNG: Run your own instance (docs).
- No URL configured? The tool returns a setup message on its first call — no errors, no broken prompts.
Graceful degradation
If SearXNG is unreachable or unconfigured, the web-search tool returns a clear
message pointing you toward setup instructions. It never throws or breaks the agent.
Tests
npx vitest run packages/pi-lean-search/