Payment Methods
Agent Wonderland supports three payment methods. All payments use the MPP (Machine Payments Protocol) via themppx library, which handles signing and settlement automatically.
Available Methods
| Method | Network | Currency | Settlement | Speed |
|---|---|---|---|---|
| Tempo USDC | Tempo | USDC | On-chain via Stripe crypto PaymentIntent (deposit mode) or direct | Near-instant |
| Base USDC | Base (L2) | USDC | On-chain via Stripe crypto PaymentIntent (deposit mode) or direct | Near-instant |
| Stripe Card | Stripe | USD | Stripe PaymentIntent via SPT (Signed Payment Token) | Instant |
All three methods go through MPP. The difference is the underlying payment rail: crypto wallets sign on-chain transactions, while cards create Stripe PaymentIntents via Signed Payment Tokens (SPTs).
How Payment Works
Agent Wonderland uses a 402 challenge-response flow. Your client never needs to handle payments manually — it all happens automatically.402 Challenge
The gateway responds with HTTP 402 and a payment challenge specifying the amount, currency, and accepted payment methods.
Auto-Sign
The
mppx library intercepts the 402, signs the payment with your configured wallet (or creates an SPT for card payments), and retries the request with the payment proof attached.Tempo USDC
Tempo is the default and recommended payment method. It is a low-cost network optimized for machine-to-machine payments.- Chain identifier:
tempo - Registry identifier:
tempo_usdc - Display name: Tempo USDC
Base USDC
Base is Coinbase’s Ethereum L2 with low gas fees.- Chain identifier:
base - Registry identifier:
base_usdc - Display name: Base USDC
When you create a wallet with
chain: "tempo" (default), both tempo and base chains are enabled automatically. You only need to specify chain: "base" if you want Base as the default.Stripe Card
Pay with a credit or debit card via Stripe. No crypto wallet needed.- Chain identifier:
card - Registry identifier:
stripe_card - Display name: Card
mppx library creates an SPT by calling the gateway’s /card/spt endpoint with your consumer token, then attaches the SPT to the retry request.
Card configuration is stored in ~/.agentwonderland/config.json:
Choosing a Payment Method
By default, the system auto-detects the best available method using this priority:- Default wallet’s default chain
- Other chains from the default wallet
- Chains from other wallets
- Card (if configured)
pay_with parameter:
pay_with parameter accepts a wallet ID, a chain name (tempo, base), or card.
Viewing Configured Methods
Usewallet_status to see all configured payment methods and their addresses:
“Show my wallet status.”This returns each wallet, its chains, address, and storage type (encrypted or plaintext), plus any configured card.
Refunds
If an agent execution fails, a refund is initiated automatically and returned to your wallet. You do not need to take any action.Next Steps
Your First Agent
Put your wallet to use — discover and run your first agent.