x402 isn’t good (yet) - Jan Curn, Apify
X402 and agentic payment protocols are exciting and rapidly gaining adoption, but like MCP a year ago, they still have significant rough edges around double-...
By Sean WeldonX402 Isn't Good (Yet): An Analysis of Agentic Payment Protocol Maturity
Abstract
This paper examines X402, an open payment protocol built on the long-dormant HTTP 402 "Payment Required" status code, as a case study in the maturity gap between rapid protocol adoption and production readiness. Drawing on Apify's deployment experience - which expanded the X402 agentic marketplace from approximately 2,000 to 22,000 tools - this analysis identifies three structural deficiencies: double-spending exposure prior to on-chain settlement, inadequate native support for metered billing, and an irreconcilable HTTP status-code conflict with the Model Context Protocol (MCP). Practical mitigations are surveyed, including upfront-charge-and-refund patterns, per-provider hostname duplication, and an emerging batch-settlement scheme using escrow and off-chain cryptographic vouchers. The central finding is that these limitations parallel MCP's early rough edges, suggesting they are tractable rather than fundamental, though ecosystem tooling immaturity remains a near-term barrier to production deployment at scale.
1. Introduction
The transition from conversational assistants to autonomous agents executing long-horizon tasks introduces a requirement absent from earlier system designs: agents must hold and disburse budgets without per-step human authorization. Tasks spanning many tool invocations, external data acquisitions, and third-party compute calls cannot pause for a human to approve payment at each juncture. Agentic payments - machine-initiated, machine-authorized transactions conducted without per-transaction human approval - are therefore a prerequisite for scaling agent autonomy beyond narrow, supervised tasks.
The central thesis advanced here is explicitly modeled on a prior critique of MCP: a protocol can be directionally correct and experience explosive adoption while remaining materially incomplete. As stated directly in the source material, "X 402 isn't good yet." This is a claim about maturity and operational readiness, not about long-term viability. The analysis situates X402 within a rapidly fragmenting landscape of competing payment standards, examines its transaction flow and three core structural defects, surveys the evolution of its payment schemes and the architectural workarounds practitioners have adopted, and assesses implications for the trajectory of agentic commerce more broadly.
Key terms requiring definition at the outset include X402 itself (Coinbase's protocol repurposing HTTP 402), the facilitator (a verification/settlement intermediary, e.g., Coinbase), and double-spending (the risk that a single signed payment authorization is reused across multiple requests before blockchain settlement finalizes it).
2. Background and Related Work
A useful precedent for evaluating X402 is the reception history of MCP. David Cramer's 2023 talk, titled "MCP isn't good yet," catalogued that protocol's rough edges during a period of intense hype. Notably, Sentry subsequently built one of the more capable MCP server implementations despite this early criticism, and MCP itself became a broadly adopted industry standard within roughly a year - Claude and ChatGPT now expose MCP connectors and "apps" as the canonical mechanism for attaching tools to agents. Early technical criticism, in this instance, coexisted with - and arguably did not impede - standardization.
The agentic payment space is markedly more fragmented than MCP's ecosystem was at a comparable stage. Protocols announced within roughly the past year include L402, MasterCard Agent Pay, X402 (Coinbase), KYPay (Skyfire/Visa), AP2 (Google), ACP (OpenAI/Stripe), Tap (Visa), UCP (Google/Shopify), ACTP (Alipay), MPP (Stripe/Temporal), AMP (Alipay), Apple Pay (UnionPay), APP (OKX), and Agent Pay for Machines (MasterCard). Among crypto-native options, X402 and MPP dominate, with X402 carrying approximately 20 times the transaction volume of MPP. The empirical grounding for this analysis is Apify, described as the largest marketplace of AI tools, hosting approximately 45,000 tools ("actors") with community contributors collectively earning in excess of $1 million per month. Apify's X402 integration with Coinbase, launched two days prior to the source presentation, added roughly 20,000 tools to an agentic market previously containing approximately 2,000 - a tenfold expansion within days.
3. Core Analysis
3.1 Rationale for Crypto Rails in Agentic Commerce
Conventional payment instruments - credit cards, PayPal, ACH - are poorly matched to agent workloads along two dimensions. First, transaction fee structures render high-frequency microtransactions economically unviable. Second, these instruments are vulnerable to buyer-initiated disputes and chargebacks, a mechanism poorly suited to transactions where the "buyer" is an autonomous agent whose identity and authorization chain are difficult to verify after the fact. Crypto payments, by contrast, are one-way and non-disputable, which the source material frames as a safety property rather than a deficiency in this context. Additionally, decentralized blockchain settlement avoids concentration of control in the hands of a single intermediary, as observed with Visa and MasterCard fee extraction in traditional rails.
3.2 X402's Transaction Flow and Structural Defects
The X402 protocol operates via a defined sequence: a client issues a request, the server responds with HTTP 402, the client signs a payment authorization from its wallet, the server verifies this signature with a facilitator, work is performed, and settlement subsequently occurs on-chain. This flow introduces a double-spending problem: until the transaction is actually settled on the blockchain, the same signed authorization could in principle be reused for other requests. The naive workaround - deferring work until after settlement - fails for costly work involving external dependencies, since settlement latency becomes a bottleneck for time-sensitive or resource-intensive tasks.
A second, orthogonal defect is a protocol conflict with MCP: X402 mandates that a server's first response be HTTP 402, while MCP requires HTTP 401. These cannot coexist in a single response. The common workaround - provisioning separate hostnames per payment provider (e.g., x402.example.com, mcp.example.com) - is explicitly characterized as an anti-pattern, analogous to "20 different Amazons for different credit cards."
3.3 Metered Billing and Payment Scheme Evolution
X402's original exact payment scheme (May 2025) supports only fixed fees per call, which is structurally unsuited to as-you-go metered billing models like those used for Apify's actors, where cost scales with compute consumed. An up to scheme, announced December 2025 and released two to three months prior to the talk, permits charging up to a specified maximum - but still lacks resolution of the underlying double-spending risk. Apify's interim workaround charges a fixed amount upfront via the exact scheme, then refunds the unused balance after job completion, requiring two separate blockchain transactions and a degree of client trust in the refund process.
A more promising development is the batch settlement scheme, introduced approximately two months before the talk. This scheme uses an on-chain escrow deposit, off-chain cryptographically-signed microtransaction vouchers, and periodic on-chain batch settlement, reducing per-transaction blockchain overhead while preserving verifiability. Apify has not yet implemented this scheme but identifies it as the most promising path forward.
4. Technical Insights
Several implementation-relevant findings emerge from Apify's deployment experience. First, the HTTP 402 status code, dormant in the original HTTP specification for nearly 30 years, has been repurposed as the trigger for the entire X402 flow - an architectural choice with the side effect of colliding with MCP's use of HTTP 401. Second, the double-spend window exists specifically between signature and settlement confirmation, meaning any workaround must either delay work (impractical for costly tasks) or accept residual risk (as with the upfront-charge-and-refund pattern). Third, rather than modifying its core API or duplicating hostnames, Apify built agent.apify.com - an Agent General Interface (AGI) - a markdown-based, agent-facing website distinct from Apify's human-facing product. Agents visit AGI, prepay for an Apify token via X402 or MPP, and then use that token through Apify's existing API or MCP interface unmodified. This decouples payment-protocol churn from the stability requirements of an API serving tens of thousands of existing customers, and permits rapid iteration without backwards-compatibility constraints. A further practical finding is ecosystem immaturity: no existing local wallet testing tool was available, requiring Apify to build one internally.
5. Discussion
The parallel drawn to MCP's early trajectory is instructive but not conclusive. MCP's defects were largely about developer ergonomics and specification gaps; X402's defects - double-spending, billing model mismatch, and cross-protocol status-code conflicts - are more structurally entangled with blockchain settlement latency and competing standards bodies. This suggests resolution may require coordinated protocol revision (as batch settlement represents) rather than purely server-side workarounds. The proliferation of at least thirteen competing payment protocols within a single year also raises the question of whether consolidation, analogous to MCP's emergence as a singular standard, will occur before fragmentation costs compound.
6. Conclusion
X402 demonstrates rapid adoption alongside unresolved structural gaps in double-spend protection, metered billing, and protocol interoperability with MCP. Apify's AGI pattern and the emerging batch-settlement scheme represent pragmatic, if incomplete, responses. Practitioners evaluating agentic payment integration should treat current tooling as provisional, monitor batch-settlement maturation closely, and anticipate that buy-versus-build economics will shift toward external agentic services as token subsidies diminish and real transaction costs surface.
Sources
- x402 isn’t good (yet) - Jan Curn, Apify - Original Creator (YouTube)
- Analysis and summary by Sean Weldon using AI-assisted research tools
About the Author
Sean Weldon is an AI engineer and systems architect specializing in autonomous systems, agentic workflows, and applied machine learning. He builds production AI systems that automate complex business operations.