Index Agentica

Agent that can buy things

The pieces for an agent that pays for APIs per call with x402 stablecoins and buys from merchants with controlled virtual cards, with spend limits, proof of user intent and a full audit trail.

Type
Stack
Author
Agentica Author
Published
Last verified

Use case

Let an agent pay for metered APIs and tools on its own and complete merchant purchases for a user, within budgets you set and with a record of who authorized what.

Components

RoleComponentWhy
Agent harnessClaude Agent SDKRuns the agent loop with tools, skills and MCP in your own app, so payment tools sit behind code you control rather than prompts. Any harness with tool calling works.
Machine payment protocolx402Pay per request for HTTP APIs and MCP tools: the server answers 402 with a price, the agent signs a stablecoin payment and retries. SDKs default to USD stablecoins and a $1 cap per payment.
Agent walletCoinbase Agentic WalletA wallet built for agents, as the awal CLI with skills or as an MCP server (npx @coinbase/payments-mcp), that pays x402 services with guardrails such as a per-call maximum amount.
Settlement currencyUSDCThe stablecoin most x402 services price in. Fund the agent's wallet with only what it may spend, and test on Base Sepolia with faucet USDC first.
Service discoveryx402 BazaarA public index of x402-payable endpoints with prices and schemas, so the agent can find a paid API without a human signing up for keys.
Card credentialsStripe Issuing for AgentsSingle-use or per-agent virtual cards with spend limits, merchant-category controls and real-time authorization webhooks, usable for programmatic checkout (MPP, UCP, Shared Payment Tokens) or in a browser.
Merchant checkout protocolAgentic Commerce Protocol (ACP)OpenAI and Stripe's open checkout standard (beta); lets an agent complete a purchase through a merchant's agent-ready checkout with a delegated payment token.
Merchant checkout protocol (alternative)Universal Commerce Protocol (UCP)Capability-based commerce standard over REST, MCP or A2A, covering checkout, identity linking and orders, with support for AP2 mandates.
Proof of user intentAgent Payments Protocol (AP2)Signed Checkout and Payment Mandates record what the user authorized, either a specific purchase or constraints like a budget, giving merchants and you an audit trail.
Browser for non-agent checkoutsBrowserbaseA hosted browser for merchants without an agent-checkout API, kept apart from your own machine and sessions.
TracingLangfuseRecords every tool call and payment decision so you can reconcile spend against what the agent did and why.

Two ways an agent pays

Per call, in stablecoins. For APIs and MCP tools that charge per request, the agent holds a small USDC balance in an agent wallet and pays with x402: request, get 402 with a price, sign, retry. There are no accounts or API keys to create, and each payment is capped. The x402 guide walks through it, and the pay-with-x402 skill teaches a coding agent to do it safely.

At a merchant, by card. For physical goods, subscriptions and anything sold through a normal checkout, the agent uses a card you control: a single-use or per-agent virtual card from Stripe Issuing for agents. Where the merchant supports an agent-checkout protocol (ACP or UCP), the card travels as a delegated token and the agent never sees the number. Where it doesn't, the agent fills in the checkout in a hosted browser (Browserbase).

The agent payment protocols comparison explains how these protocols relate, including MPP, which can serve both stablecoin and card payments on one endpoint.

Guardrails to set before the first purchase

Directory entries in this stack

Related

Sources

Machine-readable