BrowserCode: Controlling Chrome with JS Coding
Key point
BrowserCode is an open-source browser agent that controls actual Chrome by writing JavaScript code instead of relying on predefined APIs.
Details
BrowserCode, released by Browser Use, is a terminal-based open-source tool that moves away from the approach of existing browser agents relying on limited tool lists (click, input, etc.), allowing agents to directly write and execute JavaScript code to manipulate actual Chrome.
This tool was built by forking OpenCode and combining it with a TypeScript port of Browser Harness, communicating directly with the Chrome DevTools Protocol (CDP) through the core primitive browser_execute. It supports session persistence, enabling continuous navigation in complex web environments, and written scripts are saved as files for reuse.
In its own benchmark, BU Bench, Claude Opus 4.8 showed the highest performance at 89.5%, while among open-source models, Kimi K3 (86.0%) and GLM 5.2 (84.0%) ranked at the top. Notably, the GPT-5.6-luna model showed significant performance differences depending on the Reasoning Effort settings and was evaluated as favorable in terms of cost-efficiency.
Installation is possible with a single curl command, and it can be run interactively (TUI) or non-interactively via the bcode command. Currently, browsers can be connected in three ways: connecting to browser tabs, creating new profiles, and running remote browsers. Remote execution is also supported via API keys through the cloud service (Browser Use Cloud).
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.