Chrome integration works with Google Chrome and Microsoft Edge. Claude Code also detects the extension and sets up the connection in other Chromium-based browsers, including Brave, Arc, Vivaldi, and Opera. Chrome integration isn’t supported in Windows Subsystem for Linux (WSL).
Capabilities
With Chrome connected, you can chain browser actions with coding tasks in a single workflow:- Live debugging: read console errors and DOM state directly, then fix the code that caused them
- Design verification: build a UI from a Figma mock, then open it in the browser to verify it matches
- Web app testing: test form validation, check for visual regressions, or verify user flows
- Authenticated web apps: interact with Google Docs, Gmail, Notion, or any app you’re logged into without API connectors
- Data extraction: pull structured information from web pages and save it locally
- Task automation: automate repetitive browser tasks like data entry, form filling, or multi-site workflows
- File uploads: attach files from your machine to upload fields on web pages
- Session recording: record browser interactions as GIFs to document or share what happened
Prerequisites
Before using Claude Code with Chrome, you need:- Google Chrome, Microsoft Edge, or another Chromium-based browser such as Brave, Arc, Vivaldi, or Opera
- Claude in Chrome extension version 1.0.36 or higher, available in the Chrome Web Store
- Claude Code
- A direct Anthropic plan (Pro, Max, Team, or Enterprise)
Chrome integration is not available through third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
Get started in the CLI
1
Launch Claude Code with Chrome
Start Claude Code with the The first time you launch with Chrome, Claude Code shows a one-time dialog that introduces the integration and explains how site permissions work. Press Enter to continue.To enable Chrome for future sessions without the flag, see Enable Chrome by default.
--chrome flag:2
Ask Claude to use the browser
This example navigates to a page, interacts with it, and reports what it finds, all from your terminal or editor:The first browser action asks for permission to use the
claude-in-chrome skill. Approve it and Claude opens a new tab and starts the task./chrome at any time to check the connection status, manage permissions, reconnect the extension, or choose which connected browser to use. The integration is working when the status panel shows “Status: Enabled” and “Extension: Installed”. If more than one browser is connected when a browser action starts, Claude prompts you to pick one.
For VS Code, see browser automation in VS Code.
Enable Chrome by default
To avoid passing--chrome each session, run /chrome and select “Enabled by default”.
Claude Code starts normally when Chrome isn’t running. Before v2.1.211, startup could hang when Chrome integration was enabled but Chrome wasn’t running.
In the VS Code extension, Chrome is available whenever the Chrome extension is installed. No additional flag is needed.
Enabling Chrome by default in the CLI increases context usage since browser tools are always loaded. If you notice increased context consumption, disable this setting and use
--chrome only when needed.Manage site permissions
Site-level permissions are inherited from the Chrome extension. Manage permissions in the Chrome extension settings to control which sites Claude can browse, click, and type on.Browser tools in plan mode
In plan mode, browser tool calls that only read the page or browser state run without a permission prompt, and calls that change state prompt for approval.- Read-only calls:
read_page,get_page_text,find, reading console messages or network requests, and taking a screenshot - State-changing calls: clicks, typing, navigation, tab and window management, and recording a GIF
createIfEmpty on tabs_context_mcp, clear on the console and network readers, or save_to_disk on a screenshot, also prompts for approval. A browser_batch call runs without a prompt only when every action inside it is read-only.
Example workflows
These examples show common ways to combine browser actions with coding tasks. Run/mcp, select claude-in-chrome, then select View tools to see the full list of available browser tools.
Test a local web application
When developing a web app, ask Claude to verify your changes work correctly:Debug with console logs
Claude can read console output to help diagnose problems. Tell Claude what patterns to look for rather than asking for all console output, since logs can be verbose:Automate form filling
Speed up repetitive data entry tasks:Upload files to web pages
Claude can attach files from your machine to upload fields on a page. Claude Code reads the file and sends its contents to the browser, so uploads work in both local and remote sessions. Requires Claude Code v2.1.211 or later. This example attaches a log file to a form:- Permissions: Claude can upload a file only when the session is allowed to read it, so permission rules that deny
Readaccess to a file also block uploading it. - Size: a single upload can include up to 10 MB of files in total.
- Hard links: Claude refuses files that have multiple hard links, which is common inside package-manager stores like
node_modules. Copy the file and upload the copy.
Draft content in Google Docs
Use Claude to write directly in your documents without API setup:Extract data from web pages
Pull structured information from websites:Run multi-site workflows
Coordinate tasks across multiple websites:Record a demo GIF
Create shareable recordings of browser interactions:Save screenshots to disk
Ask Claude to keep a screenshot as a file:save_to_disk option didn’t write a file.
Troubleshooting
Extension not detected
If Claude Code can’t detect the Chrome extension:- Verify the Chrome extension is installed and enabled in
chrome://extensions - Verify Claude Code is up to date by running
claude --version - Check that Chrome is running
- Run
/chromeand select “Reconnect extension” to re-establish the connection - If the issue persists, restart both Claude Code and Chrome
- macOS:
~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.anthropic.claude_code_browser_extension.json - Linux:
~/.config/google-chrome/NativeMessagingHosts/com.anthropic.claude_code_browser_extension.json - Windows: check
HKCU\Software\Google\Chrome\NativeMessagingHosts\in the Windows Registry
- macOS:
~/Library/Application Support/Microsoft Edge/NativeMessagingHosts/com.anthropic.claude_code_browser_extension.json - Linux:
~/.config/microsoft-edge/NativeMessagingHosts/com.anthropic.claude_code_browser_extension.json - Windows: check
HKCU\Software\Microsoft\Edge\NativeMessagingHosts\in the Windows Registry
~/Library/Application Support/BraveSoftware/Brave-Browser/NativeMessagingHosts/, and on Windows each browser has its own registry key, such as HKCU\Software\BraveSoftware\Brave-Browser\NativeMessagingHosts\.
Browser not responding
If Claude’s browser commands stop working:- Check if a modal dialog (alert, confirm, prompt) is blocking the page. JavaScript dialogs block browser events and prevent Claude from receiving commands. Dismiss the dialog manually, then tell Claude to continue.
- Ask Claude to create a new tab and try again
- Restart the Chrome extension by disabling and re-enabling it in
chrome://extensions
Connection drops during long sessions
The Chrome extension’s service worker can go idle during extended sessions, which breaks the connection. If browser tools stop working after a period of inactivity, run/chrome and select “Reconnect extension”.
Windows-specific issues
On Windows, you may encounter:- Named pipe conflicts (EADDRINUSE): if another process is using the same named pipe, restart Claude Code. Close any other Claude Code sessions that might be using Chrome.
- Native messaging host errors: if the native messaging host crashes on startup, try reinstalling Claude Code to regenerate the host configuration.
- Setup pages fail to open: update Claude Code. Before v2.1.211, the browser tab prompting you to connect the extension could fail to open on Windows.
Common error messages
These are the most frequently encountered errors and how to resolve them:See also
- Computer use: control native macOS apps when a task can’t be done in a browser
- Use Claude Code in VS Code: browser automation in the VS Code extension
- CLI reference: command-line flags including
--chrome - Common workflows: more ways to use Claude Code
- Data and privacy: how Claude Code handles your data
- Getting started with Claude in Chrome: full documentation for the Chrome extension, including shortcuts, scheduling, and permissions