Skip to main content
Browserbase runs the browser your agent shops in. The Agentcard SDK attaches to it through Playwright over the session’s connectUrl, the same way it attaches to any CDP browser. You need a user with a card in the Vault first. See Adding a card.

Install

Connect and attach

Attach before the agent reaches the payment form. Browserbase’s default context does not block service workers, so if the SDK refuses to attach, create the session’s browser context with serviceWorkers: 'block' or check the merchant’s site for an active service worker. After the run, the session recording is at https://browserbase.com/sessions/${session.id}, which is useful for reviewing a checkout that needed a human.

Next

The rest of the flow is identical to any Vault purchase: placeholder card, Face ID approval, real card swapped in, confirm with the merchant. Follow the Vault Quickstart from step 4, or read Completing a purchase.