Guide
Let an AI agent use a browser without handing it the keys
- Protocol
- MCP, through tarn --mcp
- Default
- Off
- Approval
- Each agent and each site
- Profile
- Throwaway, at Strict
- Platforms
- macOS, Windows, Linux
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
- Install Tarn for macOS, Windows or Linux from tarnbrowser.com/download.
- Turn on Settings › AI › Let AI agents control Tarn.
- Add Tarn to your agent as an MCP server with the command tarn --mcp.
- Ask the agent to open a page, then allow the agent and the site in Tarn's bar.
- 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
- 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.