Kipt

Claude Code with Chrome: set up browser automation from the terminal

Claude Code Chrome guide: connect the Claude in Chrome extension with claude --chrome, test local web apps, read console errors, set permissions and fix issues.

By the Kipt team · Updated 24 October 2026

Claude Code works with Chrome through the Claude in Chrome browser extension: install the extension, start Claude Code with claude --chrome, and Claude can open tabs, click, type, read console errors and take screenshots in your real browser. It uses your existing login state, so it can reach any site you are already signed into, and it pauses for you to handle logins and CAPTCHAs.

This guide covers setup, what the integration is good for, permissions and the common fixes. All facts come from the official Use Claude Code with Chrome page, read on 24 October 2026.

What does Claude Code Chrome integration do?

It lets you chain browser actions with coding tasks in one session. Build a feature, then ask Claude to open it in the browser and check it, without switching tools. Browser actions run in a visible Chrome window, so you can watch what happens.

The docs list these capabilities:

  • Live debugging: read console errors and DOM state, then fix the code that caused them.
  • Design verification: build a UI from a mock, then check it in the browser.
  • Web app testing: form validation, visual regressions, user flows.
  • Authenticated web apps: work in Google Docs, Gmail, Notion or any app you are logged into, without API connectors.
  • Data extraction: pull structured data from pages and save it locally.
  • Task automation: data entry, form filling, multi-site workflows.
  • File uploads: attach files from your machine to upload fields.
  • Session recording: record interactions as GIFs.

Claude collects the tabs it opens into a Chrome tab group tied to your session. Typing /clear closes that group, unless work that survives the clear is still running; exiting or switching sessions closes it only if it holds nothing but empty new tabs.

What do you need before you start?

The prerequisites from the docs:

Requirement Detail
Browser Google Chrome, Microsoft Edge, or another Chromium browser such as Brave, Arc, Vivaldi or Opera
Extension Claude in Chrome version 1.0.36 or later
Claude Code Installed, see the setup guide
Plan A direct Anthropic plan: Pro, Max, Team or Enterprise
Sign-in /login, not an API key

Two limits catch people out. First, Chrome integration "isn't supported in Windows Subsystem for Linux (WSL)." Second, if you authenticate with an API key or a long-lived token from claude setup-token, Claude Code keeps Chrome integration off "even when you pass --chrome." It is also not available through Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry; the docs say you need a separate claude.ai account in that case.

In Enterprise organizations with HIPAA enabled, Claude in Chrome is off by default and an Owner can turn it on in organization settings.

How do you set up Claude Code with Chrome?

  1. Install the Claude in Chrome extension from the Chrome Web Store and sign in.
  2. Start Claude Code with the flag:
claude --chrome
  1. The first launch shows a one-time dialog explaining how site permissions work. Press Enter.
  2. Ask Claude to use the browser. The docs use this example:
Go to code.claude.com/docs, click on the search box,
type "hooks", and tell me what results appear

When Claude asks before a browser action, the dialog starts with "Claude in Chrome wants to" and offers to allow all actions on that site for the session.

If you skip the flag and Claude needs a browser anyway, Claude Code can show a prompt titled "Claude wants to use your browser" with three choices: Install extension, Not now and Don't ask again. It asks at most once per session.

Run /chrome at any time to check status, manage permissions, reconnect, or pick which connected browser to use. The integration is working when the panel shows "Status: Enabled" and "Extension: Installed."

How do you turn Chrome on by default?

Run /chrome and select Enabled by default. In the VS Code extension, type /chrome in the prompt box and turn on the same switch. The two share one setting.

There is a cost. The docs note that enabling Chrome by default "increases context usage since the browser tools and their instructions are always loaded." If you notice that, turn it off and connect only when needed with --chrome, or type @browser in the VS Code prompt box.

A safety detail: a project cannot switch Chrome on for you. If a repository's .claude/settings.json sets CLAUDE_CODE_ENABLE_CFC, Claude Code ignores it and warns you, because "a repository you check out must not be able to connect Claude to your browser."

How do permissions work in the browser?

Site-level permissions come from the Chrome extension. You manage which sites Claude can browse, click and type on in the extension's settings, not in Claude Code.

A few rules worth knowing:

  • In plan mode, Claude asks before it records a GIF, opens a new tab or runs a shortcut.
  • File uploads follow your Claude Code read permissions. If a rule denies Read on a file, Claude can't upload it either.
  • A single upload can include up to 10 MB of files in total.
  • Claude refuses to upload files with credential-style names or folders, such as .env, .pem or .key files, or anything under .ssh (Claude Code v2.1.293 or later).

GIF recordings capture everything visible, "including account details on logged-in pages," so review them before sharing. See the permissions guide for how Claude Code rules work in general.

What are good prompts for Claude Code in Chrome?

These are adapted from the workflows in the docs. Treat them as starting points:

I just updated the login form validation. Open localhost:3000,
submit the form with invalid data, and check that the error
messages appear correctly.
Open the dashboard page and check the console for any errors
when the page loads.
Go to the product listings page and extract the name, price and
availability for each item. Save the results as a CSV file.

For console debugging, the docs advise telling Claude which patterns to look for "rather than asking for all console output, since logs can be verbose." To see every browser tool available, run /mcp, select claude-in-chrome, then View tools.

If you want scripted, repeatable browser tests rather than an agent driving your own browser, compare the webapp-testing skill or the Playwright CLI skill.

How do you fix Chrome connection problems?

Start with the docs' checklist when the extension is not detected:

  1. Check the extension is installed and enabled at chrome://extensions.
  2. Run claude --version to confirm Claude Code is current.
  3. Make sure Chrome is running.
  4. Run /chrome and select "Reconnect extension."
  5. Restart both Claude Code and Chrome.

On the first enable, Claude Code installs a native messaging host file that Chrome reads at startup, so a Chrome restart often fixes a first-time failure. On macOS the Chrome copy lives at ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.anthropic.claude_code_browser_extension.json.

Common errors and fixes:

Error Likely fix
"Browser extension is not connected" Sign the extension in to the same claude.ai account and organization as Claude Code, restart both, run /chrome
"No tab available" Ask Claude to create a new tab and retry
"Receiving end does not exist" The service worker went idle; run /chrome and reconnect
Commands stop responding Dismiss any JavaScript alert or confirm dialog blocking the page

If you belong to several claude.ai organizations, run /status and check the Organization row; the extension must match it.

Keeping browser prompts you reuse

Browser checks tend to repeat: the same smoke test after each deploy, the same console sweep, the same form run. Kipt keeps prompts like these as Markdown in a private GitHub repo you own, with {{name}} or {{name:default}} blanks for the URL or page, and Cmd+K search to find them again.

For a deeper look at the extension itself, including shortcuts and scheduling, see Anthropic's Get started with Claude in Chrome help article.

Questions

How do I connect Claude Code to Chrome?

Install the Claude in Chrome extension (version 1.0.36 or later) from the Chrome Web Store, then start Claude Code with claude --chrome. Run /chrome at any time to check the connection; it is working when the panel shows Status: Enabled and Extension: Installed.

Does Claude Code Chrome integration work with Edge or Brave?

Yes. The docs say it works with Google Chrome and Microsoft Edge, and Claude Code also detects the extension in other Chromium-based browsers, including Brave, Arc, Vivaldi and Opera. It is not supported in Windows Subsystem for Linux.

Can I use Claude Code Chrome integration with an API key?

No. Chrome integration requires signing in with /login on a direct Anthropic plan (Pro, Max, Team or Enterprise). With an API key or a token from claude setup-token, Claude Code keeps Chrome integration off, and it is not available through Amazon Bedrock, Google Cloud or Microsoft Foundry.

How do I turn on Chrome for every Claude Code session?

Run /chrome in a CLI session and select Enabled by default. The setting is shared with the VS Code extension. The docs note it increases context usage, because the browser tools and their instructions are always loaded.

Why does Claude Code say Browser extension is not connected?

The extension may not be running, or it may be signed in to a different claude.ai account or organization than Claude Code. Check with /status, restart Chrome and Claude Code, then run /chrome and choose Reconnect extension.

More in Claude Code

All guides

Keep your prompts and skills in one place, in your own GitHub. Install every skill with one command.

Get started

Kipt is an independent product, not affiliated with or endorsed by Anthropic, OpenAI, Cursor or GitHub. Claude, ChatGPT, Codex, Cursor and GitHub are trademarks of their owners.