Open Browser Agent: Open-Source Tool for AI Agent Browser Automation
The Open Browser Agent is an open-source, model-agnostic browser companion that replicates automation features from ChatGPT Desktop and Claude Desktop, enabling AI agent integration for tasks like debugging and workflow automation.
Overview and Purpose of Open Browser Agent
The Open Browser Agent is an open-source, model-agnostic browser companion designed to bring the automation capabilities of the ChatGPT Chrome Extension (Codex) and Claude in Chrome experience to any AI agent. It replicates the in-browser automation features found in ChatGPT Desktop and Claude Desktop, including a 1-turn persistent JavaScript REPL (js tool), an in-window background 'Agent' Tab Group, an interactive Chrome Side Panel, and native exporters for Google Workspace and YouTube. According to the project's documentation, these features are available 100% open-source and unlocked for any model or harness. The tool was inspired by the desire to enable users to debug frontends, test web apps, and automate tasks in their daily browser using any AI agent they prefer.
Integration with Existing AI Agents and Browsers
The Open Browser Agent (oba) integrates seamlessly with a wide range of existing AI agents and development environments, including OpenCode, Cursor, Cline, and Roo Code, among others. Unlike some agents that lack a built-in logged-in Chrome companion, oba provides the same browser capabilities as ChatGPT Desktop and Claude Desktop via the oba CLI, /oba skill, and MCP server. This allows users to work within their existing Chrome profiles and logins—such as those for Google, GitHub, Reddit, and AWS—without needing to switch contexts or re-authenticate. The tool supports real-world use cases like reading documentation, checking private dashboards, and automating workflows. Installation is straightforward, with an all-in-one setup script that automatically detects compatible agents, injects the oba MCP server and /oba skill, and starts the local bridge daemon in the background. This makes oba a versatile addition to any developer’s toolkit.
Technical Features and Capabilities
The Technical Features and Capabilities section highlights the motailab/open-browser-agent project’s approach to efficient browser interaction. The tool uses a three-tier system for model inspection: Tier 1 provides clean Markdown for reading (800–2k tokens), Tier 2 delivers a compact Accessibility Tree for actions like clicking or typing (e.g., [12] button "Submit"), and Tier 3 includes compressed JPEG-75 screenshots (95% smaller than PNG) only when visual layout verification is needed. Additionally, the project offers an HTTP Bridge API (Mode B) for executing commands via standard HTTP POST requests to http://127.0.0.1:8765/exec, with authentication handled via a token stored in ~/.open-browser-agent/bridge-token.txt. Another notable feature is the Closed Shadow DOM Overlay, injected into #open-agent-overlay-root in "closed" mode, ensuring it is immune to host page CSS rules, resets, or frameworks.
Security and Reliability Measures
The Open Browser Agent implements several security and reliability measures to ensure safe and seamless operation. For enterprise security, it utilizes an ephemeral bearer token stored at ~/.open-browser-agent/bridge-token.txt with chmod 0600 permissions, as noted in the project's documentation. To prevent server-side request forgery (SSRF) attacks, the tool is designed with protections that are detailed in the source materials.
When multiple instances attempt to attach to the same tab, the agent handles collisions by detaching existing sessions cleanly, as stated in the project's logs. Additionally, if port 8765 is occupied, the bridge server automatically selects the next available port from the range 8766–8769 or 18765, and stores the active port in ~/.open-browser-agent/bridge-port.txt. Both the oba CLI and browser extension auto-discover the new port immediately, ensuring uninterrupted functionality.
Testing and Deployment
The Testing and Deployment process for the open-browser-agent involves a multi-platform GitHub Actions CI pipeline that runs tests across Node.js 18.x, 20.x, and 22.x on Ubuntu and macOS runners, as described in github.com. This pipeline also automatically packages and publishes the open-browser-agent-extension.zip to GitHub Releases. To verify the connection status, users can run oba status or npm run status, which outputs details such as the service name, extension connection status, port, and token, as outlined in github.com. For navigation, a curl command can be used to send a NAVIGATE command to the agent bridge, as detailed in github.com.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.