> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browser-use.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Give Claude Code cloud browser automation with Browser Use.

[Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) is Anthropic's agentic coding tool that runs in the terminal. Add Browser Use and it gets full cloud browser automation — anti-detect profiles, CAPTCHA solving, residential proxies in 195+ countries, persistent profiles, and stealth browsing.

## Setup

**1. Install the CLI**

```bash theme={null}
uv tool install browser-use
```

**2. Verify the installation**

```bash theme={null}
browser-use doctor
```

**3. Register the skill**

Register the Browser Use skill with the installed CLI:

```bash theme={null}
browser-use skill install
```

**4. Authenticate for cloud browsers**

Sign up at [cloud.browser-use.com](https://cloud.browser-use.com), then authenticate:

```bash theme={null}
browser-use auth login
```

Or let Claude Code provision a free API key itself — see [Agent Self-Registration](#agent-self-registration) below.

**5. Use it**

Claude Code uses its bash tool to run CLI commands directly:

```
> Use browser-use to open github.com/trending and summarize the top repos
```

For the complete CLI reference and Python execution examples, see the [Browser Use CLI docs](https://docs.browser-use.com/open-source/browser-use-cli).

## Agent Self-Registration

Claude Code can provision its own Browser Use API key autonomously — no human interaction needed. The free tier includes unlimited browser hours, free proxies in 195+ countries, persistent browser profiles, CAPTCHA solving, and stealth browsing at zero cost.

Install the Browser Use CLI and skill:

```bash theme={null}
uv tool install browser-use
browser-use skill install
```

Claude Code can follow the [REST flow](/cloud/agent-signup#rest-flow) to request and verify a challenge, then put the returned key in its shell environment:

```bash theme={null}
export BROWSER_USE_API_KEY=bu_...
browser-use auth status
```

### Claim the account (optional)

If the human wants to see the account in the dashboard later, use the [claim endpoint](/cloud/agent-signup#claim-the-account). The returned claim URL is valid for 1 hour.

## Pay with USDC via x402

Two ways to use x402 with Browser Use Cloud:

* **Top up an existing account** — add credits to your API key (e.g. one created via Agent Self-Registration above) using USDC. No credit card required. Use this when free credits run out.
* **Accountless** — wallet IS the identity, no signup needed. Pure x402 / agent-economy native. Use this for autonomous agents that hold their own wallet.

Install the skill:

```bash theme={null}
npx skills add https://github.com/browser-use/browser-use --skill x402
```

Then in Claude Code:

```
> /x402
```

The skill asks whether you have an existing API key (top-up mode) or want accountless mode, then walks you through generating (or importing) an EVM wallet, funding it via Coinbase, and running a verification task. You'll need \~$5 of USDC on Base mainnet. Each top-up is $1.

For the SDK API and protocol details, see the [x402 guide](/cloud/guides/x402).
