OpenCode Browse Lets AI Agents Use Your Browser
Use OpenCode Browse when Claude Code, OpenCode or another compatible MCP client needs the page already open in your browser. For a local preview in Codex, the built-in browser may already do the job. For a signed-in Chrome tab and a Codex-only task, its Chrome connection may already cover it.
Video coming soon.
Connect your client
On the computer running your coding agent, run npx @opencode/browse install with Node.js installed. In the picker use Space to select the clients you use, then Return to confirm. Follow the installer into the Chrome Web Store and add the extension to the profile that has your preview. Finish pairing with the local program.
Lend one tab
Open your test shop, then click the Browse extension on the checkout tab. Look for the ON badge. Browse can also open tabs of its own in a background group.
Give the agent a small job
Try: “Read the basket total, advance to the delivery step and read the updated total. Tell me the difference and stop before placing an order.” Check the two amounts against the delivery charge.
Resume in the correct tab
When Browse hands the page back, complete the manual step and click Continue on the original tab. We ran the handoff code locally with two simulated tabs. Tab 7 was waiting; the correct request sent from tab 8 returned false and left one request waiting. The same request from tab 7 cleared it.
Check before clicking again
With a pending handoff the toolbar button completes it. During an active script it stops the script. On an idle tab it toggles lending.
The takeaway
With a pending handoff the toolbar button completes it. During an active script it stops the script. On an idle tab it toggles lending.
About this article and its sources
The checkout is an example. We tested the handoff code locally using two simulated tabs.
