x402 isn’t good (yet) — Jan Curn, Apify
Summary
The talk critiques current standards for agentic payments, arguing that while protocols like x402 are exciting, they suffer from significant architectural flaws, particularly regarding double spending and standardization conflicts. The speaker highlights the rapid proliferation of payment standards (L402, MasterCard Agent Pay, etc.) and proposes solutions such as batch settlement and a new 'Agent General Interface' (AGI) to facilitate robust, flexible agent-to-agent commerce.
Key takeaways
-
x402 Status Code Flaws
7:59
The x402 protocol requires the server to respond with HTTP 402 Payment Required. This conflicts with other standards (like MCP requiring 401), forcing companies to create dedicated hostnames for payments, which the speaker calls an anti-pattern.
-
The Double Spending Window
10:19
A critical vulnerability in current payment flows is that until a transaction settles on the blockchain, the buyer can use the same funds for multiple transactions (double spending). This risk makes non-trivial work difficult to guarantee.
-
Need for Flexible Interfaces
17:15
To avoid creating new endpoints or rigid API changes, the speaker introduced AGI (Agent General Interface), a simple markdown document designed for agents rather than humans. This allows services to adapt quickly without requiring strict backward compatibility.
Technical details
-
Payment Standards Conflict
359s
The industry faces a 'standards pileup' (L402, MasterCard Agent Pay, x42, etc.). The conflict between required status codes (e.g., x402 requiring 402 vs. MCP requiring 401) forces architectural workarounds like dedicated hostnames.
-
Payment Flow Vulnerability
619s
The core vulnerability exists between the moment a signature is created and when the transaction settles on the blockchain. This window allows for potential double spending, especially problematic for services requiring non-trivial work or external payments.
-
Batch Settlement
930s
A promising workaround involves batch settlement: clients deposit money into escrow (a real blockchain transaction), receive a cryptographic voucher, and then perform multiple micro-transactions off-chain using that voucher before settling the entire group in one final blockchain transaction.
-
API Design Philosophy
1035s
The speaker advocates for moving away from traditional Application Programming Interfaces (APIs) toward Agent General Interfaces (AGI), which are designed to be flexible and easily consumable by autonomous agents.
Mentioned resources
- Apify
- x402 Protocol
- MCP (Messaging Connector Protocol)
- AGI (Agent General Interface)
Channel & topics
Watch on YouTube · Back to latest
This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.