Anchor Browser supports X402 cryptocurrency payments for browser sessions when you have insufficient credits. This allows you to pay for sessions using cryptocurrency wallets.Documentation Index
Fetch the complete documentation index at: https://docs.anchorbrowser.io/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
- Attempt Session Creation: Try to create a browser session
- Credit Check: System checks if you have sufficient credits
- Payment Prompt: If Error 402 is returned, you’re prompted to connect a wallet
- Automatic Payment: Payment is processed automatically through your wallet
- Session Creation: Session is created immediately after successful payment
Using X402 Payments via API
Prerequisites
- Install Coinbase Wallet: Currently only Coinbase Wallet is supported
- Get Funds: Ensure your wallet has USDC on the Base mainnet network
- Set Up WalletConnect: Configure WalletConnect for wallet connection
API Usage Example
When you make a session creation request without sufficient credits, the system will:- Return a 402 (Payment Required) status
- Include payment details in the response
- Your client can automatically handle the payment using X402
- Retry the request with payment headers
Pricing
- Price per Session: $0.50 USDC
- Network: Base mainnet only
- Payment Method: USDC via X402 protocol

