Guide

Let an AI agent use a browser without handing it the keys

An AI coding agent such as Claude Code or Codex can browse for you once it has a browser it can drive. Tarn offers one over MCP with tarn --mcp: you turn it on in Settings › AI, approve the agent and each site it visits, and it works in a window of its own whose profile keeps nothing. It never types passwords, and a click while a password or payment field is filled asks you first.
Protocol
MCP, through tarn --mcp
Default
Off
Approval
Each agent and each site
Profile
Throwaway, at Strict
Platforms
macOS, Windows, Linux
Download Tarn

What can go wrong when an agent browses

A page the agent reads can contain instructions written for it, and an agent signed in as you can act on them. The safer setup gives the agent its own browser profile, asks you before it reaches a new site, and keeps it away from passwords and payments.

How Tarn keeps the agent in check

Tarn listens on a local socket that only your own user account can open, and only while Settings › AI › Let AI agents control Tarn is on.

  • You allow each agent, to look only or to act, and one agent works at a time
  • Each site needs your approval before the agent reads it
  • The agent's window uses a new profile at Strict that keeps nothing and is wiped when the session ends
  • Password fields are never typed into, and page text reaches the agent marked as untrusted
  • Pause and Stop sit in the bar of the agent's window, and a session ends after 15 minutes without use

When the agent needs your logins

On macOS, Settings › AI › Let agents use your profile lets you approve an agent with Use My Logins, so it opens its own tabs signed in, without extensions, passkeys or history. It is off by default, each site still needs your approval, and Tarn asks before a form is sent while the agent acts.

Connect an agent to Tarn

  1. Install Tarn for macOS, Windows or Linux from tarnbrowser.com/download.
  2. Turn on Settings › AI › Let AI agents control Tarn.
  3. Add Tarn to your agent as an MCP server with the command tarn --mcp.
  4. Ask the agent to open a page, then allow the agent and the site in Tarn's bar.
  5. Press Stop in the agent's window when it is done, or let the session end on its own.

What it does not solve

  • Approvals limit what an agent can do on a site you allowed, not what that site's pages tell it.
  • What the agent reads goes to the agent and its provider; Tarn makes no connection for it.
  • Downloads from the agent's window are not refused yet, and iOS and Android have no agent control.

Questions

Does the agent see my open tabs?

Not by default: it works in a window of its own. On macOS, Let agents use your tabs, off by default, lets it work in your open WebKit tabs outside private spaces.

Do I need an API key for this?

Not for Tarn. Agent control uses the agent you already run, such as Claude Code or Codex; Tarn adds no account or key.

Can I watch what the agent does?

Yes. It works in a visible window with a bar that shows when it controls the window or needs you, with Pause and Stop.

Sources

  1. Tarn: the project's README, changelog, privacy notice and source code.

Last reviewed

Try Tarn

No account to make and nothing sent home. For macOS, Windows and Linux, and in testing on phones and tablets.

Phones and tablets are in testing, with no App Store or Google Play release yet.