---
title: "Give Claude Code a browser"
description: "Paste one prompt and Claude Code uses your real Chrome: click, type, read pages and download files, logged in as you. No MCP server. Free and open source."
canonical: "https://browser-use.com/integrations/claude-code-browser"
last_updated: "2026-12-04"
---

# Give Claude Code a browser

## Give Claude Code a browser.

Paste one prompt. Claude Code then clicks, types and reads pages in your Chrome, logged in as you.

[Try it in the cloud](https://cloud.browser-use.com/v4)

Connect your agent

Claude Code browser | [Browser Harness](https://browser-use.com/browser-harness)

[Open Rate Your Music, collect the artist's complete discography with release details and ratings, and save it as CSV.](https://browser-use.com/showcase/videos/discography.mp4)

PromptOpen Rate Your Music, collect the artist's complete discography with release details and ratings, and save it as CSV.

## When a tool is missing,  
the agent writes it.

1.  agent: wants to pick a date
    
2.  agent\_helpers.py → helper missing
    
3.  agent writes itagent\_helpers.py \+ pick\_date()
    
4.  date picked
    

What an agent learns on a site can be saved as a skill: [site skills for 180 websites](https://browser-use.com/skills).

## Which browser tool to use with Claude Code

Tool Use it when Setup

Playwright MCP: Testing your own app in a browser it launches with its own profile; add --isolated for a clean one each session. Its extension mode can also work in tabs you pick in your logged-in Chrome. Setup: `claude mcp add playwright npx @playwright/mcp@latest`

Playwright CLI: The same jobs as Playwright MCP, as shell commands and a skill. Microsoft's README says coding agents may be better off with it, because it is more token-efficient. Setup: `npm install -g @playwright/cli@latest && playwright-cli install --skills`

Claude in Chrome: Claude in your own Chrome, logged in as you. Needs a Pro, Max, Team or Enterprise plan via /login. It stays off with an API key, Bedrock, Google Cloud Agent Platform, Microsoft Foundry and in WSL. Setup: `Install the Claude in Chrome extension, then: claude --chrome`

Chrome DevTools MCP: Debugging your app: performance traces, network requests, console errors. Setup: `claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest`

Browser Harness: Your logged-in Chrome when Claude in Chrome is not available to you, for example on an API key, or many cloud browsers at once. In our matched eval, with Codex as the agent, it matched Playwright MCP and Chrome DevTools MCP on success at the lowest model cost per task: a median $0.042 vs $0.066 and $0.097. Setup: `Paste the setup prompt from Connect your agent, above.`

Browser Harness attaches to your whole Chrome: you tick remote debugging in chrome://inspect once, then click Allow. If you want the agent to see only some tabs or sites, Playwright MCP's extension mode and Claude in Chrome's site permissions limit that.

Source: [Playwright MCP README](https://github.com/microsoft/playwright-mcp), [Playwright CLI README](https://github.com/microsoft/playwright-cli), [Claude Code: use Claude Code with Chrome](https://code.claude.com/docs/en/chrome), [Chrome DevTools MCP client setup](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/client-configurations.md), [Browser Harness README](https://github.com/browser-use/browser-harness), [matched eval](https://browser-use.com/benchmarks/coding-agent-browser-tools.json), checked Oct 2026.

## Questions

Do I need an MCP server?

No. The prompt installs Browser Harness and registers it as a Claude Code skill. Chrome asks once for permission.

Can Claude Code run many browsers at once?

Yes, on Browser Use cloud browsers, one per sub-agent, at $0.06 per browser-hour with stealth, CAPTCHA solving and proxies.

What does it cost?

Nothing. Browser Harness is open source under MIT, and using your own Chrome is free. Cloud browsers are $0.06 per browser-hour if you want them.

You will never use  
the browser again.

[Try it in the cloud](https://cloud.browser-use.com/v4)

Connect your agent

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
