Cockroach Browser constrains browser access for AI agents
October 23, 2026

Cockroach Browser combines real browser automation with fixed origins, action budgets, and auditable evidence. The open tool targets teams that do not want to hand an agent unrestricted access to the entire browser.
What this is about
Cockroach Browser is a locally operated browser runtime for AI agents and conventional automation. The project addresses a practical problem: an agent should be able to use websites without automatically gaining access to every browser profile, all cookies, or the rest of the computer. It combines Chromium, Firefox, and WebKit with explicitly allowed origins, actions, time limits, and evidence of executed steps.
The project appeared on GitHub in July 2026. As of October 23, 2026, version 0.4.1 is the current stable release in the npm registry. The main branch already describes a 0.5.0 rc.1 prerelease. Anyone evaluating it for production should therefore pin the stable package version rather than follow the main branch without verification.
What Cockroach Browser actually does
Cockroach Browser can be installed as a Node package and either embedded in an application or started as a local authenticated service. A session receives a purpose, a starting address, and a policy. The operator can define allowed web origins, permitted actions, maximum duration, number of tabs, and the maximum size of stored evidence.
The runtime can load pages, create structured snapshots, operate forms, transfer files, capture screenshots and PDFs, and document network activity. It also provides an MCP server for agents. More powerful Playwright and Puppeteer paths remain separate because those complete interfaces do not automatically inherit the tighter boundaries of the agent runtime.
For logins, consent dialogs, or CAPTCHAs, the runtime is designed to pause and involve a human or an explicitly configured resolver. The project does not claim to include a built in bypass mechanism. By default, the local service binds to the loopback address and uses a bearer token.
Why it matters
Browser agents work at a particularly sensitive boundary. Browsers often hold active accounts, personal data, and permissions for actions with external consequences. A broad instruction such as “check this invoice” should not silently turn into access to unrelated tabs or stored sessions.
Cockroach Browser makes granted authority visible as configuration. That is useful for developers testing browser agents, automating internal workflows, or collecting traceable results for quality assurance. The AGPL 3.0 license allows inspection and self hosting, but modified versions offered over a network generally require the corresponding source code to be made available.
The repository lists active workflows for continuous integration, CodeQL, and dependency review. That does not prove security. It is nevertheless a stronger maintenance signal than a product page with no inspectable code or published package.
In plain language
Imagine that you do not give a contractor a master key to the whole house. You open only the room where work is needed, agree on no more than ten steps, and require a photo after every important action. Cockroach Browser tries to apply the same principle to browser agents: access only to the agreed area, a finite budget, and evidence for later review.
The analogy has an important limit. If you also give the agent the complete Playwright or Puppeteer interface, you are effectively handing over a larger key ring. Operators must secure those paths separately.
A practical example
A quality team wants to check ten public product pages every morning. For each page, an agent should read the title, price, and availability while saving a screenshot. The session allows only the ten specified origins, read only actions, no more than 80 steps, two tabs, and five minutes of runtime.
The agent can open those pages and store results with evidence. A redirect to an unrelated domain is rejected. If a login dialog or access challenge appears, the workflow pauses instead of trying to bypass it on its own. This does not guarantee correct extraction, but it creates a more tightly bounded and auditable attempt.
A sensible first test uses a public test page without an account. Install stable version 0.4.1 in a separate project, allow exactly one origin, and initially permit only snapshots, extraction, and screenshots. Then verify that blocked origins, extra tabs, and exceeded action budgets are actually rejected.
Scope and limits
- Stable npm version 0.4.1 and the 0.5.0 rc.1 prerelease described on the main branch are not identical. Features from the main branch must not be assumed without checking the installed version.
- A small, young project with nine GitHub stars on October 23, 2026 has much less independent operational experience than Playwright itself. Production use requires independent tests, pinned versions, and package provenance checks.
- Policies do not prevent bad decisions inside the allowed area. An agent can still click the wrong control or extract incorrect data on an approved website.
- The complete Playwright and Puppeteer exports are intentionally less constrained. Anyone enabling them must also restrict network access, credentials, and operating system permissions.
- Screenshots, network logs, and stored sessions can contain sensitive data. Retention, access control, and deletion must fit the operator's privacy policy.
SEO and GEO keywords
Cockroach Browser, browser automation, AI agents, local browser, MCP server, Playwright, Puppeteer, agent security, action budgets, auditable evidence, AGPL 3.0, self hosting
💡 In plain English
Cockroach Browser gives AI agents a constrained browser instead of blanket access. Operators define which sites and actions are allowed, how long a session may run, and what evidence is stored.
Key Takeaways
- →Cockroach Browser runs locally and supports Chromium, Firefox, and WebKit.
- →Session policies constrain origins, actions, runtime, tabs, and evidence size.
- →An MCP server connects agents to the bounded runtime.
- →The complete Playwright and Puppeteer interfaces require additional safeguards.
- →Version 0.4.1 is the stable release, while the main branch describes 0.5.0 rc.1 as a prerelease.
- →The project uses the AGPL 3.0 license and is still young.
FAQ
Is Cockroach Browser a standalone web browser?
It is primarily a runtime and interface for automated browser sessions. It launches Chromium, Firefox, or WebKit and applies policies around those sessions.
Can the tool read existing browser accounts?
The bounded runtime is designed not to scan unrelated profiles automatically. An operator can explicitly import stored state, but then becomes responsible for protecting it.
Is Cockroach Browser free to use?
The source code is available under AGPL 3.0. Teams offering modified versions over a network should carefully review the license obligations.
Which version should I test?
As of October 23, 2026, 0.4.1 is the stable npm version. The 0.5.0 rc.1 version mentioned on the main branch is a prerelease and should be evaluated separately.