Give OpenAI Codex CLI control of your browser

Codex gets eyes on the running app: real pages, real sessions, real verification.

Last updated: August 2026

In short

Vibe MCP adds browser tools to OpenAI Codex CLI over the Model Context Protocol. Add the @vibebrowser/mcp server to your Codex configuration and Codex can navigate, click, type, scroll, screenshot, and extract content from your real Chrome, including pages that require a login.

The problem

  • Codex CLI edits code and runs commands, but has no way to look at the app it just changed.
  • A throwaway headless browser cannot reach your staging dashboard, your admin panel, or anything gated behind SSO.
  • Building a bespoke browser harness per repo is wasted effort.

What Vibe MCP changes

  • One MCP entry and Codex can drive the Chrome you already use, with your logins intact.
  • Structured page snapshots keep Codex context small and its actions targeted.
  • Runs locally — the automation never leaves your machine.

Install in 3 steps

  1. 1Install the Vibe extension in Chrome

    Add Vibe AI Browser from the Chrome Web Store (Chrome, Brave, Edge, or any Chromium browser). This is the piece that lets an agent drive the browser you are already logged into — no second browser profile, no re-authentication.

  2. 2Add Vibe to ~/.codex/config.toml

    Codex keeps MCP servers in TOML, not JSON. Append the block below to ~/.codex/config.toml (or a project-scoped .codex/config.toml), then restart Codex. Prefer one command? Run codex mcp add vibe -- npx -y @vibebrowser/mcp and Codex writes the same entry for you. Verify with codex mcp list, or type /mcp inside the TUI.

    ~/.codex/config.tomltoml
    [mcp_servers.vibe]
    command = "npx"
    args = ["-y", "@vibebrowser/mcp"]
  3. 3Connect the extension and run your first command

    Click the Vibe icon, open Settings, and enable "MCP External Control" until the status reads Connected. Then ask your agent to open a page and take a snapshot — it should return the content of your real tab.

Your relay URL / extension UUID grants live control of your browser session. Treat it like a password: never commit it or paste it into a shared chat.

Tools OpenAI Codex CLI gets

ToolDescription
navigate_to_urlNavigate to any URL
go_back / go_forwardBrowser history navigation
clickClick elements on the page
type / fillEnter text into inputs
scrollScroll the page
take_screenshotCapture screenshots
get_page_contentExtract page text or HTML
get_tabs / create_new_tab / switch_to_tab / close_tabTab management
keyboard_shortcutPress keyboard combinations
web_searchSearch the web

How it compares

FeatureVibe MCPPlaywright MCPBrowserMCP
Multi-agent supportYesNoNo
Uses your browser profileYesNoNo
Logged-in sessionsYesNoNo
No separate browserYesNoNo
Local & privateYesYesPartial
Content-script basedYesNoNo

OpenAI Codex CLI browser control — FAQ

Does OpenAI Codex CLI support MCP servers?
Yes. Codex loads MCP servers from ~/.codex/config.toml, which is how Vibe adds browser tools. Add a [mcp_servers.vibe] table with command = "npx" and args = ["-y", "@vibebrowser/mcp"], then restart Codex. The config is TOML, not JSON.
Where is the Codex MCP config file?
Codex reads ~/.codex/config.toml by default. You can also scope servers to a single trusted project with .codex/config.toml in the repo root. The ChatGPT desktop app, Codex CLI, and the Codex IDE extension all share this same file.
Can Codex CLI control my real Chrome?
Yes. With the Vibe extension installed and MCP External Control enabled, Codex drives your existing Chrome profile — same tabs, same cookies, same logged-in sessions.
Can I run Codex CLI and Claude Code on the browser together?
Yes. Vibe is built for multi-agent use: a shared relay daemon multiplexes connections so multiple agents can control one browser without conflicts.
Does my browsing data go to a server?
No. The MCP server and relay run locally on your machine. Page content goes only to the agent you connected.

Works with your other agents too

The same MCP server powers every client. Multiple agents can drive the same browser at once.

Ready to connect OpenAI Codex CLI?

Connecting an agent to your logged-in browser has real privacy consequences. Read what is transmitted, logged and retained in the Privacy Policy.