Let Gemini use your browser.
Gemini CLI clicks, types and reads pages in your own Chrome, logged in as you.
When a tool is missing,
the agent writes it.
- agent: wants to pick a date
- agent_helpers.py → helper missing
- agent writes itagent_helpers.py + pick_date()
- date picked
What an agent learns on a site can be saved as a skill: site skills for 144 websites.
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.
In ~/.gemini/settings.json: "agents": {"overrides": {"browser_agent": {"enabled": true}}}--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@latestgemini mcp add -s user playwright npx @playwright/mcp@latestgemini mcp add -s user browser-harness uvx -- --from "browser-harness[mcp]" browser-harness-mcpBrowser 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.
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.
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.
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.