A pi extension that gives the LLM web search via the Brave Search API.
pi install git:github.com/resolveworks/scryOr to try it without installing:
pi -e git:github.com/resolveworks/scryGet a free API key at brave.com/search/api and set it:
export BRAVE_API_KEY=your_key_hereAdd to your shell profile (~/.bashrc, ~/.zshrc, etc.) to persist it.
Ask pi anything that benefits from up-to-date web results. The LLM will call web_search automatically when it needs to look something up.
You can also prompt it directly:
Search the web for the latest Node.js 22 changelog
| Param | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search query |
freshness | enum | no | pd (24h), pw (7d), pm (31d), py (year) |
Returns 10 results with titles, URLs, descriptions, and extra snippets.
Requires Node.js 22.18 or newer and pnpm 11.3.0.
pnpm install --frozen-lockfile
pnpm typecheck
pnpm format:checkUse pnpm format to apply formatting.