@kivlor/pi-websearch0.1.3
Exa-backed web search and content fetch for pi — raw TypeScript, no build step
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@kivlor/pi-websearch
Web search for the Pi coding agent, powered by Exa: search the web and fetch full text content for known URLs.
Install
pi install npm:@kivlor/pi-websearch
--local/-l writes the declaration to the project's .pi/settings.json
instead of the personal one. Manage installed extensions with pi config.
Tools
web_search— search the web with Exa. Singlequeryor up to 4 variedqueriesrun concurrently; optionalnumResults,includeContent,recencyFilter(day/week/month/year),domainFilter(-domainexcludes).web_fetch— fetch full text content for known URLs via Exa's/contentsendpoint (up to 10 per call).
Usage
Ask pi: "search the web for recent news about X" or "fetch the full content of this URL", and the model calls the matching tool.
Commands
/websearch— show Exa configuration status.
Configuration
Resolution order:
exaApiKeyin~/.pi/agent/web-search.jsonEXA_API_KEYenvironment variable
With a key, searches hit the Exa REST API (api.exa.ai, override with
exaBaseUrl in config or EXA_BASE_URL). Without a key, they fall back to
the free Exa MCP endpoint (mcp.exa.ai), which is rate-limited (429s).