BrowserCode is an AI agent that can control a web browser on your behalf by writing and running JavaScript code. Instead of clicking and navigating with a simulated mouse and keyboard (which is how most browser automation works), it takes a more powerful approach: it writes JavaScript programs that talk directly to Chrome using the Chrome DevTools Protocol (CDP), a low-level interface that gives deep programmatic control over the browser. You install it with a single command in your terminal. Once running, you can give it natural-language instructions like "find me all flight details from New York to San Francisco tomorrow on Google Flights" or "test this local website and fix any bugs you find, then open a pull request." The agent figures out how to accomplish those tasks by writing browser automation scripts, which it saves for reuse in future sessions. The agent can connect to your existing browser tabs, create a new separate browser profile to work in the background, or spin up a cloud-hosted browser with stealth capabilities and proxy support. It supports multiple AI model providers, you supply your own API key. The tool is built on top of two other open-source projects: OpenCode (a terminal-based AI coding agent) and Browser Harness (a browser automation library from the same team). The key addition is a single core capability called browser_execute, which runs JavaScript in the context of a live browser session and returns the results, screenshots, logs, and values, back to the AI model. Anonymous usage data is collected by default but can be disabled by setting an environment variable.
← browser-use on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.