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

# MPP

> Use MPP to pay for Browserbase sessions through Link.

The [Machine Payments Protocol (MPP)](https://mpp.dev) is an open protocol co-authored by Stripe and Tempo that lets agents pay for APIs and services programmatically.

Use [Link](https://link.com/agents) to approve a payment for a Browserbase session. Link CLI pays with a Stripe [Shared Payment Token (SPT)](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens), and you connect to the browser with Stagehand, Playwright, or Puppeteer. You don't need a Browserbase account or API key.

**Endpoint:** `https://mpp.browserbase.com`

## How it works

The `link-cli mpp pay` command handles the payment challenge, approval, and paid request.

**1. Request a session**

Link CLI sends a request with the number of minutes you need. Browserbase returns `402 Payment Required` with a payment challenge in the `WWW-Authenticate` header.

**2. Approve in Link**

Open the approval URL returned by Link CLI and review the amount. After you approve, the CLI retrieves a Shared Payment Token and retries the request with an `Authorization: Payment` credential.

**3. Connect to the session**

After verifying payment, Browserbase creates the session and returns its `connectUrl` and expiration time. Connect over CDP to start browsing.

## Pricing

Pay **0.50 USD for 250 minutes** of browser access.

Check the `402` challenge for the current amount before paying. The response's `expiresAt` value tells you when the session expires.

## Before you begin

Make sure you have:

* [Link CLI](https://docs.stripe.com/agentic-commerce/agents/link-agent-wallet/machine-payments), which provides the `link-cli mpp pay` command.
* A [Link account](https://app.link.com) with an eligible saved payment method.
* Stagehand, Playwright, or Puppeteer to control the browser.

## Related guides

For USDC payments through x402, see the [x402 integration](https://docs.browserbase.com/integrations/x402/introduction.md). To use Link to pay merchants while browsing, see the [Stripe integration](https://docs.browserbase.com/integrations/stripe/introduction.md).

> [card] [MPP quickstart](https://docs.browserbase.com/integrations/mpp/quickstart.md)
>
> Pay with Link, approve the purchase, and connect with Stagehand.

> [card] [Machine Payments Protocol](https://mpp.dev)
>
> Read the MPP specification and client documentation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.