Browser extension (Chrome / Edge / Firefox)
About 3 min
Browser extension (Chrome / Edge / Firefox)
❝ Someone else's webpage is still my debugging scene. ❞
The aiti-devtools browser extension (MV3): inject the in-page AI debugging assistant into any webpage — with zero changes to the target app (FAB 💬 AI + Inspector, element picking, AI window); together with the aiti-devtools bridge (local standalone bridge or pi-web), pi / claude / opencode agents can operate any page.
Capabilities
- Three browsers: Chrome / Edge (111+) / Firefox (128+, incl. full Firefox for Android ≥128 support)
- Injection mechanism: a
world:"MAIN"content script — the launcher source is inlined into content/main.js at build time and executed at file top level, unconstrained by page CSP; configuration lives in the isolated world (storage.sync → localStorage shared across worlds → read synchronously in the MAIN world at document_idle) - Double-injection guard: the
__dbgLauncherInstalledsentinel — pages that already run a launcher (like pi-web) are not injected twice - Options page: AI target with three kinds (pi-web workbench / compatible agent host / cockpit fallback) + target address + one-click local pi-web probe (HEAD of the launcher asset on ports 30141/30142, auto-prefill; selecting pi-web also prefills the same-origin bridge address); site rules (default off + allowlist/deny regexes, deny wins); advanced (bridge address /
AITI_BRIDGE_URLone-click copy); refresh the page after saving to take effect
Install
From the stores (recommended)
- Chrome: one-click install from Chrome Web Store · aiti-devtools
- Edge: one-click install from Edge Add-ons · aiti devtools
- Firefox: one-click install from AMO · aiti-devtools — release Firefox / Firefox for Android (≥128) install signature-free
Self-built
cd browser-ext
npm run build # → dist/{chrome,edge,firefox}
npm run package # → dist/*.zip + dist/aiti-devtools-firefox.xpi- Chrome:
chrome://extensions→ developer mode → load unpacked →dist/chrome - Edge:
edge://extensions→ developer mode → load unpacked →dist/edge - Firefox (temporary load):
about:debugging#/runtime/this-firefox→ load temporary add-on →dist/firefox/manifest.json(gone on restart) - Firefox (permanent xpi): on ESR / DevEdition / Nightly set
xpinstall.signatures.required=falseand install from file for a permanent install ofdist/aiti-devtools-firefox.xpi(stable gecko idaiti-devtools@aiti.aiis pinned; world:MAIN injection needs ≥128)
Usage
- After installing, the FAB (💬 AI + Inspector) appears on any webpage
- Click 💬 to open the AI window (default = the bridge's same-origin cockpit console)
- Connect the agent side (pick one):
- pi: install aiti-devtools-pi, same bridge
- stdio shim: env
AITI_BRIDGE_URL(one-click copy on the options page) - MCP:
{ type:"http", url:"<bridgeUrl>/mcp/mcp" }
Prerequisite: the bridge is running (
systemctl start aiti-bridgeornode >dev-repo/bridge/bin/aiti-bridge.mjs).
Default-off and site rules
- Default off: popup "⚡ Enable on this page (once)" (runtime-only message, gone on navigation, wins over deny rules) + "★ Always enable this site" allowlist / deny regexes (deny wins)
- AI window defaults to pi-web: options-page one-click probe of local 30141/30142 with auto-prefill; "compatible agent host / cockpit fallback" as the other two kinds
Positioning
Fills the "any webpage, no carrier" gap: project plugins only cover apps that adopt them, the pi-web extension only covers pi-web, port injection only covers proxied ports — the browser extension pushes coverage to all web pages.