---
title: "Let Gemini use your browser"
description: "Gemini CLI clicks, types and reads pages in your real Chrome, logged in as you. Paste one prompt to set it up. Free and open source."
canonical: "https://browser-use.com/gemini-browser"
last_updated: "2026-11-11"
---

# Let Gemini use your browser

## Let Gemini use your browser.

Gemini CLI clicks, types and reads pages in your own Chrome, logged in as you.

[Try it in the cloud](https://cloud.browser-use.com/v4?utm_source=browser-use&utm_medium=gemini-browser-page)

Connect your agent

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

[Open my X profile, find my latest 20 video posts, and download them.](https://browser-use.com/showcase/videos/x-profile-media.mp4)

PromptOpen my X profile, find my latest 20 video posts, and download them.

## 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 148 websites](https://browser-use.com/skills).

## How do I give Gemini CLI a browser?

As of Nov 1, 2026: turn on Gemini CLI's built-in browser agent in settings.json (Chrome 144+). Add an MCP server for Firefox or WebKit, or one tool across agents. Since June 18, 2026, Gemini CLI needs a paid API key or Code Assist Standard or Enterprise; free, Google AI Pro and Ultra users get Antigravity CLI instead.

Tool Runs in Use it when Setup

Gemini CLI browser agent: Runs in: Its own Chrome; yours with session mode "existing". Use it when: Web tasks with nothing to install. Off by default; asks before filling forms. Setup: `In ~/.gemini/settings.json: "agents": {"overrides": {"browser_agent": {"enabled": true}}}`

Chrome DevTools MCP: Runs in: Its own Chrome; yours with `--autoConnect`. Use it when: Debugging your app: performance traces, network requests, console errors. Setup: `gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest`

Playwright MCP: Runs in: Its own profile; your tabs with its extension. Use it when: Testing your app in Chrome, Firefox or WebKit. Microsoft suggests Playwright CLI for coding agents. Setup: `gemini mcp add -s user playwright npx @playwright/mcp@latest`

Browser Harness: Runs in: Your Chrome, with your logins. Use it when: Sites you are signed in to, from any agent, with raw CDP when a click fails. Setup: `gemini mcp add -s user browser-harness uvx -- --from "browser-harness[mcp]" browser-harness-mcp`

Browser Harness attaches to your whole Chrome once you turn on remote debugging and click Allow. For less access: allowedDomains limits which sites the browser agent opens; Playwright MCP's extension mode only sees the tabs you pick.

Source: [Gemini CLI docs: browser agent](https://geminicli.com/docs/core/subagents/#browser-agent), [Google: Gemini CLI to Antigravity CLI](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli), [Gemini CLI docs: gemini mcp add](https://geminicli.com/docs/tools/mcp-server/), [Chrome DevTools MCP client setup](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/client-configurations.md), [Chrome DevTools MCP: connect to your Chrome](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md#connecting-to-a-running-chrome-instance), [Playwright MCP README (standard config)](https://github.com/microsoft/playwright-mcp), [Playwright Extension](https://github.com/microsoft/playwright/tree/main/packages/extension#readme), [browser-harness-mcp setup](https://github.com/browser-use/browser-harness/blob/main/docs/MCP.md), checked Nov 1, 2026.

## Questions

Can Gemini CLI use my logged-in Chrome?

Yes: the browser agent in session mode "existing", Chrome DevTools MCP with --autoConnect, or Browser Harness, once remote debugging is on in chrome://inspect. Or Playwright MCP's extension mode, with its Chrome extension.

Is this Gemini in Chrome?

No. Gemini in Chrome is Google's assistant in Chrome; its auto browse does tasks for you (preview, Google AI Pro and Ultra, US). This page is Gemini CLI working in your Chrome. Sources: [Google: Gemini in Chrome](https://gemini.google/overview/gemini-in-chrome/).

How do I set it up?

Run the browser-harness command from the table above. It needs uv. Gemini CLI only connects MCP servers in folders you trust. Chrome asks once for permission. Sources: [Gemini CLI docs: trusted folders](https://geminicli.com/docs/cli/trusted-folders/).

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?utm_source=browser-use&utm_medium=gemini-browser-page)

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)
