Pi
Pi, Mario Zechner’s minimal coding agent, ships with no web fetch and no web search tool. Its four default tools are read, bash, edit and write, so when a Pi user asks about a URL, the model writes a shell command (curl, wget, a Python or Node one-liner) and runs it from the developer’s machine. That means a site owner sees whatever User-Agent that command happens to send, which in our lab was Python-urllib/3.14 with no Accept header. Pi users who want proper web tools install an extension, and the dominant one, pi-web-access, sends a User-Agent that imitates an OpenAI/xAI fetcher. So in your logs, Pi traffic is a mix of bare tool strings and a misleading vendor-looking string.
At a glance
Section titled “At a glance”| Pi 1.4.0 core | Pi + pi-web-access 0.48.0 |
|
|---|---|---|
| Fetch tool | None; model uses bash |
fetch_content |
| Search tool | None | web_search (Exa MCP by default, other providers with keys) |
| Who issues the request | Developer machine, developer IP | Developer machine; Jina or Firecrawl if those fallbacks are enabled |
| User-Agent | Whatever the command sends: curl/x.y, Python-urllib/3.x, node, undici |
OpenAI File Downloader, XaiImageApiFetch/1.0 (configurable) |
| Accept header | Usually none, or */* from curl |
text/markdown first when preferring markdown, else Chrome-style HTML Accept |
| JS rendering | None | None in the HTTP path |
| Content conversion | None unless the model scripts one | Defuddle (markdown mode), with Readability and turndown |
| Size and truncation | Whatever the shell output and model context allow | 30 s timeout, 5 MB PDF limit |
| Caching | None | Not documented |
| robots.txt | Not requested | Not requested |
| Permission model | None by default (“YOLO”); safety is the user’s container or VM | Same, extension tools run without prompts |
How fetching works
Section titled “How fetching works”There’s no HTTP code anywhere in Pi core’s tools. The default active tool list is ["read", "bash", "edit", "write"] (agent-session.ts), and a search of packages/coding-agent/src for web, fetch, search, Exa, Tavily or Firecrawl finds no web tool, only an Anthropic provider name map and test fixtures verified in code. Zechner’s design post says the same thing in prose, explaining that by default Pi has no web search or fetch tool and is expected to use curl through bash (Zechner, 2025-11-30) documented.
In practice, this means the model, not Pi, decides what your server sees. In our Dec 2026 lab run, Pi 1.4.0 retrieved a canary page correctly, and the request arrived from the developer’s IP with User-Agent: Python-urllib/3.14 and no Accept header, because the model chose to write a Python one-liner instead of calling curl measured in our lab (lab run). Netlify classified that request as tooling; custom-code, the same bucket it used for Claude Code’s and Codex’s curl calls.
Pi core: the model scripts the fetch itself
- Model→Pi (bash tool)
bash: python3 -c "urllib..."or curl, wget, node -e
- Pi (bash tool)
run command, no prompt - Pi (bash tool)→Your site
GET urlUA: Python-urllib/3.14, no Accept
- Your site→Pi (bash tool)
200 text/html - Pi (bash tool)→Model
raw stdout (HTML)no conversion unless scripted
Because nothing converts HTML in this path, the model gets raw markup on stdout unless it pipes the response through something else. A page whose key facts sit in clean, early, server-rendered HTML is the one most likely to survive a curl | head style command inferred. Pi also applies no permission prompt to bash. Its security documentation says safety comes from running in a container or VM, advises restricting network access when it isn’t needed, and notes that transcripts and review “do not create a security boundary” documented. For users who do want prompts, there’s an example permission-gate.ts extension.
How searching works
Section titled “How searching works”Pi core can’t search at all, so a Pi user who wants search installs a package from the npm pi-package ecosystem (gallery) with pi install npm:<name> documented. When we looked at weekly npm downloads on 2026-12-02, there was one clear leader:
| Package | Weekly downloads | What it adds |
|---|---|---|
pi-web-access 0.48.0 |
~148k | web_search and fetch_content |
pi-web-search 1.7.0 |
~6.5k | Provider-native search (Gemini, xAI, OpenAI Responses) |
@mrclrchtr/supi-web |
~1k | Fetch, search, Context7 |
pi-exa |
~655 | Exa search, deep research, fetch |
@counterposition/pi-web-search |
~73 | Multi-provider search and markdown fetch |
pi-web-access searches through Exa’s MCP server (https://mcp.exa.ai/mcp) with zero configuration, uses SearXNG first if the user configured one, uses subscription-backed OpenAI search on a ChatGPT login, and adds Brave, Parallel, Tavily and others when keys exist verified in code. Its keyless DuckDuckGo provider identifies honestly as Mozilla/5.0 (compatible; pi-web-access/1.0; +https://github.com/nicobailon/pi-web-access), but that string goes to DuckDuckGo, not to your site. Just like with OpenCode, being found through a Pi search mostly comes down to being in Exa’s index.
The pi-web-access fetcher and its spoofed UA
Section titled “The pi-web-access fetcher and its spoofed UA”The fetch_content tool in pi-web-access 0.48.0 (read from the npm tarball) sends a default User-Agent of OpenAI File Downloader, XaiImageApiFetch/1.0, set in ssrf-protection.ts and overridable through fetchContent.userAgent in ~/.pi/web-search.json verified in code. That string borrows the naming of OpenAI and xAI fetchers, so if you attribute traffic by UA alone, you’ll credit a Pi user’s fetch to another vendor. The request also carries browser-style navigation headers:
Accept: text/markdown,text/html;q=0.9,application/xhtml+xml;q=0.9, application/xml;q=0.8,image/avif;q=0.9,image/webp;q=0.9, image/apng;q=0.9,*/*;q=0.7Accept-Language: en-US,en;q=0.9Cache-Control: no-cacheSec-Fetch-Dest: documentSec-Fetch-Mode: navigateSec-Fetch-Site: noneSec-Fetch-User: ?1This is the header set from extract.ts in the pi-web-access 0.48.0 tarball, used when the tool prefers markdown; otherwise it sends a Chrome-style HTML Accept.
The fetcher defaults to a 30 s timeout, a same-origin redirect policy and SSRF protection. Extraction uses Defuddle in markdown mode with Mozilla Readability and turndown, plus special handling for GitHub repositories (it clones them), PDFs and YouTube. When the direct HTTP fetch fails, the fallback order is http, firecrawl, crawl4ai, jina, tinyfish, and if Jina Reader is enabled, the request to your site comes from Jina’s infrastructure via https://r.jina.ai/<url> and not from the developer verified in code.
- Pi bash tool → docs.example.com
Python-urllib, curl - pi-web-access → docs.example.com
OpenAI File Downloader - pi-web-access → Exa MCP
search query - Jina / Firecrawl → docs.example.com
fetch, provider UA
Other paths to your content
Section titled “Other paths to your content”One detail I want to flag is that Pi 1.4.0 has built-in MCP support, which contradicts Zechner’s 2025 statement that Pi “does not and will not support MCP”. The current repository documents it in docs/mcp.md, the CLI has pi mcp add and pi mcp list, and pi --help on 1.4.0 lists --no-mcp verified in code. Configuration lives in ~/.pi/agent/mcp.json and, after project trust, .pi/mcp.json. Nothing ships configured, so a docs MCP only reaches Pi users who add it deliberately. Pi’s own requests to LLM providers do carry a detailed Pi UA, but those never reach a website.
What shows up in your logs
Section titled “What shows up in your logs”| Action | Source IP | User-Agent | Other headers | robots.txt |
|---|---|---|---|---|
| Core Pi, model uses curl | Developer | curl/8.x | Accept: */* | Not fetched |
| Core Pi, model uses Python (seen in our lab) | Developer | Python-urllib/3.14 | No Accept | Not fetched |
| Core Pi, model uses Node | Developer | node or undici inferred | Runtime defaults | Not fetched |
pi-web-access fetch_content |
Developer | OpenAI File Downloader, XaiImageApiFetch/1.0 |
Markdown-first Accept, Sec-Fetch-*, Cache-Control: no-cache |
Not fetched |
pi-web-access with Jina fallback |
Jina’s servers | Jina Reader’s UA | Not captured | Jina’s policy |
pi-web-access web_search |
None | None | Exa answers from its index | Exa’s policy |
You’ll notice that none of these strings says “Pi”. There’s no way to tell a bare curl or Python-urllib request from Pi apart from another agent’s shell tool, a CI job or a human, so Pi usage is effectively invisible in UA statistics inferred. The spoofed OpenAI File Downloader string is the closest thing to a fingerprint, because when it arrives from a residential or office IP with Sec-Fetch-* headers, it’s much more likely to be pi-web-access than an OpenAI system. The user-agent reference has the full list.
What this means for discoverability
Section titled “What this means for discoverability”Pi’s reach into your site depends on the model’s shell habits, so I’d plan for the crudest client possible, with no JavaScript, no conversion and raw HTML on stdout. Server-rendered pages with the answer near the top of the document suit core Pi best, and so do plain-text or markdown endpoints such as /llms.txt or .md URLs that a model can curl directly inferred. Content negotiation helps only when the extension is installed, since curl sends Accept: */* and urllib sends none.
For search, Pi with pi-web-access behaves like OpenCode on Zen, meaning discovery runs through Exa unless the user configured something else. I’d treat Exa index presence as its own visibility channel and check it with the test catalog. The comparison matrix shows how unusual Pi’s no-built-in-tools stance is among the agents we cover here.
Tests to run against this agent
Section titled “Tests to run against this agent”- Shell client choice. Run core Pi against a logging endpoint with the same fetch prompt across three models. Expected: UAs vary by model between
curl,Python-urlliband Node, with no Accept header or*/*. - Markdown availability. Expose a
.mdtwin of a page and mention it on the HTML page. Expected: Pi models sometimes switch to the markdown URL on a secondcurl. - Extension headers. Install
pi-web-access, repeat the fetch, and confirm theOpenAI File DownloaderUA, markdown-first Accept andSec-Fetch-*headers. - Fallback provider. Block the direct request (return 403) with Jina enabled. Expected: a second request from Jina’s network instead of the developer’s.
- Search index presence. With
pi-web-access, search for a unique phrase on your site. Expected: results only if Exa has indexed it, and no hit on your origin from the search itself.
Open questions
Section titled “Open questions”- We haven’t measured how often different models pick
curl, Python or Node inside Pi, and a multi-model batch against one endpoint would give us the distribution. - We didn’t capture the User-Agent that Jina, Firecrawl or Exa’s live crawl present when acting for
pi-web-access. - We don’t know whether Pi’s built-in MCP changes how often users install web MCP servers instead of extensions, and npm download counts alone can’t answer that.
Further reading
Section titled “Further reading”- What I learned building an opinionated and minimal coding agent (Zechner)
- What if you don’t need MCP at all? (Zechner)
- pi-mono repository
- Pi package gallery and pi-web-access on npm
- The Current State of Content Negotiation for AI Agents (Checkly)
Last reviewed 2026-12-02 against Pi 1.4.0 (pi-mono cf563a4) and pi-web-access 0.48.0. This site is re-reviewed monthly; see maintenance.