Pi runs entirely inside this tab via @mariozechner/pi-agent-core. Model calls travel over a MessagePort to your router, so no API key ever enters this page.
@mariozechner/pi-agent-core
MessagePort
Inspect or customize the exact instructions sent at the start of every turn.
Bundled directly from workspace files into an opaque-origin <iframe sandbox="allow-scripts"> with default-src 'none'.
<iframe sandbox="allow-scripts">
default-src 'none'