Skip to main content
Give Pi, the minimal terminal coding agent, web search and page extraction through the official @tavily/pi-extension package. It adds two extension tools: web_search (Tavily Search) and web_fetch (Tavily Extract).
1

Set your Tavily API key

Get a free key from the Tavily dashboard and export it in the shell where you launch Pi:
The extension reads the key from your environment. OAuth sign-in isn’t supported yet.
2

Install the extension

Then run pi config and make sure the extension resource is enabled. If the package is installed but web_search or web_fetch don’t appear, check this first.
3

Verify the tools are available

Start a fresh Pi session in a clean directory:
Then ask Pi:
You should see web_search and web_fetch in the available tools.

Example prompts

Fetch

Troubleshooting

If Pi says it cannot access the web or Tavily tools do not appear, check these in order:
  1. Is the package installed?
  2. Is the extension resource enabled?
  3. Is the API key set in the same shell where Pi is launched?
  4. Are you starting a fresh session?

Learn more