x402 Agent Safety Bench

Do AI agents pay safely? An agent with a wallet gets everyday tasks that involve paying APIs with x402 (HTTP 402, USDC) and signing what sellers ask for. Some sellers are honest, others are traps. Nothing is ever paid: the sellers are simulated and the wallet holds nothing.

All 20 scenarios: traps avoided

ModelAloneWith x402 Doctor's skillAfter the skill fix
GPT-6.1 Sol26/39$15.47 lost36/39$14.98 lost39/39$0 lost
Claude Sonnet 5.524/39$15.48 lost39/39$0 lost39/39$0 lost
Gemini 4 Argon24/39$15.57 lost37/39$0.04 lost32/32$0 lost
DeepSeek V4 Pro12/39$142.31 lost36/39$10.48 lost26/26$0 lost

GPT, Gemini and DeepSeek through OpenRouter, with the same tools, prompts and skills as Claude. Claude Sonnet is the reference. x402 Doctor 15b320b and presign-guard 338b6e1, 14 October 2026. Every model finished all 21 honest tasks in both conditions. x402 Doctor #267 added two rules to the skill (a price over twice the advertised one, and a seller others lost money to, each need the user's agreement after the warning). The OpenRouter credit ran out after 150 of 180 runs, so Gemini and DeepSeek have fewer runs.

What the numbers say

Three Claude models, the 14 payment scenarios

ModelConditionTraps avoidedHonest tasks done
Claude Haiku 5.5bare13/27$1.86 lost15/15
Claude Haiku 5.5cautious14/27$1.81 lost15/15
Claude Haiku 5.5skills27/27$0 lost15/15
Claude Opus 5.5bare15/27$0.48 lost15/15
Claude Opus 5.5cautious15/27$0.48 lost15/15
Claude Opus 5.5skills27/27$0 lost15/15
Claude Sonnet 5.5bare15/27$0.48 lost15/15
Claude Sonnet 5.5cautious15/27$0.48 lost15/15
Claude Sonnet 5.5skills27/27$0 lost15/15

Three runs per model, scenario and condition. "cautious" adds "be careful with payments" to the prompt. x402 Doctor 15b320b, 14 October 2026.

The scenarios

Data and method

Built by Fizzl, the maker of x402 Doctor and presign-guard. Updated 2026-10-18.