Egor Urvanov

Claude in ChromeHow Claude Code tests your site in the browser — debugging and forms under your login

Claude Code tests a site in the browser through the Claude in Chrome extension: started with claude --chrome, the agent opens your site in a tab, walks a scenario, fills forms and reads the console under your login, then fixes the broken code. It needs a paid Claude plan. The extension itself is covered in the glossary. Below: connecting, what the agent can do and which permissions to give.

What Claude in Chrome is

A Chrome extension connects Claude Code to the browser. The agent opens new tabs and works in a visible window.

Claude CodeChromeClaude Codeextensionyour browser and your login● model, people, systems, data  ● agent and harness

The picture shows three participants from left to right: Claude Code in the terminal, the extension and your browser. The agent gives the extension commands (open a tab, click, read the page), and the extension carries them out in the browser where you are already signed in to your services. So the agent does not need to type passwords: your session is already open. The work happens in a visible window, and you can follow the steps.

The tags show which browsers the extension works with. Chrome and Edge are officially supported. Brave, Arc, Vivaldi and Opera are built on the same Chromium engine: Claude Code finds the extension in them and connects. The last tag, “WSL: no”, means this connection does not work in the Windows Subsystem for Linux (WSL).

ChromeEdgeBraveArcVivaldiOperaWSL: no
Takeaway
In this exampleThe agent in the terminal drives Chrome tabs through the extension and uses your logins.
In generalActions are visible in the window in real time. On a login page or CAPTCHA the agent stops and waits for you. In Claude Code the extension appears as the claude-in-chrome MCP server: /mcp lists its tools.
What to doCheck the requirements: extension version 1.0.36 or later, Claude Code, a Pro, Max, Ultra, Team or Enterprise plan, and sign-in with /login.

How to connect

Tell the agent

Install Claude in Chrome and connect it to Claude Code.

If the extension is missing, Claude Code offers to install it: you agree and sign in through the browser. If the agent asks you to do it.

How to do it by hand

Connecting takes three steps. Step 1: install the Claude extension in your Chrome from the extension store, once. Step 2: in the terminal where Claude Code runs, start claude --chrome, and the agent links to the browser. Step 3: type /chrome and look at the status: if it says “Enabled”, the link works.

ChromeextensionclaudeChrometerminalclaudeEnabled1Install the extension2Run claude --chrome3Check /chromefrom the Chrome Web Store, oncein the terminal where the agent runsStatus: Enabled means it is linked● model, people, systems, data  ● agent and harness
claude --chrome
/chrome   # status, permissions, reconnect

Extension in the Chrome Web Store. To skip the flag, open /chrome and turn on “Enabled by default”. The browser tools are then always in context, and token use grows. In VS Code, type @browser in the prompt box to connect the browser; “Enabled by default” is shared by the terminal and VS Code.

If it does not connect
Extension is onon the chrome://extensions page
Chrome is runningand Claude Code is up to date
Reconnectthe /chrome command, item Reconnect extension
First timerestart Chrome after installing
Takeaway
In this exampleThe agent installs the extension itself and connects it to Claude Code. You only agree and sign in through the browser.
In generalConnecting takes minutes: the extension comes from the Chrome Web Store, and Claude Code does the rest.
What to doTell the agent to install the extension and make sure /chrome shows “Status: Enabled” and “Extension: Installed”.

What the agent can do in the browser

In the center of the picture is the browser, and around it four kinds of work the agent does inside it.

Chromeconsoleconsole and DOMdebugging, design checkforms and testsscenarios, file uploadsdocuments under your loginDocs, Gmail, Notiondata and GIFsextraction, step recording● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

First: reading the console and the page, which is how the cause of an error is found. Second: running scenarios and filling forms, which checks that the path works. Third: working with documents under your login, that is with what cannot be opened without signing in. Fourth: extracting data and recording a GIF so that a trace is left for checking. You do not need to write code for every small thing: you state the task in words and the agent finds buttons and fields itself.

Takeaway
In this exampleOne connection covers debugging, tests, forms, documents and data extraction.
In generalThe agent reads the console and DOM, runs scenarios, fills forms, uploads files (up to 10 MB in total) and records GIFs.
What to doPick one repetitive browser task and hand it to the agent.

Example: a bug on the staging environment

Ticket PAY-142 from the article on QA with an agent: the agent walks the path itself and brings evidence.

Tell the agent

Open the staging environment, add an item to the cart, apply the promo code and pay with a test card. If the payment fails, look at the console and record a GIF of the path.

Next is the example from the QA article: ticket PAY-142 and the agent’s path to a finished result.

PAY-142standconsoleticketpath on the standconsole errorreport and GIF● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

The picture shows the path from ticket to result. The ticket reaches the agent, the agent walks through cart, promo code and payment in the browser, finds the error in the console and records a GIF. QA receives not a retelling but a verifiable trace: console text and a recording of movement across the page. If the recording and console do not match the report, it shows at once.

Takeaway
In this exampleThe agent walks the path, finds the console error and records a GIF for the ticket.
In generalThe window is visible, so QA follows the steps and can stop the agent. Console text and the GIF leave a checkable trail.
What to doAsk for a GIF and a console excerpt with every result.

Permissions and risks

The agent works inside your browser, so everything you are signed in to is available to it. The first line of defence in the picture is the list of allowed sites and the permission request on new ones.

allow?site Asite Bsite Cyou decideallowedblocked● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

On the left of the picture you decide: the agent asks “allow?”. In the center are sites A and B, which you allowed and where the agent works. On the right is site C, closed to the agent. An action on a new site starts with your consent. The rules, one by one: what the agent sees, where it stops and what to look at before sending a recording.

SitesThe extension settings control which sites the agent can browse, click and type on.
PromptThe “Claude in Chrome wants to” dialog allows an action or the whole site for the session.
Your loginsThe agent can reach everything you are signed into in this browser.
Login and CAPTCHAThe agent pauses and waits for you.
GIFThe recording includes everything visible, account details too: review it before sharing.
Dialogsalert, confirm and prompt dialogs block commands: close them by hand and ask the agent to continue.

Each of these rules is in the Claude Code documentation. The agent stops at a login and a CAPTCHA. The permission request starts with “Claude in Chrome wants to”. A GIF recording captures everything visible, including account details. alert, confirm and prompt dialogs block commands. The list of sites is set in the extension settings.

Page text can be aimed at the agent. This risk is covered in a separate article.

Takeaway
In this exampleAllowed sites are open to the agent, the rest stay closed, and actions on a new site need your consent.
In generalThe agent works with your logins, so site permissions are the first line of defence.
What to doOpen the extension settings and keep only the sites the task needs.

The price of flexibility: slower than a script and with a risk of error

An agent in the browser works differently from a script or a written program. A script runs the same steps fast and identically. At every step the agent reads the page, thinks and decides what to do next, so it is slower and spends tokens. It can err: click the wrong button or retell what is not on the page, that is hallucinate. In return it copes with a task that cannot be described in code in advance: the page changed, a button moved, the task is stated in words. This is the price of flexibility, and it is better to pay it knowingly.

ScriptAgent in the browser
Speedfast, the same stepsslower: reads and thinks at every step
Repeatabilitythe same result every timethe answer can differ from run to run
If the page changedbreaks until it is fixedadapts, but may err or invent
Preparationcode must be written and maintaineddescribing the task in words is enough
Where it fitsmass regular workone-off work, reconnaissance, unusual pages

There is also the author’s observation. Services with a reputation for being strict about automation, LinkedIn for example, usually treat an agent in a real browser more calmly than scripts and scrapers: the actions come from your window, under your login, at the pace of a living person. This gives no guarantee. The rules of such services usually forbid automated actions, and the risk of an account ban stays with you. So give the agent what you would do by hand, in small portions and with a check of the result.

Speed, agent errors and how services react are described from the author’s observations: the Claude Code documentation does not cover them.

Takeaway
In this exampleThe agent is slower than a script and may err, but it copes where a script would have to be rewritten.
In generalSpeed and repeatability are traded for flexibility. A verifiable trace (console, GIF, result text) brings control over errors back.
What to doFor one-off and unusual work use the agent, for mass and regular work write a script. Compare the agent’s result with what you see yourself.

When you need your own script

Claude in Chrome suits one-off work, but production tasks often need a script of your own.

PuppeteerA library that drives the browser from code: open a page, click, pull out what you need. It runs without an agent at every step.
Whole pageClaude Code takes the whole page: text, elements, screenshots. That is convenient for a one-off task.
Tokens and speedThe bigger the page, the more tokens each step costs: slower and more expensive.
Your own scriptA custom solution takes only the part of a site or page you need: a table, a form, one block. The agent gets a short result.
What to chooseOne-off tasks and exploration: Claude in Chrome. Regular, high-volume work with a token budget: your own script the agent calls as a tool.

The script can be connected to the agent through MCP or a skill: the agent asks for the piece of the page it needs instead of opening all of it.

Takeaway
In this exampleThe agent reads the whole page and spends tokens and time on it.
In generalFor production, tokens and speed matter, so only the needed parts of sites and pages are taken.
What to doLeave one-off work to Claude in Chrome. Move repeating work into a Puppeteer script and give it to the agent.

Where to start

The three steps repeat the start of the article: extension, launch, check.

claude --chromeChrome1install the extension2claude --chrome3check /chrome● agent and harness

For the first launch take a local or staging environment: if the agent errs, nothing is harmed. First ask it only to read (open a page and retell it), then allow actions. That way you notice the agent’s mistakes on a safe task.

Takeaway
In this exampleThree steps: extension, launch, check.
In generalStart with a local stand: a mistake there breaks nothing.
What to doToday, tell the agent to install the extension and check the status with /chrome.

Frequently asked questions

How do you connect Claude in Chrome?

Install the extension from the Chrome Web Store, and Claude Code does the rest. It takes minutes.

What can the agent do in the browser?

It reads the console and page markup, walks through scenarios, fills in forms, uploads files up to 10 MB in total and records GIFs.

Is it safe to give an agent the browser?

Actions are visible in the window in real time, and on a sign-in page or captcha the agent stops and waits for you. The extension works under your login, so keep only the sites you need in its settings and review a GIF recording before sharing it: account details are visible in it.

When is a script better?

An agent in the browser is slower than a script and can make mistakes. For repeated checks where speed and precision matter, write a script.
© 2026 Egor Urvanov