Skip to content

Repository files navigation

scry

A pi extension that gives the LLM web search via the Brave Search API.

Install

pi install git:github.com/resolveworks/scry

Or to try it without installing:

pi -e git:github.com/resolveworks/scry

Setup

Get a free API key at brave.com/search/api and set it:

export BRAVE_API_KEY=your_key_here

Add to your shell profile (~/.bashrc, ~/.zshrc, etc.) to persist it.

Usage

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

Parameters

ParamTypeRequiredDescription
querystringyesSearch query
freshnessenumnopd (24h), pw (7d), pm (31d), py (year)

Returns 10 results with titles, URLs, descriptions, and extra snippets.

Development

Requires Node.js 22.18 or newer and pnpm 11.3.0.

pnpm install --frozen-lockfile
pnpm typecheck
pnpm format:check

Use pnpm format to apply formatting.

About

Peer into the void

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages