npm
@tavily/pi-extensionGet API Key
Sign up at tavily.com
Introduction
Pi is a minimal terminal coding agent and harness that you can extend with TypeScript extensions, skills, prompt templates, and themes. Tavily integrates with Pi through the official npm package:What this adds to Pi
The Tavily Pi extension adds two Tavily-powered tools:web_search— search the web with Tavily Searchweb_fetch— extract content from one or more URLs with Tavily Extract
These are Pi extension tools, not Pi built-in tools.
Requirements
- Pi installed locally
- A Tavily API key
Authentication
Version 1 uses an API key via environment variable:Install
Step 1: Install Pi
Step 1: Install Pi
If Pi is not installed yet, install it first:
Step 2: Set your Tavily API key
Step 2: Set your Tavily API key
Export your Tavily API key in the same shell where you will launch Pi:
Step 3: Install the Tavily Pi extension
Step 3: Install the Tavily Pi extension
Install the published npm package into Pi:
Step 4: Enable the extension resource
Step 4: Enable the extension resource
After installation, make sure the extension resource is enabled:If the package is installed but
web_search or web_fetch do not appear, this is the first thing to check.Step 5: Verify the tools are available
Step 5: 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
Search
Fetch
Troubleshooting
If Pi says it cannot access the web or Tavily tools do not appear, check these in order:- Is the package installed?
- Is the extension resource enabled?
- Is the API key set in the same shell where Pi is launched?
- Are you starting a fresh session?