← Catalog

pi-openai-web-search

OpenAI Responses native web_search tool for the pi coding agent

Extension

Install

Install with PiG

pig install npm:pi-openai-web-search

Install with Pi

pi install npm:pi-openai-web-search
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.0.2 (README.md). PiG does not review it.

A pi extension that adds a web_search tool backed by OpenAI's native Responses API web_search tool.

When the model calls web_search, the extension sends a separate Responses request that forces OpenAI's hosted web_search tool. It uses the credentials pi already holds for the openai provider (API key or Sign in with ChatGPT), so no extra API key is needed.

Install

pi install npm:pi-openai-web-search

Use

Log in to the openai provider. The model can then call web_search with a query. The result is the answer text followed by its source URLs.

Searches run on openai/gpt-6-luna regardless of the conversation model. Set PI_OPENAI_WEB_SEARCH_MODEL to use another openai model.

See docs/design.md for why search runs as a separate request and how the model was chosen.

Development

bun install
bun fmt --check
bun run lint
bun run typecheck
bun test

License

MIT