ThinkRun + OpenAI Codex
Connect OpenAI Codex to Chrome with ThinkRun MCP
Open your app in Chrome, then tell Codex which tab to inspect. ThinkRun gives a local Codex session access to that browser so you can point to the screen you are debugging and check it again after a change.
Set up the Codex browser MCP
You’ll need Chrome, Node.js 18 or later, and Codex running on the same computer. Basic local browsing works without a ThinkRun account. Sign in to ThinkRun when you want to save browser evidence to your account.
1. Connect Chrome
Install the ThinkRun Chrome extension. Run the native host installer, then reload Chrome.
npx -y @thinkrun/mcp install-native-host2. Register the server
Run this in your terminal, then start a new Codex session. The command registers a local MCP server in your user configuration.
codex mcp add thinkrun-browser -- npx -y @thinkrun/mcp --mode local3. Verify the connection
Check the MCP entry, then ask the assistant to list your Chrome tabs and attach to the one you select. If tabs don’t appear, run the ThinkRun connection check.
codex mcp get thinkrun-browsernpx -y @thinkrun/mcp doctor
What you can do with OpenAI Codex and ThinkRun
Show Codex the screen behind a GitHub issue
Bring the issue into your coding session and identify the tab that shows the behavior described in the report.
Read GitHub issue #123. Use ThinkRun to find my staging Activity tab. Compare the visible page with what the issue says should be there, and tell me what evidence is still missing.
Check a UI fix in your local build
After running the updated app locally, ask Codex to compare the visible result with the expected behavior.
Use ThinkRun to inspect the local Activity tab. Verify whether an entry appears for the completed test upload. Report what you observed and any checks you could not complete.
Review a staging page with your existing sign-in
Sign in to your test account in Chrome, then give Codex the exact tab to inspect.
Find my signed-in staging tab with ThinkRun. Read the headings and controls on the open settings screen and summarize anything that differs from the acceptance criteria. Leave the settings as they are.
Frequently asked questions
- Can Codex work with an existing Chrome tab?
- Yes. With local mode, the Chrome extension, and native host running, ask Codex to list your tabs and attach to the one you choose. You can sign in to the site yourself before attaching.
- Do I need a ThinkRun account or API key?
- Basic local browser access works without a ThinkRun account or API key. Sign in to ThinkRun if you want to save browser evidence to your account.
- Can I use this setup in Codex cloud?
- These commands run the MCP process on the computer where Chrome and the ThinkRun native host are installed. Use a local Codex session on that computer.
- How do I remove the MCP server from Codex?
- Run codex mcp remove thinkrun-browser, then start a new Codex session.