Codex for Firefox
Connects AI agents to the user's real Firefox browser — its logins and tabs — so they can search pages, navigate, fill forms, drive the keyboard, take screenshots, and replay saved operations via local action memory. Automation runs over Firefox's WebDriver BiDi Remote Agent on loopback, and agent-opened tabs are collected in a dedicated reviewable tab group.
Same browser-automation capabilities as Firefox for LibreWolf (when its Remote Agent is exposed): the native messaging host is registered for LibreWolf and page control runs through its WebDriver BiDi Remote Agent bound to loopback.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Other languages: Français · Español · Português (Brasil) · Русский · 中文(简体)
Connect AI coding agents — Codex, OpenCode, Claude Code, Qoder, WorkBuddy, ZCode, or any MCP client — to your real Firefox: your logins, your tabs. Agents can search pages, navigate, fill forms, use the keyboard, take screenshots, and reuse repeated operations with local action memory.
Not affiliated with, endorsed by, or produced by OpenAI, Mozilla, or the OpenCode project. "Codex" and "Firefox" are used solely to indicate compatibility.
How it works
Three local components, no cloud required:
Firefox extension (this repository) — profiles, session lifecycle, upload confirmations.
Native messaging host — a local process the extension talks to.
MCP server / plugins — exposes four compact tools to your agent:
browser_run,browser_observe,browser_session,browser_finalize.
On Firefox (and LibreWolf), page automation runs through the browser's WebDriver BiDi Remote Agent, bound to loopback. Tabs an agent opens stay in a dedicated tab group so you can review what happened. Chromium browsers are also supported when the extension is loaded with explicit IDs, but this fork ships Firefox builds only.
Related MCP server: Browser Control MCP
Supported clients
Besides Codex, OpenCode, and Claude Code, this fork natively supports Qoder, WorkBuddy, and ZCode — all via standard MCP (registering an MCP server that exposes the four browser_run tools and so on), isomorphic to the Claude family:
Client | Config file | Integration |
Codex |
| TOML |
OpenCode |
|
|
Claude Code / Desktop |
|
|
Qoder |
|
|
WorkBuddy |
|
|
ZCode |
|
|
setup --all wires up detected clients; if a client's CLI isn't installed or its config file doesn't exist yet (e.g. first use of Qoder), specify them explicitly with --targets:
bun src/cli/index.ts setup --targets qoder,workbuddy,zcodeHarness icons are original neutral placeholder graphics used solely to indicate compatibility; trademarks belong to their respective owners, see NOTICE.
UI features
The popup has been fully redesigned, ready out of the box:
Light / dark dual theme: light by default, automatically switches to dark following the system; all colors are semantic tokens.
Interface language selector: 中文(简体), English, Français, Español, Português (Brasil), Русский — auto-follows the browser language by default; switch and persist under "Language" in the popup settings; takes effect across the popup, welcome page, and upload confirmation page.
Session management: browser profile selection, session lifecycle, and upload confirmations on one screen; tabs opened by agents are collected in a dedicated tab group you can review or close at any time.
Action memory: save repeated operations as local actions and replay them with one click.
Settings menu: grouped card layout covering interface language, refresh, connection diagnostics, storage management, and more.
Requirements
Firefox 142+ (or LibreWolf exposing the Remote Agent)
Node.js 24+ or Bun 1.1+ for the native host and CLI
Install
npx -y codex-for-firefox@latest setup --allThis registers the com.codex.browser.plugin native-messaging host for Firefox and LibreWolf, then wires up every agent harness it detects. Use --targets to pick explicitly, or --dry-run --json to preview.
Then load the Firefox build and restart your coding agent:
dist-extension/codex-for-firefox-*-firefox.xpifrom a checkout, orabout:debugging→ Load Temporary Add-on →dist/extension-firefox/manifest.json
Pick the browser profile shown in the extension panel. Project home: isot.si.
Install from a checkout
git clone https://github.com/showhoo/codex-for-firefox
cd codex-for-firefox
bun install --frozen-lockfile --ignore-scripts
bun run zip:extension:firefox # builds the Firefox extension + zip
bun run install:native-host # registers com.codex.browser.plugin
bun src/cli/index.ts setup --all # wires up detected agent harnessesLoad the built extension in Firefox (about:debugging → Load Temporary Add-on, or a Developer Edition install), then restart your coding agent and pick the browser profile shown in the extension panel.
Firefox agent setup
Firefox must expose its Remote Agent on loopback. Use a dedicated automation profile:
bun src/cli/index.ts firefox configure --profile PROFILE_ID --port 9223
"C:\Program Files\Mozilla Firefox\firefox.exe" --remote-debugging-port 9223 -P AUTOMATION_PROFILE
bun src/cli/index.ts firefox status --profile PROFILE_IDKeep the debugging port bound to loopback; other local programs can reach an enabled Remote Agent, so a dedicated profile is recommended. To turn it off, fully exit the browser and relaunch without the flag. Details: docs/firefox.md, docs/codex.md.
Security and privacy
Local-first by design: no telemetry, no accounts, no phoning home. Cloud decision assistance (TypeSafe/OpenRouter, your own API key) is off by default; screenshot sharing needs a separate opt-in. Page content an agent reads goes to that agent's model provider — that is what a browser-automation bridge does. Full policy: docs/PRIVACY.md.
Development
bun install --frozen-lockfile --ignore-scripts
bun run build:extension:firefox # WXT build (-b firefox --mv3)
bun run check:firefox # manifest/zip safety gate
node scripts/generate-icons.mjs --design E --out extension-src/public/images # regenerate icons (current design: E "prism-spark")
bun test # full suiteBoth browser targets share the WXT/React source in extension-src/; the dual-theme, six-language UI lives in extension-src/entrypoints/popup/ (WXT/React) and extension-src/i18n.ts. Architecture notes: docs/.
Bugs and questions: Issues.
License and attribution
Copyright (c) 2026 ISOT.SI (Codex for Firefox). This fork retains and respects the upstream copyright of Quindart's opencode-chromium (MIT). Harness icons in extension-src/public/images/harness/ identify compatible third-party products and remain the trademarks of their owners (see their NOTICE).
Sponsor
Codex for Firefox is built and maintained by ISOT.SI.
This project is sponsored by chuangwit.com (河南创为铁路器材有限公司 — Henan Chuangwei Railway Equipment Co., Ltd.). For railway overhead contact system equipment, section insulators, switches, and other products or services, please visit the official website.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Run reusable browser automations from your AI assistant: scrape sites, extract data, fill forms.
Lets your AI assistant use websites for you. It asks before it acts and never sees your password.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables an AI agent to interact with the user's current Firefox or Chromium browser under per-site policies, allowing it to list tabs, read pages, take screenshots, fill fields, and click with user confirmation.AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to operate a real, logged-in Firefox session through an extension, including tab and history management, page reading, screenshots, and clicking, typing, or scrolling on domains the user approves.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to control the user's real Chrome or Firefox tabs, with their existing logins, to read pages, click, type, fill forms, take screenshots, inspect network traffic and run JavaScript. It works through a paired browser extension over a local WebSocket connection, so automation happens in the browser the user is actually looking at, including shadow DOM, cross-origin iframes, dialogs and single-page apps.MIT
- AlicenseAqualityBmaintenanceLet AI agents use the Firefox, Zen, or LibreWolf browser you already have open, with your logins, cookies, and extensions intact. No Playwright, Chromium, or WebDriver. Agents work in background tabs while you keep browsing: read pages, click, fill forms, take screenshots, and capture network traffic. A WebExtension plus a local bridge lets several agents share one browser.647MIT