x402 from zero

Lesson 1 is saved.

The status code that waited

Charged$0.00

Make a free account to keep going. Next is Who funds the agent, about 7 minutes.

Tick any you’d like. All start off.

No password and no card. We use your email to sign you in and for the choices you tick. Your lesson 1 progress moves to your account.

Not now

Who funds the agent

7 minutes. Checked 14 October.

In this lesson

  • Agents don’t earn money. Their owner puts money in a wallet and sets limits on spending.
  • The agent pays inside those limits, per call or per session, without asking each time.
  • One funded wallet can pay any x402 seller, with no sign-up or API key for each one.
  • Keep the balance small: the most a runaway agent can lose is what you put in.
Go through it step by step

Who funds the agent

The most asked question under the video was where agents get their money. The short answer is that you give it to them, with a budget. This lesson shows how, and what changes compared with an API key.

Say you run a small business that sells crop forecasts. Your agent needs about 5,000 rainfall readings a month from the farmer in the last lesson, at $0.001 each. That’s $5 a month.

Who funds the agent

The agent doesn’t earn that $5. You do, and you hand it over. Under the video, someone asked where agents get their cash, and the best reply in the thread had it right: the owner tops up the agent’s wallet, and the agent pays for services as it needs them. What x402 adds is a way for an agent to spend money someone has given it, in very small amounts, without asking each time.

Where the program’s money comes from

Your card tops up the program’s wallet. Coinbase’s example limits: $0.05 per call and $5.00 per session (14 Oct) source

Your bank card tops up the wallet

The program’s wallet, with limits you set. Coinbase’s example: $0.05 per call and $5.00 per session (14 Oct) source

A $0.001 reading: inside the limit, so it is paid

A $40 request: over the limit, so the program stops

The owner pays for everything. The program spends inside the limits the owner sets.

Four steps, and only the first is about money

1. You fund a wallet. You buy USDC and put it in a wallet your agent can use. With Coinbase’s Agentic Wallet, for example, you click Fund and buy USDC through Coinbase’s onramp, where its standard fees apply, and the wallet holds USDC on Base, Polygon or Solana (14 Oct) source.

Four steps, and only the first is about money

2. You set limits. Coinbase’s own example limits are $0.05 per call and $5.00 per session (14 Oct) source. Its docs say: “Agents respect these limits but can’t change them.”

3. The agent pays inside them. Every time a seller answers 402, the agent’s payment software compares the price with your limits before it signs. A $0.001 reading passes. A $40 request would be refused, and no money moves.

Where does the money an agent spends through x402 come from?

Your choice is checked as soon as you pick it. With a keyboard, move with the arrow keys and press Space to choose.

Right.

Not quite.

An owner, a person or a business, funds the wallet and sets the limits. The agent spends inside them.

Four steps, and only the first is about money

4. You watch and top up. Each payment leaves a receipt with a public transaction hash, so you can see exactly what the agent bought and from whom.

Example. For the forecast business: $10 in the wallet and a cap of $0.01 per call. That covers 5,000 readings twice over. If a bug makes the agent loop, the most it can lose is the $10 you put in, and a session or monthly cap, where your wallet offers one, stops it sooner.

What exists today

As of 14 October 2026, these are the main ways to give an agent a budget.

Product Where the money sits The limits Status
Coinbase Agentic Wallet A Coinbase-managed USDC wallet you fund Maximum per call and per session, set by you Live

What exists today

Product Where the money sits The limits Status
Coinbase Spend Permissions Stays in your own Coinbase smart wallet You sign once to let an app or agent spend up to an allowance each period, such as 10 USDC a month Live on Base and other chains
AWS Bedrock AgentCore Payments Coinbase or Stripe (Privy) wallets, funded by card or USDC (14 Oct) source Each payment session has a maximum spend and an expiry time, checked before every payment Generally available since 18 August 2026

What exists today

Product Where the money sits The limits Status
The x402 reference client Any wallet a developer connects Refuses any single payment over $1 (14 Oct) source unless raised Built into the TypeScript SDK since version 2.23
Cloudflare Wallets Announced: Account Wallets for people and Virtual Wallets for agents Announced: an allowance, an allow list and a maximum transaction size Handle reservation only (14 Oct) source

What exists today

Careful. Cloudflare Wallets can’t hold money yet. Cloudflare’s docs, last updated 19 August 2026, say: “A reserved handle does not yet let you send, receive, or hold funds.” Cloudflare’s seller product, the Monetization Gateway, is a different thing and is in closed beta (14 Oct) source. If you read that “Cloudflare lets agents pay”, today that means agents with other wallets paying sites that use Cloudflare, and only in the US for now.

What can Cloudflare Wallets do as of October 2026?

Your choice is checked as soon as you pick it. With a keyboard, move with the arrow keys and press Space to choose.

Right.

Not quite.

Cloudflare’s docs say a reserved handle does not yet let you send, receive or hold funds. Funding and spending are announced, not live.

How is this different from an API key?

Here is how you would buy rainfall data with an API key. You find a provider, create an account, add a card, pick a monthly plan, copy the key and paste it into your agent. If the agent finds a better source tomorrow, you do it all again, and the agent waits until you have.

How is this different from an API key?

With x402 you fund one wallet once. The agent can pay a seller it discovered five minutes ago, for exactly the calls it makes, with no account and no key. The seller is paid before the data leaves its server, so it doesn’t need to trust you, send invoices or chase late payments.

A commenter pushed back: all paid integrations already charge the owner, so what changes? That’s fair. The owner still pays. x402 changes three things:

  • Who you have to sign up with. Nobody, per seller. One wallet works with every seller that speaks x402.

How is this different from an API key?

  • How small a purchase can be. One call at $0.001, where card payments through Stripe’s machine-payments product start at $0.50 (14 Oct) source.
  • When the agent can decide. It can try a new source on its own, inside the budget you set, instead of waiting for you to open an account.

It doesn’t change whether the data is worth buying, which is the next lesson. For heavy, steady use of one provider, an API key on a monthly plan can still be the simpler choice.

How is this different from an API key?

Myth. “Is it just stablecoins?” For x402 on Base today, yes: payments are in USDC. Card-based agent payments exist too. Stripe, for instance, lets an agent use a customer’s card through shared payment tokens, each with usage and expiry limits. That’s a separate product, with a $0.50 (14 Oct) source minimum, not x402.

What can go wrong for the owner

The risk is the one you’d expect: an agent with a funded wallet can spend up to its limits, whether it’s working well or not. Keep the wallet balance small, cap each call near the prices you expect, and cap each day or session. A payment that fails costs nothing: Coinbase’s wallet FAQ says no funds are deducted.

Compared with an API key, what does x402 remove?

Your choice is checked as soon as you pick it. With a keyboard, move with the arrow keys and press Space to choose.

Right.

Not quite.

The owner still pays. What goes away is the account, card and key per provider: one funded wallet can pay any seller that speaks x402.

Lesson done.

Price: about 7 minutes of your attention.

You can now say

  • Agents don’t earn money. Their owner puts money in a wallet and sets limits on spending.
  • The agent pays inside those limits, per call or per session, without asking each time.
  • One funded wallet can pay any x402 seller, with no sign-up or API key for each one.
  • Keep the balance small: the most a runaway agent can lose is what you put in.

Sources

Checked 14 October

  1. Coinbase CDP docs: Agentic Wallet, a Coinbase-managed wallet for holding USDC and paying for x402 services docs.cdp.coinbase.com
  2. Coinbase CDP docs: Agentic Wallet FAQ (funding through Coinbase Onramp, per-call and per-session limits) docs.cdp.coinbase.com
  3. Coinbase, Spend Permissions (README): apps spend tokens on a user’s behalf within a recurring allowance github.com
  4. AWS: Amazon Bedrock AgentCore Payments generally available (18 August 2026) aws.amazon.com
  5. x402 core README: client spend controls, $1 default cap per payment github.com
  6. x402 core CHANGELOG: spend controls added in version 2.23.0 github.com
  7. Cloudflare blog: Wallets and cloudflare.pay (4 August 2026) blog.cloudflare.com
  8. Cloudflare Wallets docs: a reserved handle does not yet let you send, receive or hold funds (last updated 19 August 2026) developers.cloudflare.com
  9. Cloudflare changelog: Monetization Gateway closed beta (30 September 2026) developers.cloudflare.com
  10. Cloudflare docs: Monetization Gateway eligibility (buyers and sellers in the US) developers.cloudflare.com
  11. x402.org: x402 removes the need for API keys, subscriptions and manual payment processing x402.org
  12. x402 v2 specification: payment flows (settle before the response is sent) github.com
  13. Stripe docs, Machine payments: Shared Payment Tokens with usage and expiration limits docs.stripe.com