@pi-lab/websearch

Exa-powered web search tool extension for pi coding agent

Package details

extension

Install @pi-lab/websearch from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@pi-lab/websearch
Package
@pi-lab/websearch
Version
0.1.0
Published
May 2, 2026
Downloads
not available
Author
cheny341
License
MIT
Types
extension
Size
11.7 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.mjs"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@pi-lab/websearch

A pi extension that adds a websearch tool powered by Exa.

Install

pi install npm:@pi-lab/websearch

Usage

Set your Exa API key before starting pi:

export EXA_API_KEY=<your-api-key>
pi

You can also provide EXA_API_KEY through @pi-lab/env.

Once installed and configured, ask pi to search the web. For example:

Search the web for the latest Exa Search API docs.

The tool returns short, citation-friendly results with titles, URLs, dates, authors, and highlights when available. Use webfetch on a result URL if you need to read the full page.

Notes

  • num_results defaults to 5 and supports 1–20 results.
  • Use domain filters when you want official or source-specific results.
  • Use news/date filters for recent events.