codex-browser-bridge
MCP server and CLI for reusing the installed Codex Browser Use (node_repl) and Computer Use (cua_repl) runtimes from Claude Code, Antigravity, Cursor, OpenClaw, Hermes Agent, and shell scripts.

Website · 中文文档 · Native Setup · Upgrading to 3.0.x
Choose an entry
| Entry | Runtime | Use it for |
|---|
--surface native-browser (default) | Codex node_repl | The installed Codex Browser/Chrome plugin JavaScript API (agent.browsers, tab.playwright, tab.dom_cua). |
--surface computer | Codex cua_repl | The installed Computer Use cua API for desktop windows and unified browser targets. |
Bare invocations without --surface use native-browser. See Native setup for launch discovery, host environment policy, and elicitation approvals. Browser Use and Computer Use have separate MCP registrations and worker state.
Quick Start
Plugins & Skills
# Claude Code plugin
claude plugin install codex-browser --marketplace DeliciousBuding/codex-browser-bridge
# Google Antigravity (agy CLI — imports .claude-plugin/plugin.json directly)
agy plugin install https://github.com/DeliciousBuding/codex-browser-bridge
# Agent Skills (skills.sh)
npx skills add DeliciousBuding/codex-browser-bridge
Cursor native plugin metadata is provided in .cursor-plugin/plugin.json and Official MCP Registry metadata in server.json. The plugin registers both native MCP services (codex-browser and codex-computer). Install and configure the native Codex runtimes first; the plugin does not bundle them. If only one runtime is installed on your machine, the other entry failing to start is expected—use a single-entry manual configuration if you only want one.
Manual MCP configuration
npm i -g @delicious233/codex-browser-bridge # or download a release binary
{
"mcpServers": {
"codex-browser": {
"command": "codex-browser-bridge",
"args": ["--surface", "native-browser", "--mode", "mcp"]
},
"codex-computer": {
"command": "codex-browser-bridge",
"args": ["--surface", "computer", "--mode", "mcp"]
}
}
}
Use only the entry you need if a client needs one service or if only one runtime is installed. Client templates are in examples/.
CLI
codex-browser-bridge --surface native-browser --mode doctor
codex-browser-bridge --surface computer --mode doctor
codex-browser-bridge --surface computer call js '{"code":"await cua.listWindows();"}'
Use batch for several native JS calls that share one worker. tools, call, and batch do not combine with --mode; --image-dir applies to call and batch only. Add --omit-inline-images with --image-dir to keep the saved files and bridge_artifacts while dropping the base64 data from stdout.
Requires: the configured native runtime for each entry · Node.js 18+ only for the npm/npx path.
Scope
The binary is a thin, stateless Rust stdio relay. It discovers the selected launch row, spawns one owned worker, forwards MCP frames in both directions, applies the launch row's tool filters and environment policy, and tears the worker tree down on exit.
It does not implement CDP, DOM snapshots, locators, observation cursors, tool profiles, or browser sessions. Those belong to the installed runtime, and their behavior, permissions, and catalog are what clients see. The only transport path is stdio to that runtime.
Upgrading