GuidesHosting choices

Claude Code with Chrome: --chrome, setup and headless servers

Connect Claude Code to Chrome with the Claude in Chrome extension: --chrome and /chrome, plans, permissions, errors, and Playwright or DevTools MCP on a server.

November 23, 2026The Everpod team
The short answer

Claude Code drives Chrome through Anthropic’s Claude in Chrome extension (version 1.0.36 or later). Install it, sign in to it with the same Claude account and organization as Claude Code, then start claude --chrome, or run /chrome in a session to check the connection and turn it on for every session. It needs a Pro, Max, Ultra, Team or Enterprise plan and a /login sign-in: with an API key or a claude setup-token token it stays off, and it isn’t available on Bedrock, Google Cloud or Foundry, or in WSL. Claude works in a visible Chrome window with your logins, asks before acting on each new site, and stops for you at a login page or CAPTCHA. On a server with no desktop, the alternative is a browser MCP server that runs Chrome headless on the server itself: claude mcp add playwright npx @playwright/mcp@latest or claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest.

Turning it on

With the extension installed and signed in, and Chrome running, start Claude Code with the flag:

claude --chrome
Copied

The first time, Claude Code shows a one-time dialog about site permissions and writes a native messaging host file that Chrome reads only when it starts, so if the extension isn’t found on the first try, Anthropic’s Chrome page says to restart Chrome. On Linux the file is ~/.config/google-chrome/NativeMessagingHosts/com.anthropic.claude_code_browser_extension.json.

What it needs

RequirementAs of November 2026
Plan
Pro, Max, Ultra, Team or Enterprise, used directly with Anthropic. Not through Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry.
Sign-in
/login with your Claude account. An API key or a claude setup-token token keeps Chrome off even with --chrome, because the extension can’t authenticate with them.
Extension
Claude in Chrome 1.0.36 or later, signed in to the same account and organization as Claude Code (/status shows Claude Code’s organization).
Browser
Chrome or Edge per the Claude Code docs, which add that Brave, Arc, Vivaldi and Opera are detected too. Anthropic’s help center article says the extension “is not supported on other Chromium-based web browsers”; the two pages disagree.
System
The docs give the setup file’s location on macOS, Linux and Windows. Not supported in WSL.
Organization
Off by default on Enterprise with HIPAA (an Owner turns it on under Organization settings, Claude in Chrome); unavailable in Claude Code with zero data retention, where /chrome reports Claude in Chrome is disabled by your organization's policy.

The extension’s own side panel became a Claude Cowork session in August 2026. That changes the panel, not the Claude Code connection described here.

What Claude can do in the browser, and when it asks

Claude opens its own tabs, collected into a tab group for the session, and they share your browser’s logins, so it can work in Gmail, Google Docs, an admin console or anything else you’re signed in to. It navigates, clicks, types and fills forms, reads console errors and the DOM, takes screenshots and saves them to disk, records GIFs, and attaches local files to upload fields. Run /mcp, select claude-in-chrome, then View tools for the full list. A typical first request, from the docs:

Go to code.claude.com/docs, click on the search box, type "hooks", and tell me what results appear
Copied

On a server with no desktop

Anthropic’s Chrome page doesn’t say where the extension must run relative to Claude Code. The setup it describes is that Claude Code “installs a native messaging host configuration file” in the browser’s own configuration folder (the Linux path is above), and “Chrome reads this file on startup.” GitHub requests to support Claude Code on a server with Chrome on your own computer (#15450, #21299) were closed by a bot with no answer from Anthropic. For an agent that browses on a server, run the browser on the server, which is what the MCP servers below do.

The MCP alternatives: Playwright and Chrome DevTools

Both are ordinary local MCP servers, added with claude mcp add, that start their own Chrome on the machine where Claude Code runs. They work with an API key, on any provider, and with no extension or Claude account in the loop; the browser has none of your logins unless you sign in inside it.

Claude in ChromePlaywright MCPChrome DevTools MCP
Maker
AnthropicMicrosoft (v0.0.86, 18 Nov 2026)Chrome DevTools team (v1.13.0, 11 Nov 2026)
Browser
Your own Chrome, with your loginsIts own, persistent profile by default; Chrome, Edge, Firefox or WebKitIts own Chrome profile, or a running Chrome you point it at
Reads pages by
Page content, screenshots, console, DOMAccessibility snapshots, “bypassing the need for screenshots”DevTools: console, network requests, screenshots, performance insights
Headless server
No browser of its own--headless (headed by default)--headless (off by default)
Needs
Claude plan, /login, the extensionNode.js 20+Node.js LTS, current stable Chrome

On a server with no display, both default to a visible window, so pass --headless. Everything after -- goes to the server untouched:

# Playwright MCP, headless, profile kept in memory
claude mcp add playwright -- npx @playwright/mcp@latest --headless --isolated

# Chrome DevTools MCP, headless, throwaway profile, no usage statistics
claude mcp add chrome-devtools --scope user -- npx chrome-devtools-mcp@latest --headless --isolated --no-usage-statistics
Copied

Pointing an MCP server at a Chrome you already have open

Both servers can drive a running Chrome instead of starting one. Playwright’s --extension connects to existing tabs in Chrome or Edge through its own “Playwright Extension”. Chrome DevTools MCP has two routes, per its advanced usage guide:

/usr/bin/google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
Copied

With Claude Code on a server and that Chrome on your computer, neither project shows a recipe, but the documented parts combine: the DevTools server’s troubleshooting guide tunnels port 9222 with ssh -N -L from a VM to its host, and the reverse, ssh -R, puts your computer’s port on the server, bound to the server’s loopback by default:

# on your computer, with Chrome running as above
ssh -N -R 9222:127.0.0.1:9222 you@your-server

# on the server
claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest --browser-url=http://127.0.0.1:9222
Copied

The project’s warning applies twice over: with the port open, “any application on your machine can connect to this port and control the browser,” and through the tunnel, so can anything on the server. Keep sensitive sites out of that profile while the port is open.

Errors, and what fixes them

MessageMeaning and fix
Browser extension is not connected
The extension isn’t running, or is signed in to a different account or organization (check /status), or an organization IP allowlist blocks bridge.claudeusercontent.com. Fix the sign-in, restart Chrome and Claude Code, run /chrome. Switching the extension’s organization means logging out of it, which loses its saved shortcuts and scheduled tasks.
No browsers are connected
No Chrome is open with the extension signed in to this account and organization, or Claude Code can’t reach the bridge.
“Not detected” in /chrome
The extension isn’t installed or is disabled; install or enable it in chrome://extensions.
Receiving end does not exist
The extension’s service worker went idle in a long session. /chrome, Reconnect extension; before v2.1.290 that only opened a page, so update.
No tab available
Claude acted before a tab was ready; ask it to open a new tab.
Commands stop responding
A JavaScript alert or confirm dialog is blocking the page; dismiss it and tell Claude to continue.
Chrome stays off with --chrome
Claude Code is signed in with an API key or a setup-token token; sign in with /login.

Run Claude Code on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.