Incline · · 32 min

x402 Explained: The Payment Layer for AI Agents

With Kevin Leffew, Coinbase

Key takeaways

  • Kevin Leffew says x402 aims to replace API keys with client-side wallet signatures that let agents discover, reason about and pay for tools at request time.

  • x402 has moved to the X402 Foundation under the Linux Foundation, with partners including Cloudflare, AWS, Google, Stripe, Visa and Mastercard.

  • Kevin Leffew sees trading as the area where Coinbase has a structural advantage, and showed an agent that found a stock up 75 percent.

Watch the episode

Summary

The x402 co-author says wallet signatures should replace API keys so AI agents can find, price and pay for tools on their own, with trading as the first big use case.

Kevin Leffew joined Coinbase about two years ago from Replit, where he was a go-to-market lead and helped launch Replit Agent. On Stabledash Live he made the case for x402, a payments protocol he says was built to solve three problems: tool usage for language models, economic reasoning for agents, and autonomous runtimes.

Killing the API key

Kevin Leffew described the goal of x402 as to "kill the API key", replacing it with a signature from the client-side wallet that authorizes payment at request time. Today, he said, an agent with access to 700 plus tools needs 700 plus API keys, each requiring a human to visit a dashboard, enter a credit card and configure the tool call.

Under x402, an agent receives a 402 status code response carrying pricing information, so it can think economically about its tool calls. Leffew noted the 402 code dates to 1997, and argued that while humans find small payments like 30¢ transactions a cognitive burden, agents can execute micropayments at scale.

“The wallet as a cryptographic primitive is a much cleaner construct that enables agents to both earn and spend in a single runtime and then reason economically in real time”
Kevin Leffew

Money as a reward function

Kevin Leffew called money a strong alignment signal for agentic workflows, saying an agent aligned with a user is generally aligned with that user economically. He said a wallet lets agents both earn and spend in a single runtime, without billing in arrears, credit or ACH transfers.

An open standard

Kevin Leffew said x402 needs open source code and open governance, which led to its move to the X402 Foundation under Linux, with an open community at x402.org. He compared the path to Kubernetes, which Google incubated before moving it to the Linux Foundation.

He said inference is the dominant use case today, followed by tool calls, and that companies such as Browserbase, Exa, Browseruse, Apify and massive.com now support x402 and accept stablecoins.

Trading agents with limits

In a demo, Kevin Leffew used Claude Code with Coinbase Payments MCP to pull top stock gainers from massive.com, finding ChargePoint up 75 percent. He said agents should underweight social sentiment and overweight official sources like PR Newswire, and that users should stay in the loop to verify trades at first. A wallet funded with $10 can spend at most $10, which he said limits collateral damage.

Kevin Leffew said Coinbase has no advantage on x402 itself, but does on trading, where paying for tools at request time matters. He expects trading agents to move toward autonomous execution over time, and sees new uses such as tip-steered video streams built on models like the one from Fall.

MCP, Massive, Fall, and Replit come up most.

Ask AI about this conversation

Coinbase is a cryptocurrency exchange and financial services platform. It lets individuals, institutions, and developers buy, sell, store, and build on digital assets.

More conversations like this one

Get the lineup before every live show, plus the newsletter’s short reads.