Repository navigation
Releases
v0.5.0 — Trusted User Agent
v0.5.0 — release notes
Pi Browser is now Trusted User Agent
The add-ons and the host package now use one name: Trusted User Agent (npm
trusted-user-agent, command trusted-ua). Since v0.4.0 the add-ons chat with Claude Code and
Codex as well as pi, so "Pi" no longer described the product. pi is still the built-in agent.
Nothing to do for the add-ons: they keep their IDs, so Firefox and Thunderbird update them in
place. Old and new add-ons and hosts work together, in any order.
After upgrading the host
trusted-ua install # refresh the native host registration
trusted-ua mcp install all # rename each MCP client's pi-browser entry to trusted-uaWhat changed
| What | Before | Now |
|---|---|---|
| Add-ons | Pi Browser, Pi Thunderbird | Trusted User Agent, Trusted User Agent for Thunderbird |
| MCP server | pi-browser (mcp__pi-browser__<tool>) |
trusted-ua (mcp__trusted-ua__<tool>) |
| pi commands | /pi-browser, /pi-skills |
/trusted-ua, /trusted-ua-skills (old names still work) |
| Files | ~/.pi/browser/, ~/.pi/run, ~/.pi/workspaces, ~/.pi-browser |
~/.trusted-ua/ |
| Environment | PI_BROWSER_* |
TRUSTED_UA_* (old names still read) |
| Package folder (git / pi installs) | packages/pi-agent |
packages/trusted-user-agent |
| Release files | pi-browser-firefox-X.xpi, pi-thunderbird-X.xpi |
trusted-user-agent-firefox-X.xpi, trusted-user-agent-thunderbird-X.xpi |
- Your approvals,
agents.jsonand the list of Claude Code / Codex sessions are read from
~/.pi/browser/until the first change saves them to~/.trusted-ua/. Nothing is deleted. - An MCP client whose entry is still named
pi-browserkeeps working;trusted-ua mcp status
reports it as old. Update agent instructions or allowlists that mentionmcp__pi-browser__…. - pi subagent definitions that load
…/packages/pi-agent/extensions/pi-browser-tools.ts
(ext:pi-browser-tools) need the new path
…/packages/trusted-user-agent/extensions/trusted-ua-tools.ts(ext:trusted-ua-tools). - The add-ons ⇄ host protocol uses new names (
x-trusted-ua/*,_meta.trustedUa) and still
understands the v0.4.0 ones; the protocol version stays 3. The add-ons keep their ACP client names (pi-browser-firefox,pi-thunderbird), which older hosts use to detect them.
Install
- Firefox:
trusted-user-agent-firefox-0.5.0.xpi(signed by Mozilla). Open it in Firefox, or
Add-ons Manager → Install Add-on From File. An installed v0.4.0 add-on is updated in place. - Thunderbird:
trusted-user-agent-thunderbird-0.5.0.xpi, Add-ons Manager → Install Add-on
From File. - Host:
npm i -g trusted-user-agent@0.5.0, thentrusted-ua install(and
trusted-ua mcp install allfor MCP clients). Or, as a pi package:
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.5.0.
Other files: trusted-user-agent-firefox-0.5.0.zip (unsigned Firefox build) and
trusted-user-agent-0.5.0-source.zip (source).
v0.4.0 — chat with Claude Code or Codex in the sidebar
v0.4.0 — release notes
Chat with Claude Code or Codex in the sidebar
The new-session panel in the Firefox sidebar and the Thunderbird Space and pane now has an
Agent choice: pi (the default, unchanged), Claude Code, Codex, or any ACP agent
you add in ~/.pi/browser/agents.json.
- Requirements: the agent's ACP adapter on your
PATH
(npm i -g @agentclientprotocol/claude-agent-acp,npm i -g @agentclientprotocol/codex-acp)
and the agent logged in with its own CLI. Missing agents are shown disabled, with the reason. - The agent as it is: its streamed replies, thinking, tool cards, file diffs, plans and
settings (model, mode, effort) show in the sidebar as the agent sends them. - Browser and mail tools, no setup: each session gets the
pi-browsertools tied to that
session — its bound tab, its approvals, prompts in the sidebar or pane — and can reach the
other app's tools when both run. - The agent's own prompts ("Codex wants to run a command", with the command or diff) show in
the sidebar with the agent's options. The add-on never remembers them. - Sessions are listed and reopen through the agent.
- Idle agents stop after 15 minutes (
idleTimeoutMinutesper agent; 0 = never). The next
message starts the agent again and reloads the conversation. - Clear errors: a missing adapter names the command; an agent that isn't logged in says how
to log in ("Codex needs you to log in: runcodex loginin a terminal, then try again"); a
crashed agent ends the turn with an error and restarts on the next message. trusted-ua status/doctorand/pi-browser statuslist the agents andagents.json
problems.
Compatibility: additive. Older add-ons keep creating pi sessions; with an older host the panel
shows no agent choice. PI_BROWSER.protocolVersion stays 3.
Google's Antigravity CLI (Gemini CLI's successor) has no ACP mode, so it isn't offered.
v0.3.0 — Firefox and Thunderbird tools for any agent
Install
Host, without pi (Node.js >= 22):
npm i -g trusted-user-agent
trusted-ua install # registers the native host for Firefox + Thunderbird
trusted-ua mcp install all # optional: add pi-browser to every MCP client foundHost, with pi:
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.3.0then, in any Pi session, /pi-browser install.
Firefox (153+): install pi-browser-firefox-0.3.0.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–160): right-click pi-thunderbird-0.3.0.xpi → Save Link As…, then in Thunderbird: Add-ons and Themes → gear → Install Add-on From File….
pi-browser-firefox-0.3.0.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.3.0-source.zip is the source of this tag.
Use Firefox and Thunderbird from any agent
The pi-browser MCP server now works for any MCP client — Claude Code, Codex, Cursor,
Gemini CLI, VS Code, or a separate pi — whenever Firefox or Thunderbird is running with the
add-on. No Pi chat needs to be open.
npm i -g trusted-user-agent
trusted-ua install # register the native host (Firefox + Thunderbird)
trusted-ua mcp install all # add pi-browser to every MCP client found- Each agent gets its own session. Every MCP connection has its own approvals and its own
javascriptREPL, and ends when the agent disconnects. - You approve each agent once per app. The first call from a new agent asks
"Allow codex to use Firefox tools?" (Allow this time / Always allow / Deny). Firefox and
Thunderbird ask separately. Every tool call still asks as set on the permissions page, and
the prompt names the agent. - Prompts come to you. Prompts from other agents open a small approval window in the app,
even with the sidebar or Space closed. Closing the window denies. The toolbar / Space button
shows a badge while a prompt waits. - You can turn it off. Pi settings → permissions → Other apps (MCP): switch off, or revoke
agents you allowed or denied. - Browser tools act on a tab the agent binds (
browser_list_tabs+browser_bind_tab, or
browser_open_tab). Agents can't take a tab bound to one of your Pi chats.
New: the trusted-user-agent npm package
The host package is now published to npm as trusted-user-agent with the command
trusted-ua — no pi CLI needed:
trusted-ua [install|status|doctor|uninstall] [firefox|thunderbird|mozilla]trusted-ua mcp [install|status|uninstall] [pi|claude|codex|cursor|gemini|vscode|all]
The installer refuses to register from a temporary location (an npx cache or the temp
directory), because the registration would break when npm cleans it up: install globally first.
pi install git:github.com/matbeedotcom/pi-agent-firefox keeps working, and /pi-browser mcp
takes the same client argument.
Changed (small breaking change)
MCP calls from programs the host didn't start no longer act inside the sidebar's most recent
Pi session. They run as their own session, with their own approvals. If you still have the
pre-v0.2.5 direct-socket entry in ~/.pi/agent/mcp.json (/pi-browser mcp status reports it
as STALE), run /pi-browser mcp install again. Pi subagents started by the host keep using
their chat session as before.
/pi-browser mcp install no longer overwrites an mcp.json it can't parse; it reports the
error and leaves the file alone.
Compatibility
- New host + older add-on: prompts from other agents show in the sidebar / Space as before
(no approval window); the one-time agent prompt reads "codex wants to use Firefox tools". - Older host + new add-on: nothing changes.
- Rolling back to v0.2.5 is safe; it ignores the new entries in
~/.pi/browser/permissions.json.
License
MIT (new in this release).
Verified on Windows 11: the signed xpi in Firefox 160 (install, connect, sidebar session, browser tools through the broker as an external caller), external callers end to end in Firefox 160 and Thunderbird 160 (approval window, per-app caller approval, close-to-deny), trusted-ua mcp install all with the real Claude Code and Codex CLIs (claude mcp list shows pi-browser connected), and a clean npm i -g of the packed package with no pi on PATH.
v0.2.5
Install
Pi plugin (Node.js >= 22):
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.2.5then, in any Pi session, /pi-browser install to register the native host.
Firefox (153+): install pi-browser-firefox-0.2.5.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–160): right-click pi-thunderbird-0.2.5.xpi → Save Link As…, then in Thunderbird: Add-ons and Themes → gear → Install Add-on From File…. (Opening it in Firefox shows "unverified add-on": it is a Thunderbird add-on, and Thunderbird does not require signing.)
pi-browser-firefox-0.2.5.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.2.5-source.zip is the source of this tag.
What's changed since v0.2.4
Faster session start
- New sessions start in about half the time: the host no longer loads every pi extension twice for a fresh session.
- The first New workspace session after Firefox/Thunderbird starts opens instantly — one workspace is prepared in the background right after the add-on connects (
PI_BROWSER_PREWARM=0turns this off). - The host log now shows per-step timings for session start.
How long a session takes depends on your pi extensions: each new working directory loads all of them, and pi does this synchronously. Measured on Windows with 10 extensions: ~16 s → ~8 s for a new session, and ~15 ms for the prepared one.
pi 1.5.2
- The add-ons now run on pi 1.5.2 (was 0.85.1), matching current pi — same settings, packages and session format as the
piCLI, plus pi's built-in llama.cpp, MCP, codemode and tool-search extensions.
Subagent tools with pi's built-in MCP client
/pi-browser mcp installnow registers a small stdio bridge, which pi's built-in MCP client (stdio/HTTP only) can launch; pi-mcp-adapter keeps working too. Tools appear asmcp__pi-browser__<tool>and load on demand viatool_search(change the exposure in/mcp). The server is available even before Firefox/Thunderbird start; calls return a clear "open the app" message until one is running.- If you ran
/pi-browser mcp installbefore, run it again:/pi-browser mcp statusreports the old entry as stale.
Verified end to end on Windows 11: fresh pi install from this tag (embedded pi 1.5.2), the signed xpi in Firefox 160, and the Thunderbird xpi in Thunderbird 153.7 ESR and 160 — browser and mail tools, the new-session panel, and pi mcp list (pi 1.5.2) seeing all 50 tools through the bridge.
v0.2.4
Install
Pi plugin (Node.js >= 22):
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.2.4then, in any Pi session, /pi-browser install to register the native host.
Firefox (153+): install pi-browser-firefox-0.2.4.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–160): right-click pi-thunderbird-0.2.4.xpi → Save Link As…, then in Thunderbird: Add-ons and Themes → gear → Install Add-on From File…. (Opening it in Firefox shows "unverified add-on": it is a Thunderbird add-on, and Thunderbird does not require signing.)
pi-browser-firefox-0.2.4.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.2.4-source.zip is the source of this tag.
What's changed since v0.2.3
New session panel (Firefox sidebar, Thunderbird Space and pane)
- Shows progress. Clicking Create session used to give no feedback while Pi started (it can take 15 s or more on a first start). The button now turns into a spinner, a status line counts the seconds and explains slow starts, and Cancel becomes Hide — the session still opens when ready.
- Defaults to a fresh
.piworkspace. The working directory shows New workspace under~/.pi/workspaces; click it to type a project folder instead, or switch back. - Errors stay visible in the panel instead of flashing briefly, and relative paths are rejected with a clear message.
Verified end to end on Windows 11: fresh pi install from this tag, the signed xpi in Firefox 160, and the Thunderbird xpi in Thunderbird 153.7 ESR and 160 — browser and mail tools work, and the new panel (default workspace, edit, progress, session creation, error handling) was exercised in the Firefox sidebar and the Thunderbird Space.
v0.2.3
Install
Pi plugin (Node.js >= 22):
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.2.3then, in any Pi session, /pi-browser install to register the native host.
Firefox (153+): install pi-browser-firefox-0.2.3.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–160): right-click pi-thunderbird-0.2.3.xpi → Save Link As…, then in Thunderbird: Add-ons and Themes → gear → Install Add-on From File…. (Opening it in Firefox shows "unverified add-on": it is a Thunderbird add-on, and Thunderbird does not require signing.)
pi-browser-firefox-0.2.3.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.2.3-source.zip is the source of this tag.
What's changed since v0.2.2
- Project icon. Both add-ons now have an icon — in the add-ons manager, the Firefox sidebar and toolbar button, and Thunderbird's Pi Space button — instead of the default puzzle piece.
Verified end to end on Windows 11: fresh pi install from this tag, the signed xpi in Firefox 160, and the Thunderbird xpi in Thunderbird 153.7 ESR and 160 — add-ons install with the new icon, connect, open sessions, and the browser and mail tools work.
For the larger changes in 0.2.2 (Thunderbird tools over MCP, session timeout, Windows provider loading, Gloda search, Thunderbird 160), see the v0.2.2 notes.
v0.2.2
Install
Pi plugin (Node.js >= 22):
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.2.2then, in any Pi session, /pi-browser install to register the native host.
Firefox (153+): install pi-browser-firefox-0.2.2.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–160): Add-ons Manager → gear → Install Add-on From File… → pi-thunderbird-0.2.2.xpi.
pi-browser-firefox-0.2.2.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.2.2-source.zip is the source of this tag.
What's changed since v0.2.1
New
- Subagents can use Thunderbird. The broker's MCP server (
/pi-browser mcp install) and the in-process subagent extension now expose the Thunderbird tools —mail_*,compose_*, mail organization,contacts_*— alongside the browser tools (50 tools). Each call runs in whichever app serves the tool. - Thunderbird 160 supported (was capped at 155, so the current release channel refused to install the add-on).
Fixes
- First session no longer times out. Opening a session loads your pi packages and extensions; on a realistic setup that took ~14 s, past the 10 s limit, so both add-ons showed "request timed out: session/new". The limit is now 120 s.
- Windows: local model providers load again. The host failed to load pi's built-in extensions on Windows (including the llama.cpp provider).
- Thunderbird full-text search uses the fast Gloda index. The
piSearchexperiment never loaded (malformed schema), so full-textmail_searchfell back to a 45–100 s scan. With it working, two hidden bugs surfaced and are fixed: every hit was dropped, and results would have carried folder-local keys instead of real message ids. Full-text search now returns in tens of milliseconds on a real mailbox.
Verified end to end on Windows 11: fresh pi install from this tag → /pi-browser install → signed xpi in Firefox 160, and the Thunderbird xpi in Thunderbird 153.7 ESR and 160 → add-ons connect → sessions open → browser and mail tools work over MCP, including Gloda full-text search against a real mailbox.
v0.2.1
Install
Pi plugin (Node.js >= 22):
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.2.1then, in any Pi session, /pi-browser install to register the native host.
Firefox (153+): install pi-browser-firefox-0.2.1.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–155): Add-ons Manager → gear → Install Add-on From File… → pi-thunderbird-0.2.1.xpi.
pi-browser-firefox-0.2.1.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.2.1-source.zip is the source of this tag.
What's changed since v0.2.0
- Fix:
pi installof v0.2.0 was broken. pi installs with--legacy-peer-deps, which skippedzod(a peer dependency of the ACP SDK), so both pi extensions failed to load withCannot find module 'zod/v4'.zodis now a direct dependency, and a new test fails the build if any runtime package is present only as a peer.
Verified end to end on Windows 11 / Firefox 160: fresh pi install from this tag → /pi-browser install → signed xpi installed in a clean profile → add-on connects → Pi session created from the sidebar → browser tools (open tab, page info, accessibility tree, tab list) work.
For everything new in 0.2, see the v0.2.0 notes.
v0.2.0
Warning
pi install of this tag fails to load the plugin (missing zod). Use v0.2.1 instead.
Install
Pi plugin (Node.js >= 22):
pi install git:github.com/matbeedotcom/pi-agent-firefox@v0.2.0then, in any Pi session, /pi-browser install to register the native host.
Firefox (153+): install pi-browser-firefox-0.2.0.xpi (signed by Mozilla) — open it in Firefox or drag it onto a Firefox window.
Thunderbird (128–155): Add-ons Manager → gear → Install Add-on From File… → pi-thunderbird-0.2.0.xpi.
pi-browser-firefox-0.2.0.zip is the same Firefox build unsigned (for about:debugging), and pi-agent-firefox-0.2.0-source.zip is the source of this tag.
What's new since v0.1.1
Thunderbird add-on (new)
- Pi Space chat and a docked Pi pane
- Mail tools: read and search (with continuation cursors), draft-first compose with attachments, organize (move, tag, flag), contacts
- Every mail tool asks for approval in the app that runs it
Firefox + Thunderbird together
- The first host to start acts as a shared broker, so the agent can use browser and mail tools from either app
- Works on Linux, macOS and now Windows (named pipes)
Browser control
- Diagnostic tools: evaluate, accessibility tree, console, network, element-at, navigate; frame targeting and shadow-DOM traversal
page.snapshot()returns a nested accessibility tree- Agent-driven tab lifecycle:
pi_open_tab,pi_bind_tab,pi_list_tabs, with load-readiness timeouts - JavaScript REPL tool that drives your live browser, with a per-task workspace, fs sandbox and downloads
- Per-tool permissions (Ask / Deny / Always approve) on a new Configuration page
Subagents and skills
- Browser-tools MCP server for Pi subagents; register it with
/pi-browser mcp install - Reactive browser skills runtime with
/pi-skillsand a submission gate
UI
- Streaming markdown rendering, session history replay, panes follow the active theme
Fixes
- When Firefox and Thunderbird start at the same moment, the second host no longer exits with "broker election failed"
- The losing host no longer holds the MCP endpoint
- Malformed permission responses are denied instead of throwing
- Installer and
/pi-browser doctorwork on Windows