Blog · 2026-11-23
The week AWS put a spending cap on paying agents
Last week Amazon added AWS Billing as a way for agents in Bedrock AgentCore to pay x402 sellers on AWS Marketplace. The agent gets a 402, asks AgentCore to approve the payment, and the charge lands on the company's AWS bill instead of coming out of a stablecoin wallet. That part got the headlines. The part we found more interesting was the list of controls that shipped with it: a spending cap per session, a cap per request, and a list of approved sellers. AWS's sample app gives an agent five cents for a whole session and two cents for any single call.
That says a lot about where agent payments are right now. The hard part is no longer how an agent pays. x402 answers that in one extra round trip. The hard part is deciding whether to pay, again and again, without a human checking each call.
Why "should I pay this?" is getting harder
Three things in the news this month make that decision harder.
There are a lot more sellers. One independent count from mid-November found about 3,000 mainnet seller wallets listing around 48,000 paid endpoints across the public x402 catalogs. Brave started selling search results over x402 at half a cent a query. An agent that finds tools on its own will keep running into endpoints it has never seen.
Not every seller is set up correctly. The same count probed every listed endpoint without paying. Roughly 63% answered with a clean, well-formed 402. About one in five failed completely. A broken 402 isn't dangerous by itself, but an agent can't compare prices or check where its money goes if it can't read the payment terms.
Payments are still mostly final. x402 payments were designed with no chargebacks, and the refundable payment type being added is optional for sellers. Banks raised this early in the year. Once an agent signs a payment, you usually can't get the money back. So the check has to happen before the agent signs.
What a good pre-payment check looks like
Whether your agent runs on AgentCore, on your own server with a hot wallet, or inside an MCP client, the rules are the same:
- Read the terms before you sign. Make the unpaid request, decode the payment requirements (the v2
PAYMENT-REQUIREDheader or the v1acceptsbody), and turn the amount into dollars. - Apply a per-call cap. If one call costs more than you'd ever pay for that capability, skip it.
- Apply a budget for the whole task. An agent planning a research task might call ten tools. Add up what they cost before it starts, not after.
- Check the network. Skip testnet-only endpoints and any network your wallet doesn't hold funds on.
- Record why you blocked something. "Over the cap" and "not a valid x402 endpoint" call for different fixes, and the agent (or you) should know which one it was.
None of this is hard, but doing it for every endpoint, in every agent, gets repetitive. So we built it as a tool.
New this week: x402 spend preflight
x402 spend preflight takes up to ten x402 endpoints and your spending rules. It probes every endpoint in parallel without paying, then tells you which ones are safe to pay and why the others were blocked.
curl -X POST https://x402-tools.com/v1/x402-preflight \
-H "content-type: application/json" \
-d '{
"urls": ["https://api.example.com/search", "https://api.example.com/image"],
"max_price_usd": 0.01,
"budget_usd": 0.02,
"networks": ["base"]
}'
For each endpoint you get the price in USD, network, pay-to address and setup grade, plus ok_to_pay and a plain reason when the answer is no. The summary shows how many were approved and what the approved set costs in total, so your agent can drop the expensive call or change its plan before it spends anything.
It costs $0.005 per check, paid with x402 like everything else here. A bad input is rejected with a 400 before any payment is taken, and a failed check is not charged. If your agent uses a paid client such as x402-fetch, run the preflight first and only send the paid client to the URLs it approved.
Where this is going
Visa, Mastercard, Stripe, PayPal and AWS are all building agent payments, and they all seem to agree on one thing: agents need limits that are enforced in code before they get spending power. Card networks have decades of fraud checks. x402 apps are building theirs now, and the simplest version is an agent that checks the price before it pays.
If you're building an agent that pays for tools, browse the rest of our tools or connect our MCP server so your agent can find them. If you sell an x402 API, run your endpoint through the x402 endpoint checker so buyers don't skip you over a broken 402.