Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.parallel.ai/llms.txt

Use this file to discover all available pages before exploring further.

For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending .md to its URL or sending Accept: text/markdown.
The Parallel extension for Pi adds web_search and web_fetch tools to your Pi agent, backed by the Parallel Search and Extract APIs. Once configured, any requests to search the web or fetch a webpage will automatically use Parallel.
Pi extension running in the terminal with Parallel-powered web_search and web_fetch tools
Why use Parallel tools?
  • More accurate and relevant search results
  • Intelligent content extraction that understands page structure
  • Extended excerpts optimized for LLM context windows
  • Faster and more reliable than built-in alternatives

Setup

1

Install the extension

Install @parallel-web/pi-extension from npm:
pi install npm:@parallel-web/pi-extension
2

Authenticate

Choose one of the following authentication methods:Option A: Parallel OAuth login (recommended)Inside Pi, run:
/parallel-login
This opens your browser for Parallel OAuth. On success, the API key is stored in Pi’s auth store under the parallel provider key.If automatic callback capture does not complete, the extension falls back to asking you to paste the callback URL.Option B: Environment variable
export PARALLEL_API_KEY=your_api_key
Get your API key at platform.parallel.ai.Stored Pi auth is preferred over PARALLEL_API_KEY if both exist.

Tools and commands

Once configured, Pi gains two Parallel-powered tools and a login command:
NameTypeDescription
web_searchToolWeb search with high-quality, LLM-optimized results. Requires search_queries.
web_fetchToolIntelligent content extraction from any URL. Accepts multiple URLs in a single call so the agent can batch extraction work.
/parallel-loginCommandBrowser-based Parallel OAuth login. Stores the resulting API key in Pi’s auth store.
Any subsequent requests to search the web or fetch a webpage will automatically use these tools.

Notes

  • The extension uses the parallel-web TypeScript SDK directly.
  • Search requests use Parallel SDK basic mode.
  • The extension modifies Pi’s system prompt so that grounding via web search is preferred over guessing when applicable.

Learn more