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.02/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)

---

# 2FA Automation for Emails

> Automate account creation workflows with inbox and 2FA support.

---

### The Idea

Creating accounts online typically requires email verification. This template **automates the entire process** by combining **Browser Use** with **AgentMail** to handle email verification codes automatically.

### Requirements

You'll need **two API keys**:
- **AgentMail** - For temporary inbox creation
- **Browser Use** - For LLM-powered web automation




### Installation


uvx browser-use init --template agentmail


### How It Works 

The template includes two primary functions:

**`get_email_address()`** - Returns email address of agent inbox

**`get_latest_email()`** - Checks for unread emails 

Using these functions, the agent performs the following workflow:

1. Creates a temporary email inbox
2. Navigates to registration pages
3. Fills forms with the temporary email
4. Retrieves verification codes from incoming emails
5. Completes email verification
