How do I let an AI agent work in a browser profile safely?
Updated December 5, 2026
Mirage is itself an MCP server. Connect Claude, Cursor, Codex or another MCP client, and the agent can open a profile, read pages, click and type. Every step is checked against the profile's policy: allowed domains, which risky actions need your approval, and limits. Payments and credentials always wait for you, and every call goes into a journal.


Set an AI agent's limits
A profile's policy decides every step an agent takes through MCP. Change the policy and see what happens to the same six steps.
What the agent gets
- Read shop.example/orders
- Click “Track order” on shop.example
- Open news.example
- Send a message on mail.example
- Download invoice.pdf from shop.example
- Pay for the order on shop.example
Payments, saved passwords and granting access always need your approval, whatever the policy says. The agent never sees passwords.
How do I connect an agent?
- In Mirage open Agents › Connect and choose Connect agent apps. The key stays in Mirage’s own data folder and never goes into the agent’s settings.
- In Agents › Policies, assign a policy to each profile the agent may use. A profile without a policy is closed to agents.
- Add Mirage to your client. Agents › Connect shows the exact path on your computer.
Claude Code:
claude mcp add mirage -- "/Applications/Mirage Browser.app/Contents/MacOS/Mirage Browser" --mcpClaude Desktop or Cursor:
{
"mcpServers": {
"mirage": {
"command": "/Applications/Mirage Browser.app/Contents/MacOS/Mirage Browser",
"args": ["--mcp"]
}
}
}The first time the client calls, Mirage asks whether to allow it.
What can the agent do?
| Tools | Does |
|---|---|
list_profiles, open_profile, close_profile |
Finds and opens profiles its policies allow |
tabs, navigate |
Opens and switches tabs, goes to a page |
snapshot, extract, screenshot, scroll, wait_for |
Reads the page |
click, fill, press_key, select_option, hover |
Acts, if the policy allows clicks and typing |
Clicks and typing move like a person, and page text reaches the agent marked as untrusted, so it can tell a page from your instructions.
What does a policy control?
| Template | Clicks and typing | Risky actions | Protected mode |
|---|---|---|---|
| Careful | Yes | Ask; downloads allowed; uploads and deletion denied | On |
| Read only | No | Denied | On |
| Full access | Yes | Allowed | Off |
On top of the template: Allowed domains (*.example.com includes subdomains), allow, ask or deny for payment, credentials, sending messages, session export, app authorization, access grants, upload, download and delete, and limits on actions per minute, session length and tabs.
What does a confirmation look like?
A card in Agents › Approvals shows the action, the site and the agent’s stated goal. Allow or decline, with a reason the agent will see. Payments, credentials and access grants are confirmed one by one, by holding the button for a second, and are declined if nobody answers in five minutes. You can also decline from Telegram.
What is protected mode?
An agent could try to make the page send a request itself. In protected mode, every request of the page that changes something waits for you while an agent is attached. On known ad platforms, reads pass and launching a campaign or changing a budget is always held.
Where do I see what the agent did?
Agents › Journal records every tool call: time, client, profile, tool, arguments and the decision, including denied steps. A session recording adds the screen and network requests.
Example tasks and setup for teams: browser for AI agents and the agents guide.